https://bugs.kde.org/show_bug.cgi?id=360010
Bug ID: 360010 Summary: Crash after running a script that runs konsole -e Product: konsole Version: 15.12.2 Platform: openSUSE RPMs OS: Linux Status: UNCONFIRMED Keywords: drkonqi Severity: crash Priority: NOR Component: general Assignee: konsole-de...@kde.org Reporter: jose.rob...@gmail.com Application: konsole (15.12.2) Qt Version: 5.5.1 Operating System: Linux 4.1.15-8-default x86_64 Distribution: "openSUSE Leap 42.1 (x86_64)" -- Information about the crash: - What I was doing when the application crashed: I created a script with this content: #!/bin/bash konsole -e java -jar HostedServer.jar HostedServer.jar is a private java server software that runs without GUI, the works fine when I execute it directly on an open konsole but if I try to run it on a script by clicking on the icon from Dolphin the konsole screen opens and close quickly. It also happens when I try to run the script using a konsole instead of the command. Some console outputs that may be helpful: joserobjr@linux-ohs8:~/Projetos/EnhancedSpectator/Teste/intercom> ./iniciar.sh QCoreApplication::arguments: Please instantiate the QApplication object first QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. joserobjr@linux-ohs8:~/Projetos/EnhancedSpectator/Teste/intercom> *** Error in `konsole': malloc(): memory corruption: 0x0000000001abb208 *** joserobjr@linux-ohs8:~/Projetos/EnhancedSpectator/Teste/intercom> joserobjr@linux-ohs8:~/Projetos/EnhancedSpectator/Teste/intercom> ./iniciar.sh QCoreApplication::arguments: Please instantiate the QApplication object first QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. joserobjr@linux-ohs8:~/Projetos/EnhancedSpectator/Teste/intercom> joserobjr@linux-ohs8:~/Projetos/EnhancedSpectator/Teste/intercom> ./iniciar.sh QCoreApplication::arguments: Please instantiate the QApplication object first QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. joserobjr@linux-ohs8:~/Projetos/EnhancedSpectator/Teste/intercom> The X11 connection broke: I/O error (code 1) KCrash: Application 'konsole' crashing... XIO: fatal IO error 0 (Sucesso) on X server ":0" after 597 requests (577 known processed) with 0 events remaining. Unable to start Dr. Konqi joserobjr@linux-ohs8:~/Projetos/EnhancedSpectator/Teste/intercom> joserobjr@linux-ohs8:~/Projetos/EnhancedSpectator/Teste/intercom> joserobjr@linux-ohs8:~/Projetos/EnhancedSpectator/Teste/intercom> ./iniciar.sh QCoreApplication::arguments: Please instantiate the QApplication object first QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. joserobjr@linux-ohs8:~/Projetos/EnhancedSpectator/Teste/intercom> ./iniciar.sh QCoreApplication::arguments: Please instantiate the QApplication object first QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. joserobjr@linux-ohs8:~/Projetos/EnhancedSpectator/Teste/intercom> The X11 connection broke: I/O error (code 1) KCrash: Application 'konsole' crashing... XIO: fatal IO error 0 (Sucesso) on X server ":0" after 608 requests (577 known processed) with 0 events remaining. Unable to start Dr. Konqi joserobjr@linux-ohs8:~/Projetos/EnhancedSpectator/Teste/intercom> ./iniciar.sh QCoreApplication::arguments: Please instantiate the QApplication object first QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. joserobjr@linux-ohs8:~/Projetos/EnhancedSpectator/Teste/intercom> The X11 connection broke: I/O error (code 1) KCrash: Application 'konsole' crashing... XIO: fatal IO error 0 (Sucesso) on X server ":0" after 593 requests (532 known processed) with 0 events remaining. Unable to start Dr. Konqi joserobjr@linux-ohs8:~/Projetos/EnhancedSpectator/Teste/intercom> ./iniciar.sh QCoreApplication::arguments: Please instantiate the QApplication object first QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. joserobjr@linux-ohs8:~/Projetos/EnhancedSpectator/Teste/intercom> The X11 connection broke: I/O error (code 1) KCrash: Application 'konsole' crashing... XIO: fatal IO error 0 (Sucesso) on X server ":0" after 590 requests (532 known processed) with 0 events remaining. Unable to start Dr. Konqi joserobjr@linux-ohs8:~/Projetos/EnhancedSpectator/Teste/intercom> ./iniciar.sh QCoreApplication::arguments: Please instantiate the QApplication object first QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. joserobjr@linux-ohs8:~/Projetos/EnhancedSpectator/Teste/intercom> konsole -e java -jar HostedServer.jar QCoreApplication::arguments: Please instantiate the QApplication object first QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. joserobjr@linux-ohs8:~/Projetos/EnhancedSpectator/Teste/intercom> konsole -e java -jar HostedServer.jar QCoreApplication::arguments: Please instantiate the QApplication object first QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. joserobjr@linux-ohs8:~/Projetos/EnhancedSpectator/Teste/intercom> konsole -e java -jar HostedServer.jar QCoreApplication::arguments: Please instantiate the QApplication object first QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. joserobjr@linux-ohs8:~/Projetos/EnhancedSpectator/Teste/intercom> Note: 'konsole -e java -jar HostedServer.jar' executed fine but ./iniciar.sh just opened and closed the screen immediatelly -- Backtrace: Application: Konsole (konsole), signal: Segmentation fault Using host libthread_db library "/lib64/libthread_db.so.1". [Current thread is 1 (Thread 0x7f5642ef4840 (LWP 29253))] Thread 2 (Thread 0x7f562be5c700 (LWP 29254)): #0 0x00007f5639b6679c in __lll_lock_wait () from /lib64/libpthread.so.0 #1 0x00007f5639b62489 in _L_lock_918 () from /lib64/libpthread.so.0 #2 0x00007f5639b622b0 in pthread_mutex_lock () from /lib64/libpthread.so.0 #3 0x00007f5639f83644 in _xcb_conn_wait (c=c@entry=0x1c46480, cond=cond@entry=0x1c464c0, vector=vector@entry=0x0, count=count@entry=0x0) at xcb_conn.c:476 #4 0x00007f5639f8500f in xcb_wait_for_event (c=0x1c46480) at xcb_in.c:693 #5 0x00007f562e1b93c9 in QXcbEventReader::run (this=0x1c544b0) at qxcbconnection.cpp:1229 #6 0x00007f563ebf032f in QThreadPrivate::start (arg=0x1c544b0) at thread/qthread_unix.cpp:331 #7 0x00007f5639b600a4 in start_thread () from /lib64/libpthread.so.0 #8 0x00007f5642823fed in clone () from /lib64/libc.so.6 Thread 1 (Thread 0x7f5642ef4840 (LWP 29253)): [KCrash Handler] #6 poll_for_reply (c=c@entry=0x1c46480, request=request@entry=28599, reply=reply@entry=0x7ffdc4fd55e8, error=error@entry=0x7ffdc4fd56d8) at xcb_in.c:428 #7 0x00007f5639f84d74 in wait_for_reply (c=c@entry=0x1c46480, request=request@entry=28599, e=e@entry=0x7ffdc4fd56d8) at xcb_in.c:515 #8 0x00007f5639f84ed2 in xcb_wait_for_reply64 (c=c@entry=0x1c46480, request=28599, e=e@entry=0x7ffdc4fd56d8) at xcb_in.c:560 #9 0x00007f563b9601f0 in _XReply (dpy=dpy@entry=0x1c45230, rep=rep@entry=0x7ffdc4fd5750, extra=extra@entry=0, discard=discard@entry=0) at xcb_io.c:596 #10 0x00007f562dd710e2 in XIQueryDevice (dpy=0x1c45230, deviceid=11, ndevices_return=0x7ffdc4fd57cc) at XIQueryDevice.c:60 #11 0x00007f562e1da0bf in QXcbConnection::handleEnterEvent (this=0x1c14430) at qxcbconnection_xi2.cpp:830 #12 0x00007f562e1cb7df in QXcbWindow::handleEnterNotifyEvent (this=0x1df0240, event=0x7f5624003660) at qxcbwindow.cpp:2347 #13 0x00007f562e1b7515 in QXcbConnection::handleXcbEvent (this=this@entry=0x1c14430, event=event@entry=0x7f5624003660) at qxcbconnection.cpp:1069 #14 0x00007f562e1b901b in QXcbConnection::processXcbEvents (this=0x1c14430) at qxcbconnection.cpp:1504 #15 0x00007f563edfcac6 in QObject::event (this=0x1c14430, e=<optimized out>) at kernel/qobject.cpp:1239 #16 0x00007f563faafe7c in QApplicationPrivate::notify_helper (this=this@entry=0x1c2f450, receiver=receiver@entry=0x1c14430, e=e@entry=0x7f56240036d0) at kernel/qapplication.cpp:3716 #17 0x00007f563fab4cc8 in QApplication::notify (this=0x7ffdc4fd6090, receiver=0x1c14430, e=0x7f56240036d0) at kernel/qapplication.cpp:3499 #18 0x00007f563edcbe95 in QCoreApplication::notifyInternal (this=0x7ffdc4fd6090, receiver=0x1c14430, event=event@entry=0x7f56240036d0) at kernel/qcoreapplication.cpp:965 #19 0x00007f563edce057 in sendEvent (event=0x7f56240036d0, receiver=<optimized out>) at kernel/qcoreapplication.h:224 #20 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x1bf4dc0) at kernel/qcoreapplication.cpp:1593 #21 0x00007f563edce608 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1451 #22 0x00007f563ee238f3 in postEventSourceDispatch (s=0x1c8f330) at kernel/qeventdispatcher_glib.cpp:271 #23 0x00007f563942cc84 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0 #24 0x00007f563942ced8 in ?? () from /usr/lib64/libglib-2.0.so.0 #25 0x00007f563942cf7c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0 #26 0x00007f563ee22d6c in QEventDispatcherGlib::processEvents (this=0x1c7bda0, flags=...) at kernel/qeventdispatcher_glib.cpp:418 #27 0x00007f563edc9d53 in QEventLoop::exec (this=this@entry=0x7ffdc4fd5f50, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204 #28 0x00007f563edd18f6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1229 #29 0x00007f563f3158ec in QGuiApplication::exec () at kernel/qguiapplication.cpp:1529 #30 0x00007f563faac605 in QApplication::exec () at kernel/qapplication.cpp:2976 #31 0x00007f5642b0fde1 in kdemain (argc=1, argv=0x7ffdc4fd61d8) at /usr/src/debug/konsole-15.12.2/src/main.cpp:125 #32 0x00007f5642760b05 in __libc_start_main () from /lib64/libc.so.6 #33 0x00000000004007ee in _start () at ../sysdeps/x86_64/start.S:122 Reported using DrKonqi -- You are receiving this mail because: You are watching all bug changes.