Version-Release number of selected component: gnome-abrt-1.0.0-1.fc21 Additional info: reporter: libreport-2.3.0 backtrace_rating: 4 cmdline: /usr/bin/python /usr/bin/gnome-abrt -p /var/tmp/abrt/ccpp-2015-01-31-12:17:53-1947 crash_function: XCloseDisplay executable: /usr/bin/python2.7 kernel: 3.18.4-200.hu.1.uksm.bfs.bfq.fc21.x86_64 runlevel: N 5 type: CCpp uid: 1000 Truncated backtrace: Thread no. 1 (10 frames) #0 XCloseDisplay at ClDisplay.c:51 #1 ffi_call_unix64 at ../src/x86/unix64.S:76 #2 ffi_call at ../src/x86/ffi64.c:525 #3 _call_function_pointer at /usr/src/debug/Python-2.7.8/Modules/_ctypes/callproc.c:836 #4 _ctypes_callproc at /usr/src/debug/Python-2.7.8/Modules/_ctypes/callproc.c:1183 #5 PyCFuncPtr_call at /usr/src/debug/Python-2.7.8/Modules/_ctypes/_ctypes.c:3965 #6 PyObject_Call at /usr/src/debug/Python-2.7.8/Objects/abstract.c:2529 #7 do_call at /usr/src/debug/Python-2.7.8/Python/ceval.c:4328 #8 call_function at /usr/src/debug/Python-2.7.8/Python/ceval.c:4133 #9 PyEval_EvalFrameEx at /usr/src/debug/Python-2.7.8/Python/ceval.c:2753
Created attachment 986701 [details] File: backtrace
Created attachment 986702 [details] File: cgroup
Created attachment 986703 [details] File: core_backtrace
Created attachment 986704 [details] File: dso_list
Created attachment 986705 [details] File: environ
Created attachment 986706 [details] File: limits
Created attachment 986707 [details] File: maps
Created attachment 986708 [details] File: open_fds
Created attachment 986709 [details] File: proc_pid_status
Created attachment 986710 [details] File: var_log_messages
Created attachment 986711 [details] File: exploitable
Created attachment 986947 [details] A python script which opens and closes X display Could you please try to run this simple test and report the results here?
Now it works: $ ./py.py It works!
May it be related to cases when few instances of X sessions run?
(In reply to Pavel Alexeev (aka Pahan-Hubbitus) from comment #13) > Now it works: > > $ ./py.py > It works! Thank you! (In reply to Pavel Alexeev (aka Pahan-Hubbitus) from comment #14) > May it be related to cases when few instances of X sessions run? It failed for me when there was no X session running. Can you please this scenario too?
Steps to reproduce: 1. Download latest rawhide: https://kojipkgs.fedoraproject.org/work/tasks/2991/9722991/Fedora-Live-Workstation-x86_64-rawhide-20150513.iso 2. In gnome-terminal type 'python /usr/bin/gnome-abrt'
*** Bug 1217533 has been marked as a duplicate of this bug. ***
gnome-abrt no longer works in Rawhide.
(In reply to Moez Roy from comment #18) > gnome-abrt no longer works in Rawhide. Can you please do the test mentioned in comment #12?
Another user experienced a similar problem: It crashes right after start. reporter: libreport-2.5.1 backtrace_rating: 4 cmdline: /usr/bin/python3 /usr/bin/gnome-abrt crash_function: XCloseDisplay executable: /usr/bin/python3.4 global_pid: 4744 kernel: 4.0.0-1.fc23.x86_64 package: gnome-abrt-1.1.2-2.fc23 reason: python3.4 killed by SIGSEGV runlevel: unknown type: CCpp uid: 1000
(In reply to Jakub Filak from comment #19) > (In reply to Moez Roy from comment #18) > > gnome-abrt no longer works in Rawhide. > > Can you please do the test mentioned in comment #12? $ ./py.py Segmentation fault (core dumped)
(In reply to Vít Ondruch from comment #21) > (In reply to Jakub Filak from comment #19) > > (In reply to Moez Roy from comment #18) > > > gnome-abrt no longer works in Rawhide. > > > > Can you please do the test mentioned in comment #12? > > $ ./py.py > Segmentation fault (core dumped) Same here: [liveuser@localhost ~]$ python2 test_display.py Segmentation fault (core dumped) [liveuser@localhost ~]$ python3 test_display.py File "test_display.py", line 18 print "It works!" ^ SyntaxError: Missing parentheses in call to 'print' [liveuser@localhost ~]$
(In reply to Moez Roy from comment #22) > (In reply to Vít Ondruch from comment #21) > > (In reply to Jakub Filak from comment #19) > > > (In reply to Moez Roy from comment #18) > > > > gnome-abrt no longer works in Rawhide. > > > > > > Can you please do the test mentioned in comment #12? > > > > $ ./py.py > > Segmentation fault (core dumped) > > Same here: > > [liveuser@localhost ~]$ python2 test_display.py > Segmentation fault (core dumped) > > [liveuser@localhost ~]$ python3 test_display.py > File "test_display.py", line 18 > print "It works!" > ^ > SyntaxError: Missing parentheses in call to 'print' > [liveuser@localhost ~]$ print ("It works!") [liveuser@localhost ~]$ python3 test_display_p3.py Segmentation fault (core dumped) [liveuser@localhost ~]$
I am re-assigning this report from gnome-abrt to libX11 because the crash is reproducible with a minimal script which simply opens and closes X display.
Created attachment 1033663 [details] open and close X in C I've created a minimal example (open and close X display) in C and it works on my rawhide. I attached the example. You can compile it by running "gcc openX.c -L/usr/X11R6/lib -lX11 -o openX" So the issue is probably in Python.
(In reply to Matej Habrnal from comment #25) > Created attachment 1033663 [details] > open and close X in C > > I've created a minimal example (open and close X display) in C and it works > on my rawhide. I attached the example. You can compile it by running "gcc > openX.c -L/usr/X11R6/lib -lX11 -o openX" > > > So the issue is probably in Python. Thank you for the C example! I think the root cause of the crash is in the fact that we should not use libX11 through "cdll.LoadLibrary()". So, please replace the python implementation with your C implementation in gnome-abrt.
I've created a pull request which fixes the issue: https://github.com/abrt/gnome-abrt/pull/134 .
Can you update gnome-abrt in rawhide? Thanks.