Bug 1516268

Summary: [abrt] udisks2: g_mutex_lock(): udisksd killed by SIGSEGV
Product: [Fedora] Fedora Reporter: igiwatson
Component: glib2Assignee: Matthias Clasen <mclasen>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: alexl, caillon+fedoraproject, gnome-sig, igiwatson, john.j5live, mclasen, rhughes, rstrode, sandmann, tiagomatos, vtrefny
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/205f92ffaca9f53a39a27482cf76b0a7ce786be7
Whiteboard: abrt_hash:5eff467e9798dc677b174ce755e97cd5b5a2b9ed;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-29 11:34:48 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 Flags
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: cpuinfo
none
File: dso_list
none
File: environ
none
File: exploitable
none
File: limits
none
File: maps
none
File: open_fds
none
File: proc_pid_status
none
File: var_log_messages
none
coredump gzipped none

Description igiwatson 2017-11-22 11:42:39 UTC
Version-Release number of selected component:
udisks2-2.6.5-3.fc26

Additional info:
reporter:       libreport-2.9.1
backtrace_rating: 4
cmdline:        /usr/libexec/udisks2/udisksd
crash_function: g_mutex_lock
executable:     /usr/libexec/udisks2/udisksd
journald_cursor: s=00ac1063acb84be6ba50504dcb36d802;i=15c5b;b=ef31b0dff92e43a6b569fc1d4cd28485;m=169831263;t=55dce11d4cf07;x=60f9e6ebc73ad3a3
kernel:         4.13.11-200.fc26.x86_64
rootdir:        /
runlevel:       N 5
type:           CCpp
uid:            0

Truncated backtrace:
Thread no. 1 (2 frames)
 #0 g_mutex_lock at gthread-posix.c:1336
 #1 g_source_destroy_internal at gmain.c:1236

Comment 1 igiwatson 2017-11-22 11:42:46 UTC
Created attachment 1357407 [details]
File: backtrace

Comment 2 igiwatson 2017-11-22 11:42:47 UTC
Created attachment 1357408 [details]
File: cgroup

Comment 3 igiwatson 2017-11-22 11:42:49 UTC
Created attachment 1357409 [details]
File: core_backtrace

Comment 4 igiwatson 2017-11-22 11:42:51 UTC
Created attachment 1357410 [details]
File: cpuinfo

Comment 5 igiwatson 2017-11-22 11:42:52 UTC
Created attachment 1357411 [details]
File: dso_list

Comment 6 igiwatson 2017-11-22 11:42:54 UTC
Created attachment 1357412 [details]
File: environ

Comment 7 igiwatson 2017-11-22 11:42:55 UTC
Created attachment 1357413 [details]
File: exploitable

Comment 8 igiwatson 2017-11-22 11:42:57 UTC
Created attachment 1357414 [details]
File: limits

Comment 9 igiwatson 2017-11-22 11:42:59 UTC
Created attachment 1357415 [details]
File: maps

Comment 10 igiwatson 2017-11-22 11:43:00 UTC
Created attachment 1357416 [details]
File: open_fds

Comment 11 igiwatson 2017-11-22 11:43:02 UTC
Created attachment 1357417 [details]
File: proc_pid_status

Comment 12 igiwatson 2017-11-22 11:43:03 UTC
Created attachment 1357418 [details]
File: var_log_messages

Comment 13 Vratislav Podzimek 2017-11-22 13:15:33 UTC
Thanks for the report. Is there any chance you could also upload the coredump somewhere? Thanks!

Comment 14 igiwatson 2017-11-22 13:51:29 UTC
Created attachment 1357517 [details]
coredump gzipped

coredump file

Comment 15 Vratislav Podzimek 2017-12-06 11:29:05 UTC
I am reassigning this to GLib. Maybe udisks2 is doing something wrong, but it more looks like some issue in GLib itself. This is the relevant chunk from the backtrace:

Thread 1 (Thread 0x7f6d87dcf900 (LWP 1405)):
#0  0x00007f6d865794a5 in g_mutex_lock (mutex=mutex@entry=0x2020202020202020) at gthread-posix.c:1336
        _g_boolean_var_ = <optimized out>
#1  0x00007f6d86532478 in g_source_destroy_internal (source=0x560b174d0210, context=0x2020202020202020, have_lock=0) at gmain.c:1236
No locals.
#2  0x0000560b159a20b4 in main (argc=<optimized out>, argv=<optimized out>) at main.c:182
        error = 0x0
        opt_context = 0x560b174cff70
        ret = 0
        name_owner_id = 1
        sigint_source = 0x560b174d0210
        __func__ = "main"


and it happens after the following actions:

      guint sigint_id = g_unix_signal_add_full (G_PRIORITY_DEFAULT,
                                          SIGINT,
                                          on_sigint,
                                          NULL,  /* user_data */
                                          NULL); /* GDestroyNotify */
      if (sigint_id)
        sigint_source = g_main_context_find_source_by_id (NULL, sigint_id); 
      ...
      g_main_loop_run (loop);
      ...
      g_main_loop_quit (loop);  /* in the on_sigint() SIGINT handler */
      ...
      if (sigint_source)
        {
          if(! g_source_is_destroyed(sigint_source))
            {
182:          g_source_destroy (sigint_source);
            }
        }

The above looks to me like a correct code. But I'm no GLib expert so I have no idea when the default context is created and/or destroyed. However, the context's address 0x2020202020202020 looks really suspicious.

Comment 16 Fedora End Of Life 2018-05-03 08:08:40 UTC
This message is a reminder that Fedora 26 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 26. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '26'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 26 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 17 Fedora End Of Life 2018-05-29 11:34:48 UTC
Fedora 26 changed to end-of-life (EOL) status on 2018-05-29. Fedora 26
is no longer maintained, which means that it will not receive any
further security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.