Bug 357711 - konqueror crashed -- session autosave related [QPointer<KHTMLView>::operator->]
Summary: konqueror crashed -- session autosave related [QPointer<KHTMLView>::operator->]
Status: RESOLVED WORKSFORME
Alias: None
Product: konqueror
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Debian unstable Linux
: NOR crash
Target Milestone: ---
Assignee: Konqueror Bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2016-01-08 21:01 UTC by Raúl
Modified: 2018-11-18 16:56 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (8.37 KB, text/plain)
2016-01-08 21:40 UTC, Raúl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raúl 2016-01-08 21:01:06 UTC
Application: konqueror (4.14.13)
KDE Platform Version: 4.14.14
Qt Version: 4.8.7
Operating System: Linux 4.3.0-1-amd64 x86_64
Distribution: Debian GNU/Linux unstable (sid)

-- Information about the crash:
- What I was doing when the application crashed:

I opened konqueror from krunner. Iit restored a previously saved session. I always kill konqueror so session is saved. The session is quite big with a ~15 tabs window and another singled tab window.
After the session was successfully restored konqueror "idled"* in the background for some minutes and it crashed.
* I say idled but it actually takes some CPU as some opened webs require javascript running in background
I have had some other similar crashed also related with autosave but unfortunately I'm unable to explain how they are reproduced.

-- Backtrace:
Application: Konqueror (konqueror), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f92a7262900 (LWP 7333))]

Thread 6 (Thread 0x7f9285604700 (LWP 7735)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f928af18a4d in WTF::TCMalloc_PageHeap::scavengerThread (this=0x7f928b9a3514 <WTF::pageheap_memory+57556>) at /build/qtwebkit-B2cRei/qtwebkit-2.3.4.dfsg/Source/WTF/wtf/FastMalloc.cpp:2575
#2  0x00007f928af18aa9 in WTF::TCMalloc_PageHeap::runScavengerThread (context=0x7f928b9a3514 <WTF::pageheap_memory+57556>) at /build/qtwebkit-B2cRei/qtwebkit-2.3.4.dfsg/Source/WTF/wtf/FastMalloc.cpp:1771
#3  0x00007f929fde6284 in start_thread (arg=0x7f9285604700) at pthread_create.c:333
#4  0x00007f92a6b8774d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7f9244602700 (LWP 7757)):
#0  0x00007f92a6b7e86d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f929f70c1cc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f929f70c2dc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f92a45b93a6 in QEventDispatcherGlib::processEvents (this=0x7f923c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#4  0x00007f92a45872e1 in QEventLoop::processEvents (this=this@entry=0x7f9244601cd0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f92a4587655 in QEventLoop::exec (this=this@entry=0x7f9244601cd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f92a4476559 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:538
#7  0x00007f92a4478e4c in QThreadPrivate::start (arg=0x1be0d70) at thread/qthread_unix.cpp:352
#8  0x00007f929fde6284 in start_thread (arg=0x7f9244602700) at pthread_create.c:333
#9  0x00007f92a6b8774d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f92430ac700 (LWP 7787)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00007f92a4479394 in QWaitConditionPrivate::wait (time=30000, this=0x1e77be0) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=this@entry=0x1f04f00, mutex=mutex@entry=0x1e86848, time=30000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f92a446bff7 in QThreadPoolThread::run (this=0x1f04ef0) at concurrent/qthreadpool.cpp:142
#4  0x00007f92a4478e4c in QThreadPrivate::start (arg=0x1f04ef0) at thread/qthread_unix.cpp:352
#5  0x00007f929fde6284 in start_thread (arg=0x7f92430ac700) at pthread_create.c:333
#6  0x00007f92a6b8774d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f924246e700 (LWP 7801)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f928ac3c191 in JSC::BlockAllocator::blockFreeingThreadMain (this=0x7f9284d73398) at /build/qtwebkit-B2cRei/qtwebkit-2.3.4.dfsg/Source/JavaScriptCore/heap/BlockAllocator.cpp:128
#2  0x00007f928af48fe6 in WTF::wtfThreadEntryPoint (param=0x1fa8be0) at /build/qtwebkit-B2cRei/qtwebkit-2.3.4.dfsg/Source/WTF/wtf/ThreadingPthreads.cpp:196
#3  0x00007f929fde6284 in start_thread (arg=0x7f924246e700) at pthread_create.c:333
#4  0x00007f92a6b8774d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f9241532700 (LWP 7826)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00007f92a4479394 in QWaitConditionPrivate::wait (time=30000, this=0x1e6d5d0) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=this@entry=0x1e79430, mutex=mutex@entry=0x1e86848, time=30000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f92a446bff7 in QThreadPoolThread::run (this=0x1e79420) at concurrent/qthreadpool.cpp:142
#4  0x00007f92a4478e4c in QThreadPrivate::start (arg=0x1e79420) at thread/qthread_unix.cpp:352
#5  0x00007f929fde6284 in start_thread (arg=0x7f9241532700) at pthread_create.c:333
#6  0x00007f92a6b8774d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f92a7262900 (LWP 7333)):
[KCrash Handler]
#6  0x00007f92922ddb2c in QPointer<KHTMLView>::operator-> (this=<optimized out>) at /usr/include/qt4/QtCore/qpointer.h:74
#7  KHTMLPart::saveState (this=0x139c6f10, stream=...) at ../../khtml/khtml_part.cpp:5403
#8  0x00007f92922ddf93 in KHTMLPart::saveState (this=<optimized out>, stream=...) at ../../khtml/khtml_part.cpp:5467
#9  0x00007f92a6e88efe in KonqView::updateHistoryEntry (this=this@entry=0x2468980, saveLocationBarURL=saveLocationBarURL@entry=true) at ../../../konqueror/src/konqview.cpp:751
#10 0x00007f92a6e8a27d in KonqView::saveConfig (this=0x2468980, config=..., prefix=..., options=...) at ../../../konqueror/src/konqview.cpp:1348
#11 0x00007f92a6e9b9f4 in KonqFrame::saveConfig (this=0x243e040, config=..., prefix=..., options=..., docContainer=0x16c3300) at ../../../konqueror/src/konqframe.cpp:116
#12 0x00007f92a6ea49d1 in KonqFrameTabs::saveConfig (this=0x16c32d0, config=..., prefix=..., options=..., docContainer=0x16c3300, id=0, depth=1) at ../../../konqueror/src/konqtabs.cpp:162
#13 0x00007f92a6e8dbc2 in KonqViewManager::saveViewProfileToGroup (this=0x16041c0, profileGroup=..., options=...) at ../../../konqueror/src/konqviewmanager.cpp:899
#14 0x00007f92a6eba753 in KonqMainWindow::saveProperties (this=<optimized out>, config=...) at ../../../konqueror/src/konqmainwindow.cpp:4908
#15 0x00007f92a6ef7811 in KonqSessionManager::saveCurrentSessionToFile (this=this@entry=0xe42ba0, config=0xfecf10) at ../../../konqueror/src/konqsessionmanager.cpp:489
#16 0x00007f92a6ef7a08 in KonqSessionManager::autoSaveSession (this=0xe42ba0) at ../../../konqueror/src/konqsessionmanager.cpp:448
#17 0x00007f92a6efbf9b in KonqSessionManager::autoSaveSession (this=<optimized out>) at ../../../konqueror/src/konqsessionmanager.cpp:441
#18 KonqSessionManager::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at ./konqsessionmanager.moc:137
#19 0x00007f92a459d160 in QMetaObject::activate (sender=0xe42bb0, m=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3567
#20 0x00007f92a45a2dd3 in QObject::event (this=0xe42bb0, e=<optimized out>) at kernel/qobject.cpp:1253
#21 0x00007f92a364e8dc in QApplicationPrivate::notify_helper (this=this@entry=0xd1b8d0, receiver=receiver@entry=0xe42bb0, e=e@entry=0x7ffd1fd0ef20) at kernel/qapplication.cpp:4570
#22 0x00007f92a3655816 in QApplication::notify (this=this@entry=0x7ffd1fd0f370, receiver=receiver@entry=0xe42bb0, e=e@entry=0x7ffd1fd0ef20) at kernel/qapplication.cpp:4356
#23 0x00007f92a503f71a in KApplication::notify (this=0x7ffd1fd0f370, receiver=0xe42bb0, event=0x7ffd1fd0ef20) at ../../kdeui/kernel/kapplication.cpp:311
#24 0x00007f92a4588a6d in QCoreApplication::notifyInternal (this=0x7ffd1fd0f370, receiver=0xe42bb0, event=event@entry=0x7ffd1fd0ef20) at kernel/qcoreapplication.cpp:955
#25 0x00007f92a45bb830 in QCoreApplication::sendEvent (event=0x7ffd1fd0ef20, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#26 QTimerInfoList::activateTimers (this=0xd0cf50) at kernel/qeventdispatcher_unix.cpp:621
#27 0x00007f92a45b8a31 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:186
#28 0x00007f929f70bfd7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007f929f70c230 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007f929f70c2dc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007f92a45b9384 in QEventDispatcherGlib::processEvents (this=0xcd4cf0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#32 0x00007f92a36f8a76 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#33 0x00007f92a45872e1 in QEventLoop::processEvents (this=this@entry=0x7ffd1fd0f1a0, flags=...) at kernel/qeventloop.cpp:149
#34 0x00007f92a4587655 in QEventLoop::exec (this=this@entry=0x7ffd1fd0f1a0, flags=...) at kernel/qeventloop.cpp:204
#35 0x00007f92a458d629 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1227
#36 0x00007f92a364d06c in QApplication::exec () at kernel/qapplication.cpp:3828
#37 0x00007f92a6f0648f in kdemain (argc=<optimized out>, argv=<optimized out>) at ../../../konqueror/src/konqmain.cpp:227
#38 0x00007f92a6abf870 in __libc_start_main (main=0x4006d0 <main(int, char**)>, argc=2, argv=0x7ffd1fd0f518, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd1fd0f508) at libc-start.c:291
#39 0x0000000000400709 in _start () at ../sysdeps/x86_64/start.S:118

Reported using DrKonqi
Comment 1 Raúl 2016-01-08 21:40:38 UTC
Created attachment 96533 [details]
New crash information added by DrKonqi

konqueror (4.14.13) on KDE Platform 4.14.14 using Qt 4.8.7

- What I was doing when the application crashed:

I opnen konqueror again (same as above). This time I got to open a pair of new tabs. I browsed in one of then, closed and the konqueror crashed.

-- Backtrace (Reduced):
#6  0x00007f9ab9042b2c in QPointer<KHTMLView>::operator-> (this=<optimized out>) at /usr/include/qt4/QtCore/qpointer.h:74
#7  KHTMLPart::saveState (this=0x54457d00, stream=...) at ../../khtml/khtml_part.cpp:5403
#8  0x00007f9ab9042f93 in KHTMLPart::saveState (this=<optimized out>, stream=...) at ../../khtml/khtml_part.cpp:5467
#9  0x00007f9ab9042f93 in KHTMLPart::saveState (this=<optimized out>, stream=...) at ../../khtml/khtml_part.cpp:5467
#10 0x00007f9ab9042f93 in KHTMLPart::saveState (this=<optimized out>, stream=...) at ../../khtml/khtml_part.cpp:5467
Comment 2 Andrew Crouthamel 2018-11-01 13:48:36 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2018-11-16 11:37:52 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
mark the bug 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 4 Raúl 2018-11-18 16:56:05 UTC
I have done some tests with a recent konqueror/KHTML version:
- konqueror 5.0.97
- KDE Frameworks 5.51.0
- Qt 5.11.2
 My tests are not very complete but at first glance I would say that this is not reproducible. I will mark this accordingly and report again if I see any problem. Regrads,