Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1509086 - Many GNOME crashes erroneously marked as dupes of 1469813, 1510059... due to glib 'log and then crash' codepaths (_g_log_abort)
Summary: Many GNOME crashes erroneously marked as dupes of 1469813, 1510059... due to ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: satyr
Version: 27
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Matej Habrnal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1526166 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-02 23:16 UTC by Adam Williamson
Modified: 2018-04-11 18:14 UTC (History)
12 users (show)

Fixed In Version: satyr-0.24-2.fc28 satyr-0.25-1.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-01-30 18:07:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1566193 0 unspecified CLOSED Any time GNOME Shell crashes because XWayland crashed, bug is erroneously marked as a dupe (1510059...) 2022-05-16 11:32:56 UTC

Internal Links: 1566193

Description Adam Williamson 2017-11-02 23:16:04 UTC
It seems like many different GNOME shell crashes are reported (by abrt/libreport) as dupes of https://bugzilla.redhat.com/show_bug.cgi?id=1469813 , while they shouldn't be. It seems like this happens when the backtrace starts like this:

#0 _g_log_abort at gmessages.c:549
 #1 g_log_default_handler at gmessages.c:3039
 #2 default_log_handler at main.c:303

Here are all the bugs that were initially considered dupes by abrt:

https://bugzilla.redhat.com/show_bug.cgi?id=1508398
https://bugzilla.redhat.com/show_bug.cgi?id=1507514
https://bugzilla.redhat.com/show_bug.cgi?id=1507099
https://bugzilla.redhat.com/show_bug.cgi?id=1506325
https://bugzilla.redhat.com/show_bug.cgi?id=1506257
https://bugzilla.redhat.com/show_bug.cgi?id=1502183
https://bugzilla.redhat.com/show_bug.cgi?id=1501396
https://bugzilla.redhat.com/show_bug.cgi?id=1498261

If you look at them, they all have those first three frames in their backtraces, but beyond that the backtraces differ, and other details about the bugs clearly differ also. I *think* basically any time an error message it's been told to log is somehow marked as 'fatal', Shell will go down this path where it winds up intentionally dying in _g_log_abort() , but my C is not exactly the greatest in the world so I may be misunderstanding something there. Anyhow, we should not be treating all crashes that go down this path as dupes, as they clearly are not.

Comment 1 Matej Habrnal 2017-11-03 13:39:37 UTC
This pull request should fix the issue: https://github.com/abrt/satyr/pull/264

Comment 2 Adam Williamson 2017-12-14 22:54:44 UTC
*** Bug 1526166 has been marked as a duplicate of this bug. ***

Comment 3 Adam Williamson 2017-12-14 23:00:57 UTC
Can we please get this change pushed out as an update for F26 and F27? I see the change has gone to Rawhide in a -2 package build, but it has not gone to F26 or F27 so far as I can see, and of course the majority of Fedora users are on stable releases, not Rawhide. So we are still seeing problems caused by this. The most recent one we came across is https://bugzilla.redhat.com/show_bug.cgi?id=1510059 - once again, many unrelated bugs are being closed as dupes of that (or the reporters are just getting comments added on that bug, instead of new bugs filed) due to this _g_log_abort issue.

1510059 also shows a slightly different path to _g_log_abort, perhaps one or more of these functions should also be added to this 'blacklist':

 #0 raise at ../sysdeps/unix/sysv/linux/raise.c:51
 #1 dump_gjs_stack_on_signal_handler at ../src/main.c:372
 #3 _g_log_abort at gmessages.c:554
 #4 g_log_writer_default at gmessages.c:2628
 #5 g_log_structured_array at gmessages.c:1941
 #6 g_log_structured at gmessages.c:1768

note we get in via g_log_structured -> g_log_structured_array -> g_log_writer_default , not default_log_handler -> g_log_default_handler like all the other cases.

Comment 4 Adam Williamson 2017-12-16 04:09:13 UTC
For the record, I found a few other bugs like this, and unpicked all those dupes too. The biggest were:

https://bugzilla.redhat.com/show_bug.cgi?id=1370073 (F25)
https://bugzilla.redhat.com/show_bug.cgi?id=1402492 (F26)

Comment 5 Adam Williamson 2017-12-16 04:10:53 UTC
It's also worth noting that one fairly common case is that GNOME crashes on this codepath with the critical error message just being "Connection to xwayland lost." All that tells us, really, is that XWayland crashed; it doesn't tell us why, nor does it mean at all that all bugs which hit that codepath are dupes of each other. I'm not sure if it's possible for abrt to handle that well, but it'd be great if it could.

Comment 6 Matej Habrnal 2017-12-19 11:27:59 UTC
I've created pull request which adds g_log_structured -> g_log_structured_array -> g_log_writer_default functions into "blacklist".

https://github.com/abrt/satyr/pull/270

Will backport all added "blacklisted" functions to f27 and f26.

Comment 7 Adam Williamson 2017-12-19 17:46:02 UTC
Thanks a lot!

Comment 8 Fedora Update System 2018-01-25 12:36:36 UTC
satyr-0.25-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-580c89505f

Comment 9 Fedora Update System 2018-01-26 19:49:12 UTC
satyr-0.25-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-580c89505f

Comment 10 Fedora Update System 2018-01-30 18:07:28 UTC
satyr-0.25-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.