Bug 338985 - [kde4] Crash when opening CSV
Summary: [kde4] Crash when opening CSV
Status: RESOLVED WORKSFORME
Alias: None
Product: lokalize
Classification: Applications
Component: general (show other bugs)
Version: 1.5
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Nick Shaforostoff
URL:
Keywords: investigated, triaged
Depends on:
Blocks:
 
Reported: 2014-09-10 17:58 UTC by Ettore Atalan
Modified: 2018-09-19 14:37 UTC (History)
1 user (show)

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


Attachments
Translation file for MediaInfo (541.87 KB, text/csv)
2014-09-10 18:00 UTC, Ettore Atalan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ettore Atalan 2014-09-10 17:58:13 UTC
Application: lokalize (1.5)
KDE Platform Version: 4.13.3
Qt Version: 4.8.6
Operating System: Linux 3.13.0-36-generic x86_64
Distribution: Ubuntu 14.04.1 LTS

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

Lokalize crashes when opening a translation file in CSV format¹.

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 0x7f38ee4d17c0 (LWP 16232))]

Thread 5 (Thread 0x7f38d92cf700 (LWP 16233)):
#0  0x00007f38ea43636d in read () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f38e645ac20 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f38e6419b14 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f38e6419f7b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f38e641a0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f38eaec47be in QEventDispatcherGlib::processEvents (this=0x7f38d40008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#6  0x00007f38eae960af in QEventLoop::processEvents (this=this@entry=0x7f38d92cede0, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f38eae963a5 in QEventLoop::exec (this=this@entry=0x7f38d92cede0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f38ead92c5f in QThread::exec (this=this@entry=0x1e92ee0) at thread/qthread.cpp:537
#9  0x00007f38eae77823 in QInotifyFileSystemWatcherEngine::run (this=0x1e92ee0) at io/qfilesystemwatcher_inotify.cpp:265
#10 0x00007f38ead9532f in QThreadPrivate::start (arg=0x1e92ee0) at thread/qthread_unix.cpp:349
#11 0x00007f38e6f7f182 in start_thread (arg=0x7f38d92cf700) at pthread_create.c:312
#12 0x00007f38ea444fbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7f38d3287700 (LWP 16234)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f38ead95816 in wait (time=18446744073709551615, this=0x24ea640) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x24ea3c8, mutex=mutex@entry=0x24ea3c0, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f38eb8a5d96 in QFileInfoGatherer::run (this=0x24ea3b0) at dialogs/qfileinfogatherer.cpp:214
#4  0x00007f38ead9532f in QThreadPrivate::start (arg=0x24ea3b0) at thread/qthread_unix.cpp:349
#5  0x00007f38e6f7f182 in start_thread (arg=0x7f38d3287700) at pthread_create.c:312
#6  0x00007f38ea444fbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f38d2a86700 (LWP 16235)):
#0  0x00007f38e6f81569 in __GI___pthread_mutex_lock (mutex=0x7f38c4000a60) at ../nptl/pthread_mutex_lock.c:125
#1  0x00007f38e645b991 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f38e6419fca in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f38e641a0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f38eaec47be in QEventDispatcherGlib::processEvents (this=0x7f38c40008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#5  0x00007f38eae960af in QEventLoop::processEvents (this=this@entry=0x7f38d2a85de0, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f38eae963a5 in QEventLoop::exec (this=this@entry=0x7f38d2a85de0, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f38ead92c5f in QThread::exec (this=this@entry=0x24ee990) at thread/qthread.cpp:537
#8  0x00007f38eae77823 in QInotifyFileSystemWatcherEngine::run (this=0x24ee990) at io/qfilesystemwatcher_inotify.cpp:265
#9  0x00007f38ead9532f in QThreadPrivate::start (arg=0x24ee990) at thread/qthread_unix.cpp:349
#10 0x00007f38e6f7f182 in start_thread (arg=0x7f38d2a86700) at pthread_create.c:312
#11 0x00007f38ea444fbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f38d2285700 (LWP 16236)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f38ead95816 in wait (time=18446744073709551615, this=0x1eebaf0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x1eeb9c8, mutex=0x1eea100, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f38ecccfe6c in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1eeb9a0, th=0x24ac880) at ../../../threadweaver/Weaver/WeaverImpl.cpp:370
#4  0x00007f38eccd2903 in ThreadWeaver::WorkingHardState::applyForWork (this=0x1ee9fe0, th=0x24ac880, previous=0x1d89570) at ../../../threadweaver/Weaver/WorkingHardState.cpp:68
#5  0x00007f38eccd161f in ThreadWeaver::Thread::run (this=0x24ac880) at ../../../threadweaver/Weaver/Thread.cpp:98
#6  0x00007f38ead9532f in QThreadPrivate::start (arg=0x24ac880) at thread/qthread_unix.cpp:349
#7  0x00007f38e6f7f182 in start_thread (arg=0x7f38d2285700) at pthread_create.c:312
#8  0x00007f38ea444fbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f38ee4d17c0 (LWP 16232)):
[KCrash Handler]
#6  QMutex::lock (this=this@entry=0x1400120012005a) at thread/qmutex.cpp:150
#7  0x00007f38eae9b139 in QCoreApplication::postEvent (receiver=0x23e70a0, event=0x26f7f80, priority=priority@entry=0) at kernel/qcoreapplication.cpp:1358
#8  0x00007f38eae9b427 in QCoreApplication::postEvent (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1311
#9  0x00007f38eaea9094 in QObject::deleteLater (this=<optimized out>) at kernel/qobject.cpp:2087
#10 0x000000000043c601 in LokalizeMainWindow::~LokalizeMainWindow (this=this@entry=0x1f139d0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../src/lokalizemainwindow.cpp:153
#11 0x000000000043c6e9 in LokalizeMainWindow::~LokalizeMainWindow (this=0x1f139d0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../src/lokalizemainwindow.cpp:154
#12 0x00007f38eaeafc58 in QObject::event (this=this@entry=0x1f139d0, e=e@entry=0x1f23c10) at kernel/qobject.cpp:1175
#13 0x00007f38eb41855b in QWidget::event (this=this@entry=0x1f139d0, event=event@entry=0x1f23c10) at kernel/qwidget.cpp:8846
#14 0x00007f38eb7d29b3 in QMainWindow::event (this=this@entry=0x1f139d0, event=event@entry=0x1f23c10) at widgets/qmainwindow.cpp:1478
#15 0x00007f38ed1b2491 in KMainWindow::event (this=this@entry=0x1f139d0, ev=ev@entry=0x1f23c10) at ../../kdeui/widgets/kmainwindow.cpp:1084
#16 0x00007f38ed1e9f09 in KXmlGuiWindow::event (this=0x1f139d0, ev=0x1f23c10) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:126
#17 0x00007f38eb3c8e2c in QApplicationPrivate::notify_helper (this=this@entry=0x1d96890, receiver=receiver@entry=0x1f139d0, e=e@entry=0x1f23c10) at kernel/qapplication.cpp:4567
#18 0x00007f38eb3cf4a0 in QApplication::notify (this=this@entry=0x7fffd4a9b880, receiver=receiver@entry=0x1f139d0, e=e@entry=0x1f23c10) at kernel/qapplication.cpp:4353
#19 0x00007f38ed0fdd1a in KApplication::notify (this=0x7fffd4a9b880, receiver=0x1f139d0, event=0x1f23c10) at ../../kdeui/kernel/kapplication.cpp:311
#20 0x00007f38eae974dd in QCoreApplication::notifyInternal (this=0x7fffd4a9b880, receiver=receiver@entry=0x1f139d0, event=event@entry=0x1f23c10) at kernel/qcoreapplication.cpp:953
#21 0x00007f38eae9ab3d in sendEvent (event=0x1f23c10, receiver=0x1f139d0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#22 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x1d4f670) at kernel/qcoreapplication.cpp:1577
#23 0x00007f38eae9afe3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1470
#24 0x00007f38eaec4f83 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#25 postEventSourceDispatch (s=0x1d88de0) at kernel/qeventdispatcher_glib.cpp:287
#26 0x00007f38e6419e04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007f38e641a048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007f38e641a0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007f38eaec47a1 in QEventDispatcherGlib::processEvents (this=0x1d50b50, flags=...) at kernel/qeventdispatcher_glib.cpp:434
#30 0x00007f38eb46abb6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#31 0x00007f38eae960af in QEventLoop::processEvents (this=this@entry=0x7fffd4a9b780, flags=...) at kernel/qeventloop.cpp:149
#32 0x00007f38eae963a5 in QEventLoop::exec (this=this@entry=0x7fffd4a9b780, flags=...) at kernel/qeventloop.cpp:204
#33 0x00007f38eae9bb79 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#34 0x00007f38eb3c737c in QApplication::exec () at kernel/qapplication.cpp:3828
#35 0x0000000000436799 in main (argc=<optimized out>, argv=0x7fffd4a9b9b8) at ../../src/main.cpp:126

Possible duplicates by query: bug 300725.

Reproducible: Always

Steps to Reproduce:
1. Download the CSV file
2. Try to open this CSV file in Lokalize

Actual Results:  
Crash

Expected Results:  
Opening or an error message
Comment 2 Adrián Chaves (Gallaecio) 2015-03-08 12:44:25 UTC
I’ve followed these steps with master (KF5) and I cannot reproduce the crash:
1. Download and extract the specified archive.
2. Right-click “<extracted folder>/MediaInfo/Source/Resource/Plugin/Language/gl.csv”, select Open With and select “lokalize”.

What I get is “Error opening the file <extracted folder>/MediaInfo/Source/Resource/Plugin/Language/gl.csv”, which I think is OK as Lokalize doesn’t support CSV yet, as far as I know.
Comment 3 Andrew Crouthamel 2018-09-19 14:37:33 UTC
This bug has had its resolution changed, but accidentally has been left in NEEDSINFO status. I am thus closing this bug and setting the status as RESOLVED to reflect the resolution change.