Bug 307696

Summary: Lokalize crashes when opening an invalid .po
Product: [Applications] lokalize Reporter: Ossama Khayat <okhayat>
Component: generalAssignee: Nick Shaforostoff <shafff>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ossama Khayat 2012-10-02 06:44:30 UTC
Application: lokalize (1.4)
KDE Platform Version: 4.8.5 (4.8.5)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-31-generic x86_64
Distribution: Ubuntu 12.04.1 LTS

-- Information about the crash:
I was trying to open an invalid .po file. Seems like the header was not properly written.

The crash can be reproduced every time.

-- Backtrace:
Application: Lokalize (lokalize), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f643f878780 (LWP 6547))]

Thread 6 (Thread 0x7f642a3da700 (LWP 6548)):
#0  0x00007f6437951930 in pthread_mutex_lock@plt () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f64379bb5a1 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f643797f914 in g_main_context_query () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f643797ffaa in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f643798049a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f642a3df98b in ?? () from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#6  0x00007f64379a19e5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f64384cae9a in start_thread (arg=0x7f642a3da700) at pthread_create.c:308
#8  0x00007f643b78ddbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f6429bd9700 (LWP 6549)):
#0  0x00007f643b782403 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f6437980036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f643798049a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f6431531406 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f64379a19e5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f64384cae9a in start_thread (arg=0x7f6429bd9700) at pthread_create.c:308
#6  0x00007f643b78ddbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f6416442700 (LWP 6552)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f643c0cf4db in wait (time=18446744073709551615, this=0x2cd7630) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2cd7340, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f643cbfa354 in QFileInfoGatherer::run (this=0x2cd7330) at dialogs/qfileinfogatherer.cpp:214
#4  0x00007f643c0cefcb in QThreadPrivate::start (arg=0x2cd7330) at thread/qthread_unix.cpp:298
#5  0x00007f64384cae9a in start_thread (arg=0x7f6416442700) at pthread_create.c:308
#6  0x00007f643b78ddbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f641505f700 (LWP 6553)):
#0  0x00007f64384ccf69 in __pthread_mutex_lock (mutex=0x7f6408000a60) at pthread_mutex_lock.c:92
#1  0x00007f64379bb5a1 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f643797fb4e in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f643797ffd6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f6437980164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f643c1fd426 in QEventDispatcherGlib::processEvents (this=0x7f64080008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f643c1ccc82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f643c1cced7 in QEventLoop::exec (this=0x7f641505edd0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f643c0cbfa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#9  0x00007f643c1ac9ff in QInotifyFileSystemWatcherEngine::run (this=0x2cd7230) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x00007f643c0cefcb in QThreadPrivate::start (arg=0x2cd7230) at thread/qthread_unix.cpp:298
#11 0x00007f64384cae9a in start_thread (arg=0x7f641505f700) at pthread_create.c:308
#12 0x00007f643b78ddbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f641485e700 (LWP 6554)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f643c0cf4db in wait (time=18446744073709551615, this=0x228e8f0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x228cf00, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f643e0240eb in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x228e7a0, th=0x2d3b2c0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f643e0269db in ThreadWeaver::WorkingHardState::applyForWork (this=0x227c210, th=0x2d3b2c0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f643e02584f in ThreadWeaver::ThreadRunHelper::run (this=0x7f641485de20, parent=0x228e7a0, th=0x2d3b2c0) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007f643e0258db in ThreadWeaver::Thread::run (this=0x2d3b2c0) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007f643c0cefcb in QThreadPrivate::start (arg=0x2d3b2c0) at thread/qthread_unix.cpp:298
#8  0x00007f64384cae9a in start_thread (arg=0x7f641485e700) at pthread_create.c:308
#9  0x00007f643b78ddbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f643f878780 (LWP 6547)):
[KCrash Handler]
#6  QCoreApplication::postEvent (receiver=0x2bd3b60, event=0x2fbfcb0, priority=0) at kernel/qcoreapplication.cpp:1273
#7  0x0000000000440680 in LokalizeMainWindow::~LokalizeMainWindow (this=0x2278310, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../../lokalize/src/lokalizemainwindow.cpp:152
#8  0x0000000000440759 in LokalizeMainWindow::~LokalizeMainWindow (this=0x2278310, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../../lokalize/src/lokalizemainwindow.cpp:153
#9  0x00007f643c1e7478 in QObject::event (this=0x2278310, e=<optimized out>) at kernel/qobject.cpp:1176
#10 0x00007f643c740b7b in QWidget::event (this=0x2278310, event=0x2ac3820) at kernel/qwidget.cpp:8821
#11 0x00007f643cb1ac4b in QMainWindow::event (this=0x2278310, event=0x2ac3820) at widgets/qmainwindow.cpp:1478
#12 0x00007f643e564378 in KXmlGuiWindow::event (this=0x2278310, ev=0x2ac3820) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:126
#13 0x00007f643c6f0894 in notify_helper (e=0x2ac3820, receiver=0x2278310, this=0x202f4a0) at kernel/qapplication.cpp:4559
#14 QApplicationPrivate::notify_helper (this=0x202f4a0, receiver=0x2278310, e=0x2ac3820) at kernel/qapplication.cpp:4531
#15 0x00007f643c6f5713 in QApplication::notify (this=0x7fffd76cc3c0, receiver=0x2278310, e=0x2ac3820) at kernel/qapplication.cpp:4420
#16 0x00007f643e4683f6 in KApplication::notify (this=0x7fffd76cc3c0, receiver=0x2278310, event=0x2ac3820) at ../../kdeui/kernel/kapplication.cpp:311
#17 0x00007f643c1cde9c in QCoreApplication::notifyInternal (this=0x7fffd76cc3c0, receiver=0x2278310, event=0x2ac3820) at kernel/qcoreapplication.cpp:876
#18 0x00007f643c1d1c6a in sendEvent (event=0x2ac3820, receiver=0x2278310) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#19 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x2005670) at kernel/qcoreapplication.cpp:1500
#20 0x00007f643c1fcf93 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#21 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#22 0x00007f643797fd53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007f64379800a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007f6437980164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007f643c1fd3bf in QEventDispatcherGlib::processEvents (this=0x2006b30, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#26 0x00007f643c798d5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#27 0x00007f643c1ccc82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#28 0x00007f643c1cced7 in QEventLoop::exec (this=0x7fffd76cc350, flags=...) at kernel/qeventloop.cpp:204
#29 0x00007f643c1d1f67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#30 0x0000000000436565 in main (argc=2, argv=<optimized out>) at ../../../lokalize/src/main.cpp:125

Possible duplicates by query: bug 291900.

Reported using DrKonqi
Comment 1 Jekyll Wu 2012-10-02 07:20:35 UTC

*** This bug has been marked as a duplicate of bug 291900 ***