Bug 316539 - Kontact Crash with PAX Kernel malloc
Summary: Kontact Crash with PAX Kernel malloc
Status: RESOLVED NOT A BUG
Alias: None
Product: KDE PIM Mobile
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-11 14:00 UTC by Gregory Martin Key
Modified: 2013-03-11 23:23 UTC (History)
0 users

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 Gregory Martin Key 2013-03-11 14:00:00 UTC
System:    Host: gurka Kernel: 3.8.2-5-pax x86_64 (64 bit, gcc: 4.7.2)
           Desktop: KDE 4.10.1 (Qt 4.8.4) info: plasma-desktop dm: kdm Distro: Arch Linux
Machine:   Mobo: Gigabyte model: GA-880GM-D2H version: x.x Bios: Award version: F6 date: 08/31/2010
CPU:       Quad core AMD Phenom II X4 840 (-MCP-) cache: 2048 KB flags: (lm nx sse sse2 sse3 sse4a svm) bmips: 25727
           Clock Speeds: 1: 800.00 MHz 2: 3200.00 MHz 3: 3200.00 MHz 4: 800.00 MHz
Graphics:  Card: Advanced Micro Devices [AMD] nee ATI RS880 [Radeon HD 4250] bus-ID: 01:05.0 chip-ID: 1002:9715
           X.Org: 1.13.3 drivers: ati,radeon (unloaded: fbdev) Resolution: 1440x900@59.9hz
           GLX Renderer: Gallium 0.4 on AMD RS880 GLX Version: 3.0 Mesa 9.1 Direct Rendering: Yes
Audio:     Card-1: Advanced Micro Devices [AMD] nee ATI RS880 HDMI Audio [Radeon HD 4200 Series]
           driver: snd_hda_intel bus-ID: 01:05.1 chip-ID: 1002:970f
           Card-2: Advanced Micro Devices [AMD] nee ATI SBx00 Azalia (Intel HDA)
           driver: snd_hda_intel bus-ID: 00:14.2 chip-ID: 1002:4383
           Sound: Advanced Linux Sound Architecture ver: k3.8.2-5-pax

Kontact by Command Line

[daipengg@gurka ~]$ kontact
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
*** Error in `kontact': malloc(): memory corruption: 0x0000000003370970 ***
KCrash: Application '' crashing...
unnamed app(44478): Communication problem with  "kontact" , it probably crashed.
Error message was:  "org.freedesktop.DBus.Error.NoReply" : " "Message did not receive a reply (timeout by message bus)" "

Valgrind for Kontact

[daipengg@gurka ~]$ valgrind kontact
==46753==
==46753==     Valgrind's memory management: out of memory:
==46753==        newSuperblock's request for 4194304 bytes failed.
==46753==        69898240 bytes have already been allocated.
==46753==     Valgrind cannot continue.  Sorry.
==46753==
==46753==     There are several possible reasons for this.
==46753==     - You have some kind of memory limit in place.  Look at the
==46753==       output of 'ulimit -a'.  Is there a limit on the size of
==46753==       virtual memory or address space?
==46753==     - You have run out of swap space.
==46753==     - Valgrind has a bug.  If you think this is the case or you are
==46753==     not sure, please let us know and we'll try to fix it.
==46753==     Please note that programs can take substantially more memory than
==46753==     normal when running under Valgrind tools, eg. up to twice or
==46753==     more, depending on the tool.  On a 64-bit machine, Valgrind
==46753==     should be able to make use of up 32GB memory.  On a 32-bit
==46753==     machine, Valgrind should be able to use all the memory available
==46753==     to a single process, up to 4GB if that's how you have your
==46753==     kernel configured.  Most 32-bit Linux setups allow a maximum of
==46753==     3GB per process.
==46753==
==46753==     Whatever the reason, Valgrind cannot continue.  Sorry.



tail /etc/sysctl.conf

net.core.wmem_max=12582912
net.core.rmem_max=12582912

net.ipv4.tcp_rmem= 10240 87380 12582912
net.ipv4.tcp_wmem= 10240 87380 12582912

net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_sack = 1

net.ipv4.tcp_no_metrics_save = 1
net.core.netdev_max_backlog = 5000

fs.file-max = 10000

tected_hardlinks = 1
fs.protected_symlinks = 1

# reuse/recycle time-wait sockets
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1


This may be related. Kate opens up fine for editing.

Application: Kile (kile), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x724b9cd1b780 (LWP 44641))]

Thread 3 (Thread 0x724b86c0b700 (LWP 44644)):
#0  0x0000724b98ab0fad in poll () from /usr/lib/libc.so.6
#1  0x0000724b93e73b14 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x0000724b93e73c34 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x0000724b9a576b86 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x0000724b9a5473ff in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x0000724b9a547688 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x0000724b9a4488a0 in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x0000724b9a527bbf in ?? () from /usr/lib/libQtCore.so.4
#8  0x0000724b9a44b87c in ?? () from /usr/lib/libQtCore.so.4
#9  0x0000724b9a1bbe0f in start_thread () from /usr/lib/libpthread.so.0
#10 0x0000724b98ab9efd in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x724b8496c700 (LWP 44662)):
#0  0x0000724b9a1bf954 in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x0000724b96d287a7 in ?? () from /usr/lib/libQtScript.so.4
#2  0x0000724b96d287d9 in ?? () from /usr/lib/libQtScript.so.4
#3  0x0000724b9a1bbe0f in start_thread () from /usr/lib/libpthread.so.0
#4  0x0000724b98ab9efd in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x724b9cd1b780 (LWP 44641)):
[KCrash Handler]
#5  0x0000724b96c4508e in ?? () from /usr/lib/libQtScript.so.4
#6  0x0000724b96cc9d99 in ?? () from /usr/lib/libQtScript.so.4
#7  0x0000724b96cca55c in ?? () from /usr/lib/libQtScript.so.4
#8  0x0000724b96d6ace0 in ?? () from /usr/lib/libQtScript.so.4
#9  0x0000724b96d6bcd6 in QScriptEngine::QScriptEngine() () from /usr/lib/libQtScript.so.4
#10 0x0000724b878d444a in ?? () from /usr/lib/libkatepartinterfaces.so.4
#11 0x0000724b878d4d99 in ?? () from /usr/lib/libkatepartinterfaces.so.4
#12 0x0000724b878d5fec in ?? () from /usr/lib/libkatepartinterfaces.so.4
#13 0x0000724b878dc213 in ?? () from /usr/lib/libkatepartinterfaces.so.4
#14 0x0000724b878dc93c in ?? () from /usr/lib/libkatepartinterfaces.so.4
#15 0x0000724b8793d689 in KateView::setupActions() () from /usr/lib/libkatepartinterfaces.so.4
#16 0x0000724b87941ce2 in KateView::KateView(KateDocument*, QWidget*) () from /usr/lib/libkatepartinterfaces.so.4
#17 0x0000724b878b28b9 in KateDocument::createView(QWidget*) () from /usr/lib/libkatepartinterfaces.so.4
#18 0x0000000000501f4e in ?? ()
#19 0x000000000059bd90 in ?? ()
#20 0x000000000059027a in ?? ()
#21 0x00000000004c8826 in _start ()


vm.dirty_background_bytes = 4194304
vm.dirty_bytes = 4194304

net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 1800

net.ipv4.tcp_keepalive_intvl = 30
net.ipv4.tcp_keepalive_probes = 5

net.ipv4.tcp_moderate_rcvbuf = 1
sys.net.ipv4.route.flush = 1

kernel.shmmax = 0x7fffffff
Comment 1 Gregory Martin Key 2013-03-11 22:44:14 UTC
Upgrade to below mentioned kernel 3.8.2-6 fixed Kontact error. However, Kile is still seg faulting.



System:    Host: gurka Kernel: 3.8.2-6-pax x86_64 (64 bit, gcc: 4.7.2)                                                       
           Desktop: KDE 4.10.1 (Qt 4.8.4) info: plasma-desktop dm: kdm Distro: Arch Linux                                    
Machine:   Mobo: Gigabyte model: GA-880GM-D2H version: x.x Bios: Award version: F6 date: 08/31/2010                          
CPU:       Quad core AMD Phenom II X4 840 (-MCP-) cache: 2048 KB flags: (lm nx sse sse2 sse3 sse4a svm) bmips: 25726.4       
           Clock Speeds: 1: 800.00 MHz 2: 800.00 MHz 3: 800.00 MHz 4: 800.00 MHz
Graphics:  Card: Advanced Micro Devices [AMD] nee ATI RS880 [Radeon HD 4250] bus-ID: 01:05.0 chip-ID: 1002:9715
           X.Org: 1.13.3 drivers: ati,radeon (unloaded: fbdev) Resolution: 1440x900@59.9hz
           GLX Renderer: Gallium 0.4 on AMD RS880 GLX Version: 3.0 Mesa 9.1 Direct Rendering: Yes
Audio:     Card-1: Advanced Micro Devices [AMD] nee ATI RS880 HDMI Audio [Radeon HD 4200 Series]
           driver: snd_hda_intel bus-ID: 01:05.1 chip-ID: 1002:970f
           Card-2: Advanced Micro Devices [AMD] nee ATI SBx00 Azalia (Intel HDA)
           driver: snd_hda_intel bus-ID: 00:14.2 chip-ID: 1002:4383
           Sound: Advanced Linux Sound Architecture ver: k3.8.2-6-pax
Info:      Processes: 162 Uptime: 10 min Memory: 1422.3/3450.7MB Runlevel: 5 Gcc sys: 4.7.2
           Client: Shell (bash 4.2.42 running in yakuake) inxi: 1.8.45





Application: Kile (kile), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x742390c06780 (LWP 877))]

Thread 3 (Thread 0x74237aaf6700 (LWP 878)):
#0  0x000074238e0ab810 in pthread_getspecific () from /usr/lib/libpthread.so.0
#1  0x0000742387d82880 in g_thread_self () from /usr/lib/libglib-2.0.so.0
#2  0x0000742387d5ec25 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x000074238e461b86 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x000074238e4323ff in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x000074238e432688 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x000074238e3338a0 in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x000074238e412bbf in ?? () from /usr/lib/libQtCore.so.4
#8  0x000074238e33687c in ?? () from /usr/lib/libQtCore.so.4
#9  0x000074238e0a6e0f in start_thread () from /usr/lib/libpthread.so.0
#10 0x000074238c9a4efd in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x742378857700 (LWP 885)):
#0  0x000074238e0aa954 in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x000074238ac137a7 in ?? () from /usr/lib/libQtScript.so.4
#2  0x000074238ac137d9 in ?? () from /usr/lib/libQtScript.so.4
#3  0x000074238e0a6e0f in start_thread () from /usr/lib/libpthread.so.0
#4  0x000074238c9a4efd in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x742390c06780 (LWP 877)):
[KCrash Handler]
#5  0x000074238ab3008e in ?? () from /usr/lib/libQtScript.so.4
#6  0x000074238abb4d99 in ?? () from /usr/lib/libQtScript.so.4
#7  0x000074238abb555c in ?? () from /usr/lib/libQtScript.so.4
#8  0x000074238ac55ce0 in ?? () from /usr/lib/libQtScript.so.4
#9  0x000074238ac56cd6 in QScriptEngine::QScriptEngine() () from /usr/lib/libQtScript.so.4
#10 0x000074237b7bf44a in ?? () from /usr/lib/libkatepartinterfaces.so.4
#11 0x000074237b7bfd99 in ?? () from /usr/lib/libkatepartinterfaces.so.4
#12 0x000074237b7c0fec in ?? () from /usr/lib/libkatepartinterfaces.so.4
#13 0x000074237b7c7213 in ?? () from /usr/lib/libkatepartinterfaces.so.4
#14 0x000074237b7c793c in ?? () from /usr/lib/libkatepartinterfaces.so.4
#15 0x000074237b828689 in KateView::setupActions() () from /usr/lib/libkatepartinterfaces.so.4
#16 0x000074237b82cce2 in KateView::KateView(KateDocument*, QWidget*) () from /usr/lib/libkatepartinterfaces.so.4
#17 0x000074237b79d8b9 in KateDocument::createView(QWidget*) () from /usr/lib/libkatepartinterfaces.so.4
#18 0x0000000000501f4e in ?? ()
#19 0x000000000059bd90 in ?? ()
#20 0x000000000059027a in ?? ()
#21 0x00000000004c8826 in _start ()
Comment 2 Christophe Marin 2013-03-11 23:23:15 UTC
your bug report makes no sense. It's mixing kontact and kile and none of the trace you pasted is helpful. Please read http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports and open a new bug report for kile