Bug 237942 - Crash on Build with unsaved Makefile
Summary: Crash on Build with unsaved Makefile
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: 4.0.1
Assignee: kdevelop-bugs-null
URL:
Keywords: investigated, triaged
Depends on:
Blocks:
 
Reported: 2010-05-17 16:41 UTC by António Oliveira
Modified: 2018-09-21 19:05 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description António Oliveira 2010-05-17 16:41:00 UTC
Application: kdevelop (4.0.0 (using KDevPlatform 1.0.0))
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-21-generic x86_64
Distribution: Ubuntu 10.04 LTS

-- Information about the crash:
Kdevelop crashes if I try to build (using F8) while editing the project's makefile.

Here's how to reproduce it.
1. Open some custom makefile project.
2. Edit something in the Makefile
3. Press F8 (NB:  buildset contains the 'all' target)

Result: Kdevelop crashes with SIGSEGV

Expected result:
Kdevelop sould not crash.


The crash can be reproduced every time.

 -- Backtrace:
Application: KDevelop (kdevelop.bin), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f8f1b2eb760 (LWP 28720))]

Thread 11 (Thread 0x7f8f0755b710 (LWP 28721)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007f8f19a91692 in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x13dbf50, time=200000) at thread/qwaitcondition_unix.cpp:85
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x13dbf50, time=200000) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f8f1551906e in ?? () from /usr/lib/libkdevplatformlanguage.so.1
#4  0x00007f8f19a90775 in QThreadPrivate::start (arg=0x13dbf30) at thread/qthread_unix.cpp:248
#5  0x00007f8f184d39ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007f8f187d069d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7f8f0605b710 (LWP 28722)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f8f0605aaa0 in ?? ()
#2  0x00007fffd85ff852 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 9 (Thread 0x7f8efc81c710 (LWP 28723)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f8f19a9172b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x1379060, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x1379060, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f8f10951026 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1cc15e0, th=0x1111ec0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f8f109536ab in ThreadWeaver::WorkingHardState::applyForWork (this=0x114bb00, th=0x1111ec0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f8f10951bff in ThreadWeaver::ThreadRunHelper::run (this=0x7f8efc81be00, parent=0x1cc15e0, th=0x1111ec0) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007f8f10952168 in ThreadWeaver::Thread::run (this=0x1111ec0) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007f8f19a90775 in QThreadPrivate::start (arg=0x1111ec0) at thread/qthread_unix.cpp:248
#8  0x00007f8f184d39ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#9  0x00007f8f187d069d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f8ef69c3710 (LWP 28730)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f8ef69c2aa0 in ?? ()
#2  0x00007fffd85ff852 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 7 (Thread 0x7f8ef61c2710 (LWP 28746)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f8ef61c1ae0 in ?? ()
#2  0x00007fffd85ff852 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 6 (Thread 0x7f8ef1436710 (LWP 28747)):
#0  *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f8f12eb54a9 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f8f12eb58fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f8f19bae566 in QEventDispatcherGlib::processEvents (this=0x244a780, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#4  0x00007f8f19b83992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007f8f19b83d6c in QEventLoop::exec (this=0x7f8ef1435df0, flags=) at kernel/qeventloop.cpp:201
#6  0x00007f8f19a8dd59 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#7  0x00007f8f19a90775 in QThreadPrivate::start (arg=0x2439f60) at thread/qthread_unix.cpp:248
#8  0x00007f8f184d39ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#9  0x00007f8f187d069d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f8ef0c35710 (LWP 28748)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007f8f19a900e5 in thread_sleep (ti=0x7f8ef0c34db0) at thread/qthread_unix.cpp:398
#2  0x00007f8f19a90250 in QThread::msleep (msecs=<value optimized out>) at thread/qthread_unix.cpp:424
#3  0x00007f8ef1bfef41 in ?? () from /usr/lib/kde4/kdevcpplanguagesupport.so
#4  0x00007f8f19a90775 in QThreadPrivate::start (arg=0x2e81850) at thread/qthread_unix.cpp:248
#5  0x00007f8f184d39ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007f8f187d069d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f8eef4d5710 (LWP 28755)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f8f19a9172b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x12fb6b0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x12fb6b0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f8f10951026 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x12fec70, th=0x20f9090) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f8f109536ab in ThreadWeaver::WorkingHardState::applyForWork (this=0x12fc140, th=0x20f9090) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f8f109536c4 in ThreadWeaver::WorkingHardState::applyForWork (this=0x12fc140, th=0x20f9090) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007f8f10951bff in ThreadWeaver::ThreadRunHelper::run (this=0x7f8eef4d4e00, parent=0x12fec70, th=0x20f9090) at ../../../threadweaver/Weaver/Thread.cpp:87
#7  0x00007f8f10952168 in ThreadWeaver::Thread::run (this=0x20f9090) at ../../../threadweaver/Weaver/Thread.cpp:142
#8  0x00007f8f19a90775 in QThreadPrivate::start (arg=0x20f9090) at thread/qthread_unix.cpp:248
#9  0x00007f8f184d39ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007f8f187d069d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f8eeecd4710 (LWP 28756)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f8f19a9172b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x12fb6b0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x12fb6b0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f8f10951026 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x12fec70, th=0x2ed9e90) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f8f109536ab in ThreadWeaver::WorkingHardState::applyForWork (this=0x12fc140, th=0x2ed9e90) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f8f10951bff in ThreadWeaver::ThreadRunHelper::run (this=0x7f8eeecd3e00, parent=0x12fec70, th=0x2ed9e90) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007f8f10952168 in ThreadWeaver::Thread::run (this=0x2ed9e90) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007f8f19a90775 in QThreadPrivate::start (arg=0x2ed9e90) at thread/qthread_unix.cpp:248
#8  0x00007f8f184d39ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#9  0x00007f8f187d069d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f8eee4d3710 (LWP 28769)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f8f11c1a2a6 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7f8f11ef8220) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2304
#2  0x00007f8f11c1a2e9 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x7f8f11f062ec) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1438
#3  0x00007f8f184d39ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007f8f187d069d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f8f1b2eb760 (LWP 28720)):
[KCrash Handler]
#5  0x00000000ffffffc0 in ?? ()
#6  0x00007f8f06942e3c in ?? () from /usr/lib/kde4/kdevmakebuilder.so
#7  0x00007f8f1a7c1e0f in KDevelop::RunController::registerJob(KJob*) () from /usr/lib/libkdevplatformshell.so.1
#8  0x00007f8f15aed0e5 in KDevelop::BuilderJob::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkdevplatformproject.so.1
#9  0x00007f8f19b97e3f in QMetaObject::activate (sender=0x4703410, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3293
#10 0x00007f8f1ad70b82 in KJob::result (this=0x44f0930, _t1=0x4703410) at ./kjob.moc:194
#11 0x00007f8f1ad70e20 in KJob::emitResult (this=0x4703410) at ../../kdecore/jobs/kjob.cpp:312
#12 0x00007f8f06943f9f in ?? () from /usr/lib/kde4/kdevmakebuilder.so
#13 0x00007f8f06944038 in ?? () from /usr/lib/kde4/kdevmakebuilder.so
#14 0x00007f8f19b97e3f in QMetaObject::activate (sender=0x476b8c0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3293
#15 0x00007f8f19b1f68f in QProcess::finished (this=0x44f0930, _t1=0, _t2=QProcess::NormalExit) at .moc/release-shared/moc_qprocess.cpp:142
#16 0x00007f8f19b24967 in QProcessPrivate::_q_processDied (this=0x476c500) at io/qprocess.cpp:1041
#17 0x00007f8f19b24a29 in QProcess::qt_metacall (this=0x476b8c0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffd85d9980) at .moc/release-shared/moc_qprocess.cpp:115
#18 0x00007f8f1ad60a38 in KProcess::qt_metacall (this=0x44f0930, _c=QMetaObject::ReadProperty, _id=7656384, _a=0x1) at ./kprocess.moc:69
#19 0x00007f8f19b97e3f in QMetaObject::activate (sender=0x476d0c0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3293
#20 0x00007f8f19be3c6e in QSocketNotifier::activated (this=0x44f0930, _t1=60) at .moc/release-shared/moc_qsocketnotifier.cpp:89
#21 0x00007f8f19b9efb3 in QSocketNotifier::event (this=0x476d0c0, e=0x7fffd85da030) at kernel/qsocketnotifier.cpp:317
#22 0x00007f8f18f3e22c in QApplicationPrivate::notify_helper (this=0x749120, receiver=0x476d0c0, e=0x7fffd85da030) at kernel/qapplication.cpp:4300
#23 0x00007f8f18f446fb in QApplication::notify (this=0x7fffd85da460, receiver=0x476d0c0, e=0x7fffd85da030) at kernel/qapplication.cpp:4183
#24 0x00007f8f1a0cc526 in KApplication::notify (this=0x7fffd85da460, receiver=0x476d0c0, event=0x7fffd85da030) at ../../kdeui/kernel/kapplication.cpp:302
#25 0x00007f8f19b8506c in QCoreApplication::notifyInternal (this=0x7fffd85da460, receiver=0x476d0c0, event=0x7fffd85da030) at kernel/qcoreapplication.cpp:704
#26 0x00007f8f19bae8ca in QCoreApplication::sendEvent (source=0x74bd50) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#27 socketNotifierSourceDispatch (source=0x74bd50) at kernel/qeventdispatcher_glib.cpp:110
#28 0x00007f8f12eb18c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#29 0x00007f8f12eb5748 in ?? () from /lib/libglib-2.0.so.0
#30 0x00007f8f12eb58fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#31 0x00007f8f19bae513 in QEventDispatcherGlib::processEvents (this=0x72bb80, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#32 0x00007f8f18fee46e in QGuiEventDispatcherGlib::processEvents (this=0x44f0930, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#33 0x00007f8f19b83992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#34 0x00007f8f19b83d6c in QEventLoop::exec (this=0x7fffd85da290, flags=) at kernel/qeventloop.cpp:201
#35 0x00007f8f19b87aab in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#36 0x00000000004088cf in _start ()

Reported using DrKonqi
Comment 1 Andreas Pakulat 2010-05-17 17:29:49 UTC
Unfortunately you're missing debug symbols for kdevelop and kdevplatform. Please install those and generate a new backtrace.
Comment 2 António Oliveira 2010-05-17 17:47:12 UTC
Hi.

(In reply to comment #1)
> Unfortunately you're missing debug symbols for kdevelop and kdevplatform.
> Please install those and generate a new backtrace.

I'm afraid that's all the info I can get in this computer. I have kdevplatform-dbg installed but can't find ant kdevelop[4]-dbg. This is kubuntu 10.04 LTS.

The crash assistant tells me that there are no other packages to install so I'm not sure where to go from here.

If you can suggest me which packages I need to install by hand, I'll be happy to do it.

Cheers,
--to
Comment 3 Andreas Pakulat 2010-05-17 18:07:33 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Unfortunately you're missing debug symbols for kdevelop and kdevplatform.
> > Please install those and generate a new backtrace.
> 
> I'm afraid that's all the info I can get in this computer. I have
> kdevplatform-dbg installed but can't find ant kdevelop[4]-dbg. This is kubuntu
> 10.04 LTS.
> 
> The crash assistant tells me that there are no other packages to install so I'm
> not sure where to go from here.
> 
> If you can suggest me which packages I need to install by hand, I'll be happy
> to do it.

I'm sorry, but have no idea about kubuntu's packages. I can only suggest to delete the packages and install kdevplatform+kdevelop from source and make sure to pass -DCMAKE_BUILD_TYPE=Debug to cmake for both.

> Cheers,
> --to
Comment 4 Andrew Crouthamel 2018-09-20 22:06:02 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 António Oliveira 2018-09-21 10:07:47 UTC
Hi,

Considering the age of this bugreport and the version it was targeting, I think it's pointless to dedicate any further attention to it.

So, even though it was fully reproducible at the time of the report, I suppose that's quite likely already fixed in newer versions.

I'm not sure which state to assign to it, so please feel free to close the bug in the most appropriate way.

Thanks.
Comment 6 Andrew Crouthamel 2018-09-21 19:05:07 UTC
Thanks for the update!