Bug 1175662
| Summary: | [abrt] gnome-abrt: XCloseDisplay(): cannot open and close a display | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Jakub Filak <jfilak> | ||||||||||||||||||||||||||||
| Component: | gnome-abrt | Assignee: | Jakub Filak <jfilak> | ||||||||||||||||||||||||||||
| Status: | CLOSED ERRATA | QA Contact: | Martin Kyral <mkyral> | ||||||||||||||||||||||||||||
| Severity: | unspecified | Docs Contact: | |||||||||||||||||||||||||||||
| Priority: | unspecified | ||||||||||||||||||||||||||||||
| Version: | 7.1 | CC: | isenfeld, jberan, mkyral, ofourdan | ||||||||||||||||||||||||||||
| Target Milestone: | rc | Keywords: | Patch | ||||||||||||||||||||||||||||
| Target Release: | --- | ||||||||||||||||||||||||||||||
| Hardware: | ppc64 | ||||||||||||||||||||||||||||||
| OS: | Unspecified | ||||||||||||||||||||||||||||||
| Whiteboard: | abrt_hash:670d554600ddde07d58f7547e786a4b818f13256 | ||||||||||||||||||||||||||||||
| Fixed In Version: | gnome-abrt-0.3.4-7.el7 | Doc Type: | Bug Fix | ||||||||||||||||||||||||||||
| Doc Text: | Story Points: | --- | |||||||||||||||||||||||||||||
| Clone Of: | Environment: | ||||||||||||||||||||||||||||||
| Last Closed: | 2016-11-04 03:05:41 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
Jakub Filak
2014-12-18 10:03:36 UTC
Created attachment 970466 [details]
File: backtrace
Created attachment 970467 [details]
File: cgroup
Created attachment 970468 [details]
File: core_backtrace
Created attachment 970469 [details]
File: dso_list
Created attachment 970470 [details]
File: environ
Created attachment 970471 [details]
File: limits
Created attachment 970472 [details]
File: maps
Created attachment 970473 [details]
File: open_fds
Created attachment 970474 [details]
File: proc_pid_status
Created attachment 970475 [details]
File: var_log_messages
Created attachment 970476 [details]
File: sosreport.tar.xz
*** Bug 1175643 has been marked as a duplicate of this bug. *** While I can reproduce the crash, I am not entirely convinced the problem really lies in libX11/libxcb. According to the backtrace in comment #0, the segfault occurs in XCloseDisplay() at line 51 of ClDisplay.c which reads: 44 int 45 XCloseDisplay ( 46 register Display *dpy) 47 { 48 register _XExtension *ext; 49 register int i; 50 51 ==> if (!(dpy->flags & XlibDisplayClosing)) 52 { We can reasonably think that dpy is pointing to either 0 or a wrong address, thus the segfault when trying to access dpy->flags That would mean the problem lies in the caller instead, not in the library, or else XOpenDisplay() does not return a valid display address, in which case all X11 programs would fail on PPC (which is not the case, AFAIK). So it could be a problem with Python and dlopen() of a library on ppc64. The core file shows dpy is not null, so most likely pointing to a wrong address. #0 XCloseDisplay (dpy=0x283b1dd0) at ClDisplay.c:51 Created attachment 1040519 [details]
Test program in plain C
I think it's a problem with Python, the exact same program written in plain C (using dlopen on libX11) works just fine.
We have fixed the crash in gnome-abrt upstream by moving the check from Python code to C wrappers: https://github.com/abrt/gnome-abrt/commit/5dcf9097cdfa68087569e13f9e8c2eb2eba8250f because the crash started appearing in Fedora Rawhide (bug #1188002). If there is no interest in finding out the root cause of this crash, we can re-assign this bug report to gnome-abrt. Created attachment 1127897 [details] Patch I backported the upstream patch https://github.com/abrt/gnome-abrt/commit/5dcf9097cdfa68087569e13f9e8c2eb2eba8250f Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-2307.html |