Bug 1188002
| Summary: | gnome-abrt crashes on closing X display | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Pavel Alexeev <pahan> | ||||||||||||||||||||||||||||
| Component: | gnome-abrt | Assignee: | Matej Habrnal <mhabrnal> | ||||||||||||||||||||||||||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||||||||||||||||||
| Severity: | unspecified | Docs Contact: | |||||||||||||||||||||||||||||
| Priority: | medium | ||||||||||||||||||||||||||||||
| Version: | rawhide | CC: | ajax, bugzilla, jfilak, mhabrnal, moez.roy, pahan, sandmann, vondruch | ||||||||||||||||||||||||||||
| Target Milestone: | --- | ||||||||||||||||||||||||||||||
| Target Release: | --- | ||||||||||||||||||||||||||||||
| Hardware: | x86_64 | ||||||||||||||||||||||||||||||
| OS: | Unspecified | ||||||||||||||||||||||||||||||
| URL: | https://retrace.fedoraproject.org/faf/reports/bthash/ffe247bee7f8f23835201c607fc9cc8dd71e546c | ||||||||||||||||||||||||||||||
| Whiteboard: | abrt_hash:4aa2f7daefd577f9b8a50262c173abfe033c8d2f | ||||||||||||||||||||||||||||||
| Fixed In Version: | gnome-abrt-1.2.0-1.fc23 | Doc Type: | Bug Fix | ||||||||||||||||||||||||||||
| Doc Text: | Story Points: | --- | |||||||||||||||||||||||||||||
| Clone Of: | Environment: | ||||||||||||||||||||||||||||||
| Last Closed: | 2015-06-10 09:30:46 UTC | Type: | --- | ||||||||||||||||||||||||||||
| Regression: | --- | Mount Type: | --- | ||||||||||||||||||||||||||||
| Documentation: | --- | CRM: | |||||||||||||||||||||||||||||
| Verified Versions: | Category: | --- | |||||||||||||||||||||||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||||||||||||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||||||||||||||||||
| Embargoed: | |||||||||||||||||||||||||||||||
| Attachments: |
|
||||||||||||||||||||||||||||||
|
Description
Pavel Alexeev
2015-02-01 11:27:08 UTC
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. |