Bug 312760

Summary: NepomukStorage crash on creating local socket
Product: nepomuk Reporter: Robby Engelmann <robby.engelmann>
Component: storageAssignee: Nepomuk Bugs Coordination <nepomuk-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: 31154757, 4lix, aj, amigabill, beautyisintheeyeofthebeholder1, bladud, bruno, bugzilla, cfeck, christopher.sternbeck, dva.lider, edu.rm.85, forez84, gorgonizer, gpearce1, hatredman, hrvoje.senjan, johnswolter, julienmeme-libre, Kadams87, kay_jay, kde, kosmonaffft, kredba, marco3l4ck, martinhw.thoma, Master0fPuppets, maxediv, me, nepomuk-bugs, pureacetone, russianneuromancer, sgtsandman87, starcraftmazter, steffen_moeller, stevens37y, thebigming, thomas.pasch, timmachielbos, willii, zilentzin
Priority: NOR    
Version: 4.10.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.11
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
Bug file from Fedora
New crash information added by DrKonqi
New crash information added by DrKonqi

Description Robby Engelmann 2013-01-06 16:25:15 UTC
Application: nepomukservicestub (0.1.0)
KDE Platform Version: 4.9.97
Qt Version: 4.8.3
Operating System: Linux 3.7.0-997-generic i686
Distribution: Ubuntu Raring Ringtail (development branch)

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

I restarted my system and saw this crash immediately after login.

The crash can be reproduced some of the time.

-- Backtrace:
Application: Nepomuk Service Stub (nepomukservicestub), signal: Aborted
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0xb53de740 (LWP 2848))]

Thread 5 (Thread 0xb0affb40 (LWP 2973)):
#0  __pthread_mutex_unlock_usercnt (mutex=0xb0100550, decr=1) at pthread_mutex_unlock.c:52
#1  0xb5ef27b4 in pthread_mutex_unlock (mutex=0xb0100550) at forward.c:194
#2  0xb5d3ff50 in g_mutex_unlock (mutex=mutex@entry=0xb01004e0) at /build/buildd/glib2.0-2.34.3/./glib/gthread-posix.c:229
#3  0xb5cfebe0 in g_main_context_iterate (context=context@entry=0xb01004e0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.34.3/./glib/gmain.c:3238
#4  0xb5cfeea1 in g_main_context_iteration (context=0xb01004e0, may_block=1) at /build/buildd/glib2.0-2.34.3/./glib/gmain.c:3351
#5  0xb759999f in QEventDispatcherGlib::processEvents (this=0xb0100468, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0xb756626c in QEventLoop::processEvents (this=this@entry=0xb0aff228, flags=...) at kernel/qeventloop.cpp:149
#7  0xb7566561 in QEventLoop::exec (this=0xb0aff228, flags=...) at kernel/qeventloop.cpp:204
#8  0xb745166c in QThread::exec (this=0x9a11ea8) at thread/qthread.cpp:501
#9  0xb75447bd in QInotifyFileSystemWatcherEngine::run (this=0x9a11ea8) at io/qfilesystemwatcher_inotify.cpp:248
#10 0xb7454a58 in QThreadPrivate::start (arg=0x9a11ea8) at thread/qthread_unix.cpp:338
#11 0xb5de2d78 in start_thread (arg=0xb0affb40) at pthread_create.c:311
#12 0xb5ee4bbe in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:132

Thread 4 (Thread 0xb00ffb40 (LWP 2991)):
[KCrash Handler]
#7  0xb76f7424 in __kernel_vsyscall ()
#8  0xb5e2592f in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:63
#9  0xb5e28ec3 in __GI_abort () at abort.c:90
#10 0xb5ff18bd in __gnu_cxx::__verbose_terminate_handler () at ../../../../src/libstdc++-v3/libsupc++/vterminate.cc:95
#11 0xb5fef503 in __cxxabiv1::__terminate (handler=0xb5ff1770 <__gnu_cxx::__verbose_terminate_handler()>) at ../../../../src/libstdc++-v3/libsupc++/eh_terminate.cc:40
#12 0xb5fef53f in std::terminate () at ../../../../src/libstdc++-v3/libsupc++/eh_terminate.cc:50
#13 0xb5ff0332 in __cxxabiv1::__cxa_pure_virtual () at ../../../../src/libstdc++-v3/libsupc++/pure.cc:50
#14 0xb5b3a99c in QAbstractSocketEngine::createSocketEngine (socketDescripter=24, parent=0xaf702174) at socket/qabstractsocketengine.cpp:133
#15 0xb5b48bd8 in QAbstractSocket::setSocketDescriptor (this=0xaf702174, socketDescriptor=24, socketState=QAbstractSocket::ConnectedState, openMode=...) at socket/qabstractsocket.cpp:1604
#16 0xb5b59eaa in QLocalSocket::setSocketDescriptor (this=0xaf700df0, socketDescriptor=24, socketState=QLocalSocket::ConnectedState, openMode=...) at socket/qlocalsocket_unix.cpp:370
#17 0xb22f71c3 in (anonymous namespace)::LocalServerConnection::createIODevice (this=0x9c739c0) at ../../server/localserver.cpp:41
#18 0xb22f2ea1 in Soprano::Server::ServerConnection::run (this=0x9c739c0) at ../../server/serverconnection.cpp:140
#19 0xb7454a58 in QThreadPrivate::start (arg=0x9c739c0) at thread/qthread_unix.cpp:338
#20 0xb5de2d78 in start_thread (arg=0xb00ffb40) at pthread_create.c:311
#21 0xb5ee4bbe in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:132

Thread 3 (Thread 0xaf6feb40 (LWP 2992)):
#0  0xb76f7424 in __kernel_vsyscall ()
#1  0xb5ee0d47 in syscall () at ../sysdeps/unix/sysv/linux/i386/syscall.S:29
#2  0xb74532f7 in _q_futex (timeout=0x0, val=2, op=0, addr=0xaf7023a8, addr2=<optimized out>, val2=<optimized out>) at thread/qmutex_unix.cpp:99
#3  QMutexPrivate::wait (this=0xaf7023a8, timeout=-1) at thread/qmutex_unix.cpp:113
#4  0xb744eecc in QMutex::lockInternal (this=0xaf70239c) at thread/qmutex.cpp:450
#5  0xb5b3ad18 in lockInline (this=0xaf70239c) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:190
#6  QMutexLocker (m=0xaf70239c, this=0xaf6fe098) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:109
#7  QSocketEngineHandler::~QSocketEngineHandler (this=0xaed02398, __in_chrg=<optimized out>) at socket/qabstractsocketengine.cpp:75
#8  0xb5b3eb3a in ~QHttpSocketEngineHandler (this=0xaed02398, __in_chrg=<optimized out>) at socket/qhttpsocketengine_p.h:189
#9  QHttpSocketEngineHandler::~QHttpSocketEngineHandler (this=0xaed02398, __in_chrg=<optimized out>) at socket/qhttpsocketengine_p.h:189
#10 0xb5b304f4 in ~QGlobalNetworkProxy (this=0xaed02348, __in_chrg=<optimized out>) at kernel/qnetworkproxy.cpp:263
#11 globalNetworkProxy () at kernel/qnetworkproxy.cpp:337
#12 0xb5b31309 in QNetworkProxy::QNetworkProxy (this=0xaed02260) at kernel/qnetworkproxy.cpp:442
#13 0xb5b49473 in QAbstractSocketPrivate::QAbstractSocketPrivate (this=0xaed021a0) at socket/qabstractsocket.cpp:489
#14 0xb5b4f5f4 in QTcpSocketPrivate (this=0xaed021a0) at socket/qtcpsocket_p.h:61
#15 QTcpSocket::QTcpSocket (this=0xaed02174, parent=0x0) at socket/qtcpsocket.cpp:94
#16 0xb5b58d74 in QLocalUnixSocket (this=0xaed02174) at socket/qlocalsocket_p.h:83
#17 QLocalSocketPrivate::QLocalSocketPrivate (this=0xaed020e8) at socket/qlocalsocket_unix.cpp:72
#18 0xb5b52294 in QLocalSocket::QLocalSocket (this=0xaed00df0, parent=0x0) at socket/qlocalsocket.cpp:337
#19 0xb22f7198 in (anonymous namespace)::LocalServerConnection::createIODevice (this=0x9c6d1c8) at ../../server/localserver.cpp:40
#20 0xb22f2ea1 in Soprano::Server::ServerConnection::run (this=0x9c6d1c8) at ../../server/serverconnection.cpp:140
#21 0xb7454a58 in QThreadPrivate::start (arg=0x9c6d1c8) at thread/qthread_unix.cpp:338
#22 0xb5de2d78 in start_thread (arg=0xaf6feb40) at pthread_create.c:311
#23 0xb5ee4bbe in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:132

Thread 2 (Thread 0xaecffb40 (LWP 2993)):
#0  0xb76f7424 in __kernel_vsyscall ()
#1  0xb5ed66bb in poll () at ../sysdeps/unix/syscall-template.S:81
#2  0xb5d0d7cb in poll (__timeout=-1, __nfds=1, __fds=0xae302a48) at /usr/include/i386-linux-gnu/bits/poll2.h:46
#3  g_poll (fds=0xae302a48, nfds=1, timeout=-1) at /build/buildd/glib2.0-2.34.3/./glib/gpoll.c:132
#4  0xb5cfed40 in g_main_context_poll (n_fds=1, fds=0xae302a48, timeout=<optimized out>, context=0xae3004e0, priority=<optimized out>) at /build/buildd/glib2.0-2.34.3/./glib/gmain.c:3584
#5  g_main_context_iterate (context=context@entry=0xae3004e0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.34.3/./glib/gmain.c:3285
#6  0xb5cfeea1 in g_main_context_iteration (context=0xae3004e0, may_block=1) at /build/buildd/glib2.0-2.34.3/./glib/gmain.c:3351
#7  0xb759999f in QEventDispatcherGlib::processEvents (this=0xae300468, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#8  0xb756626c in QEventLoop::processEvents (this=this@entry=0xaecff218, flags=...) at kernel/qeventloop.cpp:149
#9  0xb7566561 in QEventLoop::exec (this=0xaecff218, flags=...) at kernel/qeventloop.cpp:204
#10 0xb745166c in QThread::exec (this=0x9befa78) at thread/qthread.cpp:501
#11 0xb22f2f2c in Soprano::Server::ServerConnection::run (this=0x9befa78) at ../../server/serverconnection.cpp:151
#12 0xb7454a58 in QThreadPrivate::start (arg=0x9befa78) at thread/qthread_unix.cpp:338
#13 0xb5de2d78 in start_thread (arg=0xaecffb40) at pthread_create.c:311
#14 0xb5ee4bbe in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:132

Thread 1 (Thread 0xb53de740 (LWP 2848)):
#0  0xb76f7424 in __kernel_vsyscall ()
#1  0xb5ee0d47 in syscall () at ../sysdeps/unix/sysv/linux/i386/syscall.S:29
#2  0xb74532f7 in _q_futex (timeout=0x0, val=2, op=0, addr=0xaf7023a8, addr2=<optimized out>, val2=<optimized out>) at thread/qmutex_unix.cpp:99
#3  QMutexPrivate::wait (this=0xaf7023a8, timeout=-1) at thread/qmutex_unix.cpp:113
#4  0xb744eecc in QMutex::lockInternal (this=0xaf70239c) at thread/qmutex.cpp:450
#5  0xb5b3ad18 in lockInline (this=0xaf70239c) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:190
#6  QMutexLocker (m=0xaf70239c, this=0xbfe15038) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:109
#7  QSocketEngineHandler::~QSocketEngineHandler (this=0xaf702388, __in_chrg=<optimized out>) at socket/qabstractsocketengine.cpp:75
#8  0xb5b4633a in ~QSocks5SocketEngineHandler (this=0xaf702388, __in_chrg=<optimized out>) at socket/qsocks5socketengine_p.h:288
#9  QSocks5SocketEngineHandler::~QSocks5SocketEngineHandler (this=0xaf702388, __in_chrg=<optimized out>) at socket/qsocks5socketengine_p.h:288
#10 0xb5b3272f in ~QGlobalNetworkProxy (this=0xaf702348, __in_chrg=<optimized out>) at kernel/qnetworkproxy.cpp:262
#11 QGlobalStaticDeleter<QGlobalNetworkProxy>::~QGlobalStaticDeleter (this=0xb5bcfa70 <globalNetworkProxy()::cleanup>, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qglobal.h:1950
#12 0xb5e2a601 in __run_exit_handlers (status=status@entry=1, listp=0xb5fa03e4 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:77
#13 0xb5e2a68d in __GI_exit (status=1) at exit.c:99
#14 0xb623f128 in qt_xio_errhandler () at kernel/qapplication_x11.cpp:781
#15 0xb6e4c0d9 in KApplication::xioErrhandler (this=0xbfe15518, dpy=dpy@entry=0x9819f10) at ../../kdeui/kernel/kapplication.cpp:419
#16 0xb6e4c114 in kde_xio_errhandler (dpy=0x9819f10) at ../../kdeui/kernel/kapplication.cpp:126
#17 0xb5932b84 in _XIOError (dpy=dpy@entry=0x9819f10) at ../../src/XlibInt.c:1618
#18 0xb59303df in _XEventsQueued (dpy=dpy@entry=0x9819f10, mode=mode@entry=2) at ../../src/xcb_io.c:365
#19 0xb5920f40 in XEventsQueued (dpy=0x9819f10, mode=2) at ../../src/Pending.c:43
#20 0xb627f7aa in x11EventSourceCheck (s=0x9818178) at kernel/qguieventdispatcher_glib.cpp:85
#21 0xb5cfe803 in g_main_context_check (context=context@entry=0x9817230, max_priority=2147483647, fds=fds@entry=0x9c61298, n_fds=n_fds@entry=11) at /build/buildd/glib2.0-2.34.3/./glib/gmain.c:3169
#22 0xb5cfecd2 in g_main_context_iterate (context=context@entry=0x9817230, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.34.3/./glib/gmain.c:3287
#23 0xb5cfeea1 in g_main_context_iteration (context=0x9817230, may_block=1) at /build/buildd/glib2.0-2.34.3/./glib/gmain.c:3351
#24 0xb7599981 in QEventDispatcherGlib::processEvents (this=0x97f9800, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#25 0xb627f9aa in QGuiEventDispatcherGlib::processEvents (this=0x97f9800, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#26 0xb756626c in QEventLoop::processEvents (this=this@entry=0xbfe153f8, flags=...) at kernel/qeventloop.cpp:149
#27 0xb7566561 in QEventLoop::exec (this=0xbfe153f8, flags=...) at kernel/qeventloop.cpp:204
#28 0xb756bcba in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#29 0xb61c6fc4 in QApplication::exec () at kernel/qapplication.cpp:3823
#30 0x0804b27d in main (argc=2, argv=0xbfe156b4) at ../../servicestub/main.cpp:177

Possible duplicates by query: bug 312524, bug 308801, bug 306218, bug 305584, bug 302555.

Reported using DrKonqi
Comment 1 wintonian 2013-01-28 01:28:46 UTC
Created attachment 76764 [details]
New crash information added by DrKonqi

nepomukservicestub (0.1.0) on KDE Platform 4.9.98 using Qt 4.8.3

- What I was doing when the application crashed:

I had just rebooted Kubuntu and shortly after logging in while all the apps and stuff were loading up I noticed Dr.Konq sitting on the taskbar with this crash.

-- Backtrace (Reduced):
#6  0x00007f1b9e74c425 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f1b9e74fb8b in __GI_abort () at abort.c:91
[...]
#12 0x00007f1b9cfbb8a2 in QAbstractSocketEngine::createSocketEngine (socketDescripter=18, parent=0x7f1b7c002808) at socket/qabstractsocketengine.cpp:133
#13 0x00007f1b9cfc8223 in QAbstractSocket::setSocketDescriptor (this=0x7f1b7c002808, socketDescriptor=18, socketState=QAbstractSocket::ConnectedState, openMode=...) at socket/qabstractsocket.cpp:1604
#14 0x00007f1b9cfd72e0 in QLocalSocket::setSocketDescriptor (this=<optimized out>, socketDescriptor=18, socketState=QLocalSocket::ConnectedState, openMode=...) at socket/qlocalsocket_unix.cpp:370
Comment 2 AJ Patell 2013-02-08 20:43:02 UTC
Created attachment 77032 [details]
New crash information added by DrKonqi

nepomukservicestub (0.1.0) on KDE Platform 4.10.00 using Qt 4.8.2

- What I was doing when the application crashed:

Simple reboot. First time this has happened. Had just upgraded the kde suite from normal apt-get update session.

-- Backtrace (Reduced):
#6  0x00007f9ba4c5d425 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f9ba4c60b8b in __GI_abort () at abort.c:91
[...]
#12 0x00007f9ba34c7b8a in QAbstractSocketEngine::createSocketEngine (socketDescripter=19, parent=0x7f9b80002808) at socket/qabstractsocketengine.cpp:133
#13 0x00007f9ba34d5763 in QAbstractSocket::setSocketDescriptor (this=0x7f9b80002808, socketDescriptor=19, socketState=QAbstractSocket::ConnectedState, openMode=...) at socket/qabstractsocket.cpp:1614
#14 0x00007f9ba34e5861 in QLocalSocket::setSocketDescriptor (this=<optimized out>, socketDescriptor=19, socketState=QLocalSocket::ConnectedState, openMode=...) at socket/qlocalsocket_unix.cpp:370
Comment 3 Simeon Bird 2013-02-16 17:34:14 UTC
I suspect this to be another crash caused by running out of file descriptors, since it looks like it is happening when initialising a new socket descriptor. In which case it should be fixed by 630939e388beb4eaf6387a4f9bb827a87fdd0478

Can someone confirm it is fixed by that? Should be easy when 10.1 is released
Comment 4 Vishesh Handa 2013-02-19 14:23:15 UTC
*** Bug 315359 has been marked as a duplicate of this bug. ***
Comment 5 Vishesh Handa 2013-03-11 19:11:50 UTC
*** Bug 313033 has been marked as a duplicate of this bug. ***
Comment 6 Vishesh Handa 2013-03-11 19:14:06 UTC
(In reply to comment #3)
> 
> Can someone confirm it is fixed by that? Should be easy when 10.1 is released

Doesn't seem like it has gotten fixed. Plus, I think each process has a max file descriptor limit. We were overflowing the process's max limit. Not the global one. I think.
Comment 7 Vishesh Handa 2013-03-12 09:28:26 UTC
*** Bug 315713 has been marked as a duplicate of this bug. ***
Comment 8 Christopher 2013-03-16 16:34:59 UTC
Created attachment 78112 [details]
New crash information added by DrKonqi

nepomukservicestub (0.1.0) on KDE Platform 4.10.1 using Qt 4.8.2

- What I was doing when the application crashed:

I reboot my computer and Nepomuk crashed after login.

-- Backtrace (Reduced):
#12 0x00007f64d010eb8a in QAbstractSocketEngine::createSocketEngine (socketDescripter=20, parent=0x7f64b0002a08) at socket/qabstractsocketengine.cpp:133
#13 0x00007f64d011c763 in QAbstractSocket::setSocketDescriptor (this=0x7f64b0002a08, socketDescriptor=20, socketState=QAbstractSocket::ConnectedState, openMode=...) at socket/qabstractsocket.cpp:1614
#14 0x00007f64d012c861 in QLocalSocket::setSocketDescriptor (this=<optimized out>, socketDescriptor=20, socketState=QLocalSocket::ConnectedState, openMode=...) at socket/qlocalsocket_unix.cpp:370
[...]
#17 0x00007f64d3d4509b in QThreadPrivate::start (arg=0x1c30c50) at thread/qthread_unix.cpp:307
[...]
Comment 9 AJ Patell 2013-03-19 17:09:37 UTC
Created attachment 78211 [details]
New crash information added by DrKonqi

nepomukservicestub (0.1.0) on KDE Platform 4.10.1 using Qt 4.8.2

- What I was doing when the application crashed:

Restarted the computer. Crashed immediately upon login to desktop.

-- Backtrace (Reduced):
#6  0x00007f16cdebb425 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f16cdebeb8b in __GI_abort () at abort.c:91
[...]
#12 0x00007f16cc725b8a in QAbstractSocketEngine::createSocketEngine (socketDescripter=21, parent=0x7f16a4002808) at socket/qabstractsocketengine.cpp:133
#13 0x00007f16cc733763 in QAbstractSocket::setSocketDescriptor (this=0x7f16a4002808, socketDescriptor=21, socketState=QAbstractSocket::ConnectedState, openMode=...) at socket/qabstractsocket.cpp:1614
#14 0x00007f16cc743861 in QLocalSocket::setSocketDescriptor (this=<optimized out>, socketDescriptor=21, socketState=QLocalSocket::ConnectedState, openMode=...) at socket/qlocalsocket_unix.cpp:370
Comment 10 Bruno Friedmann 2013-03-23 08:25:12 UTC
Created attachment 78306 [details]
New crash information added by DrKonqi

nepomukservicestub (0.1.0) on KDE Platform 4.10.1 "release 545" using Qt 4.8.4

- What I was doing when the application crashed: After a cold reboot, the session is in opening state. (kde use autologin)
Kwallet is not open at that time. Nepomuk services are all ask to start 
The crash appear right after the session is opened.
look like all are running ?

-- Backtrace (Reduced):
#12 0x00007f46447c6db2 in QAbstractSocketEngine::createSocketEngine (socketDescripter=20, parent=0x7f4624002808) at socket/qabstractsocketengine.cpp:133
#13 0x00007f46447d3713 in QAbstractSocket::setSocketDescriptor (this=0x7f4624002808, socketDescriptor=20, socketState=QAbstractSocket::ConnectedState, openMode=...) at socket/qabstractsocket.cpp:1604
#14 0x00007f46447e2870 in QLocalSocket::setSocketDescriptor (this=<optimized out>, socketDescriptor=20, socketState=QLocalSocket::ConnectedState, openMode=...) at socket/qlocalsocket_unix.cpp:370
#15 0x00007f4638afd523 in (anonymous namespace)::LocalServerConnection::createIODevice (this=0x1f6e950) at /usr/src/debug/soprano-2.9.0/server/localserver.cpp:41
#16 0x00007f4638af9da7 in Soprano::Server::ServerConnection::run (this=0x1f6e950) at /usr/src/debug/soprano-2.9.0/server/serverconnection.cpp:140
Comment 11 Carlos R. 2013-04-02 13:10:36 UTC
Created attachment 78575 [details]
New crash information added by DrKonqi

nepomukservicestub (0.1.0) on KDE Platform 4.10.1 "release 545" using Qt 4.8.4

- What I was doing when the application crashed:

I simply switched on the computer and the crash popped up after logging in.

-- Backtrace (Reduced):
#12 0x00007fee2bff9dd2 in QAbstractSocketEngine::createSocketEngine (socketDescripter=23, parent=0x7fee04002a08) at socket/qabstractsocketengine.cpp:133
#13 0x00007fee2c006733 in QAbstractSocket::setSocketDescriptor (this=0x7fee04002a08, socketDescriptor=23, socketState=QAbstractSocket::ConnectedState, openMode=...) at socket/qabstractsocket.cpp:1604
#14 0x00007fee2c015890 in QLocalSocket::setSocketDescriptor (this=<optimized out>, socketDescriptor=23, socketState=QLocalSocket::ConnectedState, openMode=...) at socket/qlocalsocket_unix.cpp:370
#15 0x00007fee20589543 in (anonymous namespace)::LocalServerConnection::createIODevice (this=0xe4acd0) at /usr/src/debug/soprano-2.9.0/server/localserver.cpp:41
#16 0x00007fee20585dc7 in Soprano::Server::ServerConnection::run (this=0xe4acd0) at /usr/src/debug/soprano-2.9.0/server/serverconnection.cpp:140
Comment 12 Vishesh Handa 2013-04-04 17:14:45 UTC
*** Bug 317821 has been marked as a duplicate of this bug. ***
Comment 13 Vishesh Handa 2013-04-04 17:14:50 UTC
*** Bug 317383 has been marked as a duplicate of this bug. ***
Comment 14 Christoph Feck 2013-04-20 23:32:30 UTC
*** Bug 318369 has been marked as a duplicate of this bug. ***
Comment 15 timmachielbos 2013-04-28 13:23:16 UTC
Created attachment 79513 [details]
New crash information added by DrKonqi

nepomukservicestub (0.1.0) on KDE Platform 4.10.2 "release 1" using Qt 4.8.4

- What I was doing when the application crashed: restartin my computer. appeared right after login.

-- Backtrace (Reduced):
#11 0x00007fd70d727dd2 in QAbstractSocketEngine::createSocketEngine (socketDescripter=19, parent=0x7fd6f4002a08) at socket/qabstractsocketengine.cpp:133
#12 0x00007fd70d734733 in QAbstractSocket::setSocketDescriptor (this=0x7fd6f4002a08, socketDescriptor=19, socketState=QAbstractSocket::ConnectedState, openMode=...) at socket/qabstractsocket.cpp:1604
#13 0x00007fd70d743890 in QLocalSocket::setSocketDescriptor (this=<optimized out>, socketDescriptor=19, socketState=QLocalSocket::ConnectedState, openMode=...) at socket/qlocalsocket_unix.cpp:370
#14 0x00007fd701c32543 in (anonymous namespace)::LocalServerConnection::createIODevice (this=0x24b2040) at /usr/src/debug/soprano-2.9.0/server/localserver.cpp:41
#15 0x00007fd701c2edc7 in Soprano::Server::ServerConnection::run (this=0x24b2040) at /usr/src/debug/soprano-2.9.0/server/serverconnection.cpp:140
Comment 16 maxediv 2013-05-03 11:56:14 UTC
Created attachment 79661 [details]
New crash information added by DrKonqi

nepomukservicestub (0.1.0) on KDE Platform 4.10.2 using Qt 4.8.4

- What I was doing when the application crashed:

Immediatly after turning on the computer, this crashed. It restarted successfully though.

-- Backtrace (Reduced):
#11 0x00007f6c870fe802 in QAbstractSocketEngine::createSocketEngine (socketDescripter=socketDescripter@entry=19, parent=parent@entry=0x7f6c5c002808) at socket/qabstractsocketengine.cpp:133
#12 0x00007f6c8710aee3 in QAbstractSocket::setSocketDescriptor (this=this@entry=0x7f6c5c002808, socketDescriptor=socketDescriptor@entry=19, socketState=socketState@entry=QAbstractSocket::ConnectedState, openMode=...) at socket/qabstractsocket.cpp:1604
#13 0x00007f6c8711a2e0 in QLocalSocket::setSocketDescriptor (this=<optimized out>, socketDescriptor=19, socketState=QLocalSocket::ConnectedState, openMode=...) at socket/qlocalsocket_unix.cpp:370
[...]
#16 0x00007f6c8acd9bec in QThreadPrivate::start (arg=0x23cc780) at thread/qthread_unix.cpp:338
[...]
Comment 17 Simeon Bird 2013-05-05 03:34:21 UTC
*** Bug 319327 has been marked as a duplicate of this bug. ***
Comment 18 Hrvoje Senjan 2013-05-06 22:14:56 UTC
(In reply to comment #3)
> I suspect this to be another crash caused by running out of file
> descriptors, since it looks like it is happening when initialising a new
> socket descriptor.

Simeon, should this also be fixed with your "Fix QTBUG-18934 by checking return value of qt_safe_pipe " Qt commit? 
(asking as a packager, as i did not experience the bug)
Comment 19 Simeon Bird 2013-05-07 00:02:19 UTC
Unlikely - I thought about this a bit more, and I suspect it is because the storage service is receiving an X error at an inconvenient time, which causes an uncontrolled shutdown of qapplication, starts to kill some singleton classes and then new socket opens crash. 

But not sure why the X error is being received on startup. This only seems to happen on opensuse and ubuntu, so is it perhaps an apparmor thing?
Comment 20 Hrvoje Senjan 2013-05-07 00:41:43 UTC
(In reply to comment #19)
> Unlikely - I thought about this a bit more, and I suspect it is because the
> storage service is receiving an X error at an inconvenient time, which
> causes an uncontrolled shutdown of qapplication, starts to kill some
> singleton classes and then new socket opens crash. 
Ok ;-) I asked as that commit was added to our Qt package, but a bit too late for inclusion in 12.3, so i was wondering should we issue an update for it.

> But not sure why the X error is being received on startup. This only seems
> to happen on opensuse and ubuntu, so is it perhaps an apparmor thing?
Well, we have it disabled by default on openSUSE (and tbh i am not sure our apparmor packages are in usable state), so i doubt it's that.
Comment 21 Jekyll Wu 2013-05-07 01:50:29 UTC
*** Bug 319436 has been marked as a duplicate of this bug. ***
Comment 22 Simeon Bird 2013-05-07 02:37:53 UTC
> > Unlikely - I thought about this a bit more, and I suspect it is because the
> > storage service is receiving an X error at an inconvenient time, which
> > causes an uncontrolled shutdown of qapplication, starts to kill some
> > singleton classes and then new socket opens crash. 
> Ok ;-) I asked as that commit was added to our Qt package, but a bit too
> late for inclusion in 12.3, so i was wondering should we issue an update for
> it.

Yup, probably not worth it

> > But not sure why the X error is being received on startup. This only seems
> > to happen on opensuse and ubuntu, so is it perhaps an apparmor thing?
> Well, we have it disabled by default on openSUSE (and tbh i am not sure our
> apparmor packages are in usable state), so i doubt it's that.

Aha, thanks. That rules out one more hypothesis.
Comment 23 duncan_mk 2013-05-09 11:02:57 UTC
Created attachment 79793 [details]
New crash information added by DrKonqi

nepomukservicestub (0.1.0) on KDE Platform 4.10.2 "release 1" using Qt 4.8.4

- What I was doing when the application crashed:

I had logged on, KDE was loaded & kwallet had opened requesting the P/wd for the network manager.

This is an intermittent fault - it has happened before but is not reproducible.  Interestingly the Kernel has recently (within the last 2/3 days) been upgraded to 3.7.10-1.4.  This fault has occurred with both the old and the new Kernel

There is no indication as to when some of the previous reports were made but this does some to have been going on for some time.

System:    
    Host: linux-mn4n.site Kernel: 3.7.10-1.4-desktop x86_64 (64 bit, gcc: 4.7.2) 
    Desktop KDE 4.10.2 (Qt 4.8.4) 
    Distro: openSUSE 12.3 (x86_64)
    VERSION = 12.3 
    CODENAME = Dartmouth

Machine:   
    System: SAMSUNG (portable) product: RV411/RV511/E3511/S3511/RV711
     Mobo: SAMSUNG 
     model: RV411/RV511/E3511/S3511/RV711 
     Bios: Phoenix 
     version: 03PA.M001.20110312.XW 
     date: 03/12/2011

CPU:
     Dual core Intel Core i5 CPU M 480 (-HT-MCP-) 
     cache: 3072 KB 
     flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) 
     bmips: 10639.8

-- Backtrace (Reduced):
#11 0x00007f9af29badd2 in QAbstractSocketEngine::createSocketEngine (socketDescripter=17, parent=0x7f9ad4002808) at socket/qabstractsocketengine.cpp:133
#12 0x00007f9af29c7733 in QAbstractSocket::setSocketDescriptor (this=0x7f9ad4002808, socketDescriptor=17, socketState=QAbstractSocket::ConnectedState, openMode=...) at socket/qabstractsocket.cpp:1604
#13 0x00007f9af29d6890 in QLocalSocket::setSocketDescriptor (this=<optimized out>, socketDescriptor=17, socketState=QLocalSocket::ConnectedState, openMode=...) at socket/qlocalsocket_unix.cpp:370
#14 0x00007f9ae6e32543 in (anonymous namespace)::LocalServerConnection::createIODevice (this=0x2368000) at /usr/src/debug/soprano-2.9.0/server/localserver.cpp:41
#15 0x00007f9ae6e2edc7 in Soprano::Server::ServerConnection::run (this=0x2368000) at /usr/src/debug/soprano-2.9.0/server/serverconnection.cpp:140
Comment 24 Felix Röder 2013-05-09 16:40:48 UTC
Created attachment 79802 [details]
New crash information added by DrKonqi

nepomukservicestub (0.1.0) on KDE Platform 4.10.2 using Qt 4.8.4

- What I was doing when the application crashed:
I booted openSUSE 12.3 in runlevel 5 ( AKA X11 with network) .

-- Backtrace (Reduced):
#5  0x00007fee4feaf3d5 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#6  0x00007fee4feb0858 in __GI_abort () at abort.c:90
#7  0x00007fee5028d8cd in __gnu_cxx::__verbose_terminate_handler () at ../../../../libstdc++-v3/libsupc++/vterminate.cc:95
#8  0x00007fee5028b9c6 in __cxxabiv1::__terminate (handler=<optimized out>) at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:40
#9  0x00007fee5028b9f3 in std::terminate () at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:50
Comment 25 Simeon Bird 2013-05-12 20:26:33 UTC
Ok - so my present guess is that the X error being received is "X server not yet ready". 
If so, we can fix this by just starting nepomuk a bit later (with the added bonus that kde will start a little faster because it won't wait for nepomuk). 

If my guess is right, the bug can be fixed by executing at a terminal the following command (for OpenSuSe):

sudo sed -i -e "s/X-KDE-autostart-phase=1/X-KDE-autostart-phase=2/" /usr/share/autostart/nepomukserver.desktop

Can someone who can reproduce this try that and reboot a couple times?

Thanks
Comment 26 Christoph Feck 2013-05-14 00:24:48 UTC
> I suspect it is because the storage service is receiving an X error at an inconvenient time

No, the XIO Error is because of the crash in thread 4 (original report).
Comment 27 Bruno Friedmann 2013-05-14 07:13:55 UTC
Simeon, actually I didn't saw anymore crashes with 4.10.3 
Your fix (starting nepomuk later) cause klauncher error in folder view I've on my desktop, one pointing to Desktop and another one for nepomuksearch:/
Comment 28 Felix Röder 2013-05-14 17:15:21 UTC
Am 12.05.2013 22:26, schrieb Simeon Bird:
> https://bugs.kde.org/show_bug.cgi?id=312760
> 
> --- Comment #25 from Simeon Bird <bladud@gmail.com> ---
> Ok - so my present guess is that the X error being received is "X server not
> yet ready". 
> If so, we can fix this by just starting nepomuk a bit later (with the added
> bonus that kde will start a little faster because it won't wait for nepomuk). 
> 
> If my guess is right, the bug can be fixed by executing at a terminal the
> following command (for OpenSuSe):
> 
> sudo sed -i -e "s/X-KDE-autostart-phase=1/X-KDE-autostart-phase=2/"
> /usr/share/autostart/nepomukserver.desktop
> 
> Can someone who can reproduce this try that and reboot a couple times?
> 
> Thanks
> 
Hi Simeon,
I've tried Your hint.
And - ok- it works for me.
No more crashes.

Thanks
Felix
Comment 29 Chao Feng 2013-05-16 12:26:59 UTC
*** Bug 319832 has been marked as a duplicate of this bug. ***
Comment 30 Simeon Bird 2013-05-17 00:36:43 UTC
(In reply to comment #26)
> > I suspect it is because the storage service is receiving an X error at an inconvenient time
> 
> No, the XIO Error is because of the crash in thread 4 (original report).

Christoph: Why do you say that? You are probably right because you have been doing this longer than I, but could you elaborate? How does a crash reliably cause an X error (it's in every backtrace there, I think)?
Comment 31 Christoph Feck 2013-05-21 21:21:39 UTC
See for example discussion at bug 194750, or http://lists.kde.org/?l=kde-core-devel&m=124388224108162&w=2

I guess when a thread crashes, the connection (pipe) to the X server is closed, causing any subsequent X calls (from other still running threads) to generate an XIO error. For details, you would have to ask someone more familiar with X internals, such as Luboš Luňák.
Comment 32 Simeon Bird 2013-05-21 22:03:19 UTC
> I guess when a thread crashes, the connection (pipe) to the X server is
> closed, causing any subsequent X calls (from other still running threads) to
> generate an XIO error. For details, you would have to ask someone more
> familiar with X internals, such as Luboš Luňák.

Ah - I see. Thank you. Then I guess the problem is some sort of race on startup, probably causing a double deletion (since it is a pure virtual crash). My hint helps just because it changes the startup order enough to avoid the race.
Comment 33 Bruno Friedmann 2013-05-22 18:57:27 UTC
Created attachment 80025 [details]
New crash information added by DrKonqi

nepomukservicestub (0.1.0) on KDE Platform 4.10.3 "release 563" using Qt 4.8.4

- What I was doing when the application crashed: After having my session opened by autologin nepomuk crashed .
It was a long time I didn't get that kind of crash. It occur with no real good reasons. Has nothing have changed during the last few days.

-- Backtrace (Reduced):
#11 0x00007fce5be51dd2 in QAbstractSocketEngine::createSocketEngine (socketDescripter=19, parent=0x7fce34002808) at socket/qabstractsocketengine.cpp:133
#12 0x00007fce5be5e733 in QAbstractSocket::setSocketDescriptor (this=0x7fce34002808, socketDescriptor=19, socketState=QAbstractSocket::ConnectedState, openMode=...) at socket/qabstractsocket.cpp:1604
#13 0x00007fce5be6d890 in QLocalSocket::setSocketDescriptor (this=<optimized out>, socketDescriptor=19, socketState=QLocalSocket::ConnectedState, openMode=...) at socket/qlocalsocket_unix.cpp:370
#14 0x00007fce50082543 in (anonymous namespace)::LocalServerConnection::createIODevice (this=0x13207f0) at /usr/src/debug/soprano-2.9.0/server/localserver.cpp:41
#15 0x00007fce5007edc7 in Soprano::Server::ServerConnection::run (this=0x13207f0) at /usr/src/debug/soprano-2.9.0/server/serverconnection.cpp:140
Comment 34 beautyisintheeyeofthebeholder1 2013-05-23 18:17:00 UTC
Created attachment 80044 [details]
New crash information added by DrKonqi

nepomukservicestub (0.1.0) on KDE Platform 4.10.2 using Qt 4.8.4

- What I was doing when the application crashed:

the crash happened directly after log in  after the splash screen.

-- Backtrace (Reduced):
#6  0x00007f715e388037 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#7  0x00007f715e38b698 in __GI_abort () at abort.c:90
[...]
#12 0x00007f715cbe8802 in QAbstractSocketEngine::createSocketEngine (socketDescripter=socketDescripter@entry=18, parent=parent@entry=0x7f713c002808) at socket/qabstractsocketengine.cpp:133
#13 0x00007f715cbf4ee3 in QAbstractSocket::setSocketDescriptor (this=this@entry=0x7f713c002808, socketDescriptor=socketDescriptor@entry=18, socketState=socketState@entry=QAbstractSocket::ConnectedState, openMode=...) at socket/qabstractsocket.cpp:1604
#14 0x00007f715cc042e0 in QLocalSocket::setSocketDescriptor (this=<optimized out>, socketDescriptor=18, socketState=QLocalSocket::ConnectedState, openMode=...) at socket/qlocalsocket_unix.cpp:370
Comment 35 Vishesh Handa 2013-05-28 14:49:31 UTC
I just pushed a patch to remove the LocalSocket code entirely, so this bug should be fixed. Though it would have been nice to figure out why this was happening.
Comment 36 Vishesh Handa 2013-05-28 14:49:45 UTC
*** Bug 320189 has been marked as a duplicate of this bug. ***
Comment 37 Vishesh Handa 2013-05-28 15:19:05 UTC
*** Bug 320079 has been marked as a duplicate of this bug. ***
Comment 38 Simeon Bird 2013-05-29 20:45:13 UTC
*** Bug 320411 has been marked as a duplicate of this bug. ***
Comment 39 Eduardo Medina 2013-06-01 17:18:25 UTC
I have problems on login too, but I use Fedora.

Shit, this bug didn't happend on OpenSuse.
Comment 40 Eduardo Medina 2013-06-01 17:20:30 UTC
Created attachment 80235 [details]
Bug file from Fedora
Comment 41 Vishesh Handa 2013-06-03 11:17:40 UTC
*** Bug 320649 has been marked as a duplicate of this bug. ***
Comment 42 Eduardo Medina 2013-06-03 11:30:22 UTC
My problem has been solved removing the Nepomuk configuration.

I had Strigi as one of my Nepomuk config files.

¬¬
Comment 43 Vishesh Handa 2013-06-04 10:56:17 UTC
*** Bug 320676 has been marked as a duplicate of this bug. ***
Comment 44 Simeon Bird 2013-06-09 16:18:22 UTC
*** Bug 320946 has been marked as a duplicate of this bug. ***
Comment 45 Vishesh Handa 2013-07-14 23:31:21 UTC
*** Bug 322338 has been marked as a duplicate of this bug. ***
Comment 46 Jekyll Wu 2013-07-16 15:16:41 UTC
*** Bug 322439 has been marked as a duplicate of this bug. ***
Comment 47 Jekyll Wu 2013-08-17 03:13:20 UTC
*** Bug 323620 has been marked as a duplicate of this bug. ***
Comment 48 Simeon Bird 2013-08-19 16:47:56 UTC
*** Bug 323708 has been marked as a duplicate of this bug. ***
Comment 49 Jekyll Wu 2013-08-20 03:16:28 UTC
*** Bug 323743 has been marked as a duplicate of this bug. ***
Comment 50 Simeon Bird 2013-09-18 19:08:38 UTC
*** Bug 324977 has been marked as a duplicate of this bug. ***
Comment 51 Vishesh Handa 2013-09-23 17:36:49 UTC
*** Bug 325158 has been marked as a duplicate of this bug. ***
Comment 52 Jekyll Wu 2013-10-13 10:44:01 UTC
*** Bug 325948 has been marked as a duplicate of this bug. ***
Comment 53 Jekyll Wu 2013-10-13 14:50:53 UTC
*** Bug 325965 has been marked as a duplicate of this bug. ***
Comment 54 Modestos 2013-10-17 09:00:42 UTC
Created attachment 82896 [details]
New crash information added by DrKonqi

nepomukservicestub (0.1.0) on KDE Platform 4.10.5 using Qt 4.8.4

I started my system and saw this crash immediately after login.

-- Backtrace (Reduced):
#6  0x00007f76d8496037 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#7  0x00007f76d8499698 in __GI_abort () at abort.c:90
[...]
#12 0x00007f76d6cf6802 in QAbstractSocketEngine::createSocketEngine (socketDescripter=socketDescripter@entry=19, parent=parent@entry=0x7f76b8002a08) at socket/qabstractsocketengine.cpp:133
#13 0x00007f76d6d02ee3 in QAbstractSocket::setSocketDescriptor (this=this@entry=0x7f76b8002a08, socketDescriptor=socketDescriptor@entry=19, socketState=socketState@entry=QAbstractSocket::ConnectedState, openMode=...) at socket/qabstractsocket.cpp:1604
#14 0x00007f76d6d122e0 in QLocalSocket::setSocketDescriptor (this=<optimized out>, socketDescriptor=19, socketState=QLocalSocket::ConnectedState, openMode=...) at socket/qlocalsocket_unix.cpp:370
Comment 55 Keith 2013-10-24 00:38:22 UTC
Created attachment 83068 [details]
New crash information added by DrKonqi

nepomukservicestub (0.1.0) on KDE Platform 4.10.5 "release 1" using Qt 4.8.4

- What I was doing when the application crashed: it crashed upon initial start up of the computer.

-- Backtrace (Reduced):
#11 0x00007f136d65add2 in QAbstractSocketEngine::createSocketEngine (socketDescripter=18, parent=0x7f1350002808) at socket/qabstractsocketengine.cpp:133
#12 0x00007f136d667733 in QAbstractSocket::setSocketDescriptor (this=0x7f1350002808, socketDescriptor=18, socketState=QAbstractSocket::ConnectedState, openMode=...) at socket/qabstractsocket.cpp:1604
#13 0x00007f136d676890 in QLocalSocket::setSocketDescriptor (this=<optimized out>, socketDescriptor=18, socketState=QLocalSocket::ConnectedState, openMode=...) at socket/qlocalsocket_unix.cpp:370
#14 0x00007f1361bff543 in (anonymous namespace)::LocalServerConnection::createIODevice (this=0x1df0940) at /usr/src/debug/soprano-2.9.0/server/localserver.cpp:41
#15 0x00007f1361bfbdc7 in Soprano::Server::ServerConnection::run (this=0x1df0940) at /usr/src/debug/soprano-2.9.0/server/serverconnection.cpp:140
Comment 56 Jekyll Wu 2013-11-13 03:23:25 UTC
*** Bug 327542 has been marked as a duplicate of this bug. ***
Comment 57 Jekyll Wu 2014-01-03 07:07:52 UTC
*** Bug 329547 has been marked as a duplicate of this bug. ***