Bug 360010 - Crash after running a script that runs konsole -e
Summary: Crash after running a script that runs konsole -e
Status: RESOLVED DUPLICATE of bug 345691
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 15.12.2
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2016-03-03 01:29 UTC by José Roberto de Araújo Júnior
Modified: 2016-10-25 22:59 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (4.78 KB, text/plain)
2016-05-22 15:58 UTC, ziris85
Details
New crash information added by DrKonqi (4.77 KB, text/plain)
2016-06-19 15:28 UTC, ziris85
Details

Note You need to log in before you can comment on or make changes to this bug.
Description José Roberto de Araújo Júnior 2016-03-03 01:29:24 UTC
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
Comment 1 ziris85 2016-05-22 15:58:46 UTC
Created attachment 99132 [details]
New crash information added by DrKonqi

konsole (15.12.3) using Qt 5.5.1

- What I was doing when the application crashed:
I wasn't running a separate script, but crash reporter insisted the bug was the same, so just appending mine to this bug.

All I was doing was running two terminals in tabs. One with an SSH connection active, but both were idling at the time it crashed.

-- Backtrace (Reduced):
#6  poll_for_reply (c=c@entry=0x8cda10, request=request@entry=75022, reply=reply@entry=0x7ffc597caab8, error=error@entry=0x7ffc597caba8) at xcb_in.c:428
#7  0x00007f34716afd74 in wait_for_reply (c=c@entry=0x8cda10, request=request@entry=75022, e=e@entry=0x7ffc597caba8) at xcb_in.c:515
#8  0x00007f34716afed2 in xcb_wait_for_reply64 (c=c@entry=0x8cda10, request=75022, e=e@entry=0x7ffc597caba8) at xcb_in.c:560
#9  0x00007f347308b1f0 in _XReply (dpy=dpy@entry=0x8cc7c0, rep=rep@entry=0x7ffc597cac20, extra=extra@entry=0, discard=discard@entry=0) at xcb_io.c:596
#10 0x00007f34662940e2 in XIQueryDevice (dpy=0x8cc7c0, deviceid=4, ndevices_return=0x7ffc597cac9c) at XIQueryDevice.c:60
Comment 2 ziris85 2016-06-19 15:28:38 UTC
Created attachment 99611 [details]
New crash information added by DrKonqi

konsole (15.12.3) using Qt 5.5.1

- What I was doing when the application crashed:
Another crash, same situation for me. Again, wasn't running a separate script or anything, just had a few tabs idling with active SSH sessions. Just crashed while I was doing something else on my desktop (not in the terminal).

-- Backtrace (Reduced):
#6  poll_for_reply (c=c@entry=0x176c430, request=request@entry=97016, reply=reply@entry=0x7ffe8d7ca678, error=error@entry=0x7ffe8d7ca768) at xcb_in.c:428
#7  0x00007f3b0f30dd74 in wait_for_reply (c=c@entry=0x176c430, request=request@entry=97016, e=e@entry=0x7ffe8d7ca768) at xcb_in.c:515
#8  0x00007f3b0f30ded2 in xcb_wait_for_reply64 (c=c@entry=0x176c430, request=97016, e=e@entry=0x7ffe8d7ca768) at xcb_in.c:560
#9  0x00007f3b10ce91f0 in _XReply (dpy=dpy@entry=0x176b1e0, rep=rep@entry=0x7ffe8d7ca7e0, extra=extra@entry=0, discard=discard@entry=0) at xcb_io.c:596
#10 0x00007f3b03e4b0e2 in XIQueryDevice (dpy=0x176b1e0, deviceid=11, ndevices_return=0x7ffe8d7ca85c) at XIQueryDevice.c:60
Comment 3 Christoph Feck 2016-10-25 22:59:28 UTC

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