Help to understand/fix Kdevelop Crash

Sergey Kalinichev kalinichev.so.0 at gmail.com
Mon Mar 16 08:53:38 UTC 2015


Hi,

While I definitely don't know why it crashes and how to fix it. Still
it's highly unlikely that you need all of the project files to be
parsed. So, as a workaround, try to disable the "Schedule all project
files for parsing" option. That should prevent the crash.

Also to parse the linux kernel you'll probably have to change the
parser's mode to gnu99. Modify parsesession.cpp:69 to something like:
return { "--std=gnu99", ...

--
Sergey

On 3/15/15, Kevin Funk <kfunk at kde.org> wrote:
> On Saturday 14 March 2015 22:15:29 Lucas Tanure wrote:
>> Hi,
>>
>> I'm trying to use kdevelop for develop linux kernel, but it's crashing
>> while parsing.
>> I imported the main makefile from linux kernel source and after a few
>> minutes the kdevelop crashes.
>>
>> Take a look at:
>> *kdevelop* *binaries* :
>> https://www.dropbox.com/s/g01t1uzpkkwihwt/kdevelop.tar.xz?dl=0
>>
>> *llvm* *binaries* :
>> https://www.dropbox.com/s/j8xarqu6leufk8s/llvm.tar.xz?dl=0
>>
>> *kdevelop* *log* :
>> https://www.dropbox.com/s/ke4iovxx8alis9j/kdev.log?dl=0
>>
>> *gdb* *coredump* :
>> https://www.dropbox.com/s/1q7l8pi67kug59r/core.24956.xz?dl=0
>>
>> I created the bug:
>> https://bugs.kde.org/show_bug.cgi?id=343950
>>
>> and I thought it was the same as:
>> https://bugs.kde.org/show_bug.cgi?id=272408 ( not enough memory ram ).
>> But it's not, it's a real crash. I tested with a 24Gbytes of Ram, and
>> kdevelop took like 5Gb to parse 50% of linux kernel.
>
> Unfortunately I'm not into the ItemRepository code at all. In fact, it's
> mostly Milian who
> has a clue there (and David, who's the original author).
>
> I never got my head around actually studying that code closely to figure out
> what it is
> doing...
>
> So, guys, any idea what's wrong?
>
>> Please help.
>> Thanks
>>
>> --
>> Lucas Tanure
>> +55 (19) 988176559
>
> --
> Kevin Funk | kfunk at kde.org | http://kfunk.org
>


More information about the KDevelop-devel mailing list