Bug 300198

Summary: Konqueror SEGV in HTML Settings (in new tab)
Product: [Applications] konqueror Reporter: tim
Component: generalAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: 4.8.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 4.8.4

Description tim 2012-05-17 13:26:01 UTC
Application: konqueror (4.8.3 (4.8.3))
KDE Platform Version: 4.8.3 (4.8.3)
Qt Version: 4.8.1
Operating System: Linux 3.3.4-1.fc17.x86_64 x86_64
Distribution: "Fedora release 17 (Beefy Miracle)"

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

1) Start Konqueror
2) Open new tab
3) Switch to new tab
4) Tools -> HTML Settings -> Enable Proxy
5) Boom!

- Unusual behavior I noticed:

All checkboxes unchecked in new tab, but some checked when in initial tab

The crash can be reproduced every time.

-- Backtrace:
Application: Konqueror (konqueror), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7fa086357880 (LWP 2953))]

Thread 4 (Thread 0x7fa0756e8700 (LWP 2956)):
#0  0x00000037ed20e0ad in read () at ../sysdeps/unix/syscall-template.S:82
#1  0x00000037efe82a1f in read (__nbytes=16, __buf=0x7fa0756e7b30, __fd=<optimized out>) at /usr/include/bits/unistd.h:45
#2  g_wakeup_acknowledge (wakeup=0x100ffc0) at gwakeup.c:212
#3  0x00000037efe4741a in g_main_context_check (context=context@entry=0x7fa0700009a0, max_priority=2147483647, fds=fds@entry=0x7fa070002a50, n_fds=n_fds@entry=1) at gmain.c:2957
#4  0x00000037efe47922 in g_main_context_iterate (context=context@entry=0x7fa0700009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<error reading variable: Unhandled dwarf expression opcode 0xfa>) at gmain.c:3120
#5  0x00000037efe47aa4 in g_main_context_iteration (context=0x7fa0700009a0, may_block=1) at gmain.c:3184
#6  0x00000037f7fa3a06 in QEventDispatcherGlib::processEvents (this=0x7fa0700008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#7  0x00000037f7f7495f in QEventLoop::processEvents (this=this@entry=0x7fa0756e7cf0, flags=...) at kernel/qeventloop.cpp:149
#8  0x00000037f7f74be8 in QEventLoop::exec (this=0x7fa0756e7cf0, flags=...) at kernel/qeventloop.cpp:204
#9  0x00000037f7e785a0 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#10 0x00007fa087a7018e in KIO::NameLookUpThread::run (this=0x1ac25a0) at /usr/src/debug/kdelibs-4.8.3/kio/kio/hostinfo.cpp:226
#11 0x00000037f7e7b53b in QThreadPrivate::start (arg=0x1ac25a0) at thread/qthread_unix.cpp:298
#12 0x00000037ed207d14 in start_thread (arg=0x7fa0756e8700) at pthread_create.c:309
#13 0x00000037ecaf199d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7fa06fcb2700 (LWP 2963)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:166
#1  0x000000380f77e685 in WTF::TCMalloc_PageHeap::scavengerThread (this=0x3810152740) at ../../../Source/JavaScriptCore/wtf/FastMalloc.cpp:2495
#2  0x000000380f77e6e9 in WTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../../../Source/JavaScriptCore/wtf/FastMalloc.cpp:1618
#3  0x00000037ed207d14 in start_thread (arg=0x7fa06fcb2700) at pthread_create.c:309
#4  0x00000037ecaf199d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7fa06f4b1700 (LWP 2964)):
#0  0x00000037ecae8eef in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00000037efe47984 in g_main_context_poll (n_fds=1, fds=0x7fa0640029c0, timeout=9722, context=0x7fa0640009a0, priority=<optimized out>) at gmain.c:3417
#2  g_main_context_iterate (context=context@entry=0x7fa0640009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<error reading variable: Unhandled dwarf expression opcode 0xfa>) at gmain.c:3118
#3  0x00000037efe47aa4 in g_main_context_iteration (context=0x7fa0640009a0, may_block=1) at gmain.c:3184
#4  0x00000037f7fa3a06 in QEventDispatcherGlib::processEvents (this=0x7fa0640008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00000037f7f7495f in QEventLoop::processEvents (this=this@entry=0x7fa06f4b0d20, flags=...) at kernel/qeventloop.cpp:149
#6  0x00000037f7f74be8 in QEventLoop::exec (this=0x7fa06f4b0d20, flags=...) at kernel/qeventloop.cpp:204
#7  0x00000037f7e785a0 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00000037f7e7b53b in QThreadPrivate::start (arg=0x1071090) at thread/qthread_unix.cpp:298
#9  0x00000037ed207d14 in start_thread (arg=0x7fa06f4b1700) at pthread_create.c:309
#10 0x00000037ecaf199d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7fa086357880 (LWP 2953)):
[KCrash Handler]
#6  KConfigBase::isGroupImmutable (this=0x0, aGroup=...) at /usr/src/debug/kdelibs-4.8.3/kdecore/config/kconfigbase.cpp:96
#7  0x00007fa08693dda4 in KConfigGroup::KConfigGroup (this=0x7fffd379f270, master=0x0, _group=...) at /usr/src/debug/kdelibs-4.8.3/kdecore/config/kconfiggroup.cpp:468
#8  0x00007fa07660e1a7 in SettingsPlugin::toggleProxy (this=0x22f3520, checked=true) at /usr/src/debug/kde-baseapps-4.8.3/konq-plugins/khtmlsettingsplugin/settingsplugin.cpp:249
#9  0x00000037f7f8c09f in QMetaObject::activate (sender=0x242e800, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffd379f440) at kernel/qobject.cpp:3547
#10 0x00000037fabc4302 in QAction::toggled (this=this@entry=0x242e800, _t1=_t1@entry=true) at .moc/release-shared/moc_qaction.cpp:289
#11 0x00000037fabc4385 in QAction::setChecked (this=this@entry=0x242e800, b=true) at kernel/qaction.cpp:1073
#12 0x00000037fabc44f4 in QAction::activate (this=0x242e800, event=<optimized out>) at kernel/qaction.cpp:1254
#13 0x00000037faffd063 in QMenuPrivate::activateCausedStack (this=this@entry=0x2426bc0, causedStack=..., action=action@entry=0x242e800, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1028
#14 0x00000037fb003379 in QMenuPrivate::activateAction (this=0x2426bc0, action=0x242e800, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1120
#15 0x00007fa087052d70 in KMenu::mouseReleaseEvent (this=0x2426910, e=0x7fffd37a0010) at /usr/src/debug/kdelibs-4.8.3/kdeui/widgets/kmenu.cpp:464
#16 0x00000037fac19d00 in QWidget::event (this=0x2426910, event=0x7fffd37a0010) at kernel/qwidget.cpp:8362
#17 0x00000037fb00462b in QMenu::event (this=0x2426910, e=0x7fffd37a0010) at widgets/qmenu.cpp:2469
#18 0x00000037fabca47c in QApplicationPrivate::notify_helper (this=this@entry=0x100d8b0, receiver=receiver@entry=0x2426910, e=e@entry=0x7fffd37a0010) at kernel/qapplication.cpp:4554
#19 0x00000037fabcf20b in QApplication::notify (this=<optimized out>, receiver=0x2426910, e=0x7fffd37a0010) at kernel/qapplication.cpp:4097
#20 0x00007fa086f99a56 in KApplication::notify (this=0x7fffd37a0e50, receiver=0x2426910, event=0x7fffd37a0010) at /usr/src/debug/kdelibs-4.8.3/kdeui/kernel/kapplication.cpp:311
#21 0x00000037f7f7595e in QCoreApplication::notifyInternal (this=0x7fffd37a0e50, receiver=0x2426910, event=0x7fffd37a0010) at kernel/qcoreapplication.cpp:876
#22 0x00000037fabcb2bb in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:231
#23 QApplicationPrivate::sendMouseEvent (receiver=0x2426910, event=0x7fffd37a0010, alienWidget=0x0, nativeWidget=0x2426910, buttonDown=0x37fb69dd88, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3165
#24 0x00000037fac4585c in QETWidget::translateMouseEvent (this=this@entry=0x2426910, event=event@entry=0x7fffd37a0780) at kernel/qapplication_x11.cpp:4457
#25 0x00000037fac44721 in QApplication::x11ProcessEvent (this=0x7fffd37a0e50, event=0x7fffd37a0780) at kernel/qapplication_x11.cpp:3646
#26 0x00000037fac6a73c in x11EventSourceDispatch (s=s@entry=0x100e400, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#27 0x00000037efe475cc in g_main_dispatch (context=0x100e240) at gmain.c:2515
#28 g_main_context_dispatch (context=context@entry=0x100e240) at gmain.c:3052
#29 0x00000037efe479e8 in g_main_context_iterate (context=context@entry=0x100e240, block=block@entry=1, dispatch=dispatch@entry=1, self=<error reading variable: Unhandled dwarf expression opcode 0xfa>) at gmain.c:3123
#30 0x00000037efe47aa4 in g_main_context_iteration (context=0x100e240, may_block=1) at gmain.c:3184
#31 0x00000037f7fa39e6 in QEventDispatcherGlib::processEvents (this=0xfe3530, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#32 0x00000037fac6a41e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#33 0x00000037f7f7495f in QEventLoop::processEvents (this=this@entry=0x7fffd37a0b50, flags=...) at kernel/qeventloop.cpp:149
#34 0x00000037f7f74be8 in QEventLoop::exec (this=0x7fffd37a0b50, flags=...) at kernel/qeventloop.cpp:204
#35 0x00000037f7f79718 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#36 0x00007fa0889b7602 in kdemain (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kde-baseapps-4.8.3/konqueror/src/konqmain.cpp:227
#37 0x00000037eca21735 in __libc_start_main (main=0x400820 <main(int, char**)>, argc=2, ubp_av=0x7fffd37a10d8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffd37a10c8) at libc-start.c:226
#38 0x0000000000400851 in _start ()

Reported using DrKonqi
Comment 1 Dawit Alemayehu 2012-05-26 19:09:52 UTC
Git commit c54c6cac394fd78af103f842ac5984c02d95286a by Dawit Alemayehu.
Committed on 26/05/2012 at 17:14.
Pushed by adawit into branch 'KDE/4.8'.

Make sure mConfig is properly initialized even when the part does not support
the HtmlSettingsInterface extension.
FIXED-IN: 4.8.4

M  +11   -12   konq-plugins/khtmlsettingsplugin/settingsplugin.cpp

http://commits.kde.org/kde-baseapps/c54c6cac394fd78af103f842ac5984c02d95286a
Comment 2 Dawit Alemayehu 2012-05-26 19:10:26 UTC
Git commit 0a71e5a4b48827b664e9c68abd76ca859a3393f0 by Dawit Alemayehu.
Committed on 26/05/2012 at 17:14.
Pushed by adawit into branch 'master'.

Make sure mConfig is properly initialized even when the part does not support
the HtmlSettingsInterface extension.
FIXED-IN: 4.8.4
(cherry picked from commit c54c6cac394fd78af103f842ac5984c02d95286a)

M  +11   -12   konq-plugins/khtmlsettingsplugin/settingsplugin.cpp

http://commits.kde.org/kde-baseapps/0a71e5a4b48827b664e9c68abd76ca859a3393f0