indicator-messages-service crashed with SIGSEGV in g_type_check_instance() from g_signal_handlers_disconnect_matched() from act_user_manager_finalize() from g_object_unref() from im_accounts_service_dispose()

Bug #2015962 reported by errors.ubuntu.com bug bridge
48
This bug affects 5 people
Affects Status Importance Assigned to Milestone
accountsservice
Fix Released
Unknown
accountsservice (Ubuntu)
Fix Released
High
Marco Trevisan (Treviño)
ayatana-indicator-messages (Ubuntu)
In Progress
High
Sebastien Bacher
indicator-messages (Ubuntu)
Fix Released
High
Sebastien Bacher

Bug Description

The Ubuntu Error Tracker has been receiving reports about a problem regarding indicator-messages. This problem was most recently seen with package version 13.10.1+18.10.20180918-0ubuntu3, the problem page at https://errors.ubuntu.com/problem/94c77bb11d79da78a8cb610adb9252f41d2ab4a4 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/.

Tags: lunar
summary: - /usr/lib/x86_64-linux-gnu/indicator-messages/indicator-messages-
- service:11:g_type_check_instance:g_signal_handlers_disconnect_matched:act_user_manager_finalize:g_object_unref:im_accounts_service_dispose
+ indicator-messages-service crashed with SIGSEGV in
+ g_type_check_instance() from g_signal_handlers_disconnect_matched() from
+ act_user_manager_finalize() from g_object_unref() from
+ im_accounts_service_dispose()
Revision history for this message
Sebastien Bacher (seb128) wrote :
Changed in accountsservice (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in indicator-messages (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Yes the latest 3 crashes are from 22.08.8-1ubuntu6

Changed in accountsservice (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

That's the version installed on disk but are we confident they restarted their session to have that version of the library loaded by the indicator?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

That was published 4 days ago, but we'll have a better idea in a week if bug 2015962 isn't the #6 crash in all of lunar anymore: https://errors.ubuntu.com/?release=Ubuntu%2023.04&period=week

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I just got another one in bug 2015982 with libaccountsservice0 22.08.8-1ubuntu6 (after several reboots) so let's see what that retraces to.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Yes confirmed still happening in bug 2015982 with libaccountsservice0 22.08.8-1ubuntu6

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

This crash happens on logout, BTW.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Confirmed, the issue is also still there using accountsservices master, I've reported it upstream with a valgrind log now

https://gitlab.freedesktop.org/accountsservice/accountsservice/-/issues/113

Changed in indicator-messages (Ubuntu):
importance: Undecided → High
Changed in accountsservice (Ubuntu):
importance: Undecided → High
assignee: nobody → Sebastien Bacher (seb128)
status: Confirmed → In Progress
Changed in accountsservice:
status: Unknown → New
Changed in accountsservice (Ubuntu):
status: In Progress → Fix Committed
Changed in indicator-messages (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package accountsservice - 22.08.8-1ubuntu7

---------------
accountsservice (22.08.8-1ubuntu7) lunar; urgency=medium

  * debian/patches/gitlab_manager_requests.patch:
    - Disconnect from manager signals when freeing a request and resolve
      indicator-messages crashing on logout, thanks Marco! (lp: #2015962)

 -- Sebastien Bacher <email address hidden> Thu, 13 Apr 2023 23:59:56 +0200

Changed in accountsservice (Ubuntu):
status: Fix Committed → Fix Released
Changed in accountsservice:
status: New → Fix Released
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Still crashing in accountsservice 22.08.8-1ubuntu7:

https://errors.ubuntu.com/problem/94c77bb11d79da78a8cb610adb9252f41d2ab4a4

Changed in accountsservice (Ubuntu):
status: Fix Released → Confirmed
assignee: Sebastien Bacher (seb128) → nobody
Changed in indicator-messages (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

Could you confirm that those loaded the new library version? Because I confirmed locally that the segfault and valgrind error were fixed with the new release, at least in the testcase described upstream (but could be that the issue referred to is different from the one reported/triggered by the testcase)

Changed in accountsservice (Ubuntu):
status: Confirmed → Incomplete
Changed in indicator-messages (Ubuntu):
status: Confirmed → Incomplete
Changed in accountsservice (Ubuntu):
assignee: nobody → Sebastien Bacher (seb128)
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Since im_accounts_service_dispose() is mentioned in the bug title, can this possibly have something to do with bug #2015610?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I reboot every day and just got this:

  Apr 18 14:48 _usr_lib_x86_64-linux-gnu_indicator-messages_indicator-messages-service.1000.crash

with

  accountsservice 22.08.8-1ubuntu7

but I'm still working on a retrace.

Revision history for this message
Sebastien Bacher (seb128) wrote :

@Daniel, do you have the indicator loaded in GNOME or is an Unity/other desktop session?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I don't use indicators ever, on any machine. It's just that indicator-messages-service crashes on logout.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

ubuntu-bug/apport refuse to upload my crash and local debugging even with debuginfod is missing symbols!? But it still looks like the same bug:

Program terminated with signal SIGSEGV, Segmentation fault.
#0 g_type_check_instance (type_instance=0x555588f84fd0)
    at ../../../gobject/gtype.c:4272
#1 0x00007f2d17daf568 in g_signal_handlers_disconnect_matched
    (instance=0x555588f84fd0, mask=(G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA), signal_id=0, detail=0, closure=0x0, func=0x7f2d17c1ed70, data=0x555588f88760)
    at ../../../gobject/gsignal.c:3067
#2 0x00007f2d17c189a8 in () at /lib/x86_64-linux-gnu/libaccountsservice.so.0
#3 0x00007f2d17da5e4c in g_object_unref (_object=0x555588f88760)
    at ../../../gobject/gobject.c:3938

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

^^^
accountsservice was upgraded to 22.08.8-1ubuntu7 on 2023-04-14 and the machine was rebooted every day between then and 2023-04-18 before it crashed again. So definitely 22.08.8-1ubuntu7

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I just rebooted for a second time today and reproduced the crash again with libaccountsservice0 22.08.8-1ubuntu7

Program terminated with signal SIGSEGV, Segmentation fault.

#0 g_type_check_instance (type_instance=0x55b49b114970)
    at ../../../gobject/gtype.c:4272
#1 0x00007f94d743a568 in g_signal_handlers_disconnect_matched (
    instance=instance@entry=0x55b49b114970,
    mask=mask@entry=(G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA),
    signal_id=signal_id@entry=0, detail=detail@entry=0,
    closure=closure@entry=0x0,
    func=func@entry=0x7f94d72a9d70 <on_new_user_loaded>, data=0x55b49b1151b0)
    at ../../../gobject/gsignal.c:3067
#2 0x00007f94d72a39a8 in act_user_manager_finalize (object=0x55b49b1151b0)
    at ../src/libaccountsservice/act-user-manager.c:2639
#3 0x00007f94d7430e4c in g_object_unref (_object=0x55b49b1151b0)
    at ../../../gobject/gobject.c:3938
#4 0x000055b499c9b950 in im_accounts_service_dispose (object=0x55b49b114020)
    at ./src/im-accounts-service.c:84
#5 0x00007f94d7430da0 in g_object_unref (_object=0x55b49b114020)
    at ../../../gobject/gobject.c:3891
#6 0x000055b499c9ac04 in im_application_list_dispose (object=0x55b49b110e10)
    at ./src/im-application-list.c:566
#7 0x00007f94d7430da0 in g_object_unref (_object=0x55b49b110e10)
    at ../../../gobject/gobject.c:3891
#8 0x000055b499c9a41e in main (argc=<optimised out>, argv=0x7fff96920ea8)
    at ./src/messages-service.c:289

Changed in accountsservice (Ubuntu):
status: Incomplete → Confirmed
Changed in indicator-messages (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Rudra Saraswat (rs2009) wrote :

I can confirm I'm facing the same issue in the latest Ubuntu Unity daily build (with the latest version of accountsservice).

indicator-messages crashes on every login, not just on log out (including booting the ISO). You should be able to reproduce this bug with the latest Ubuntu Unity ISO at https://cdimage.ubuntu.com/ubuntu-unity/daily-live/current.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

You mean you get presented with the error report dialog on login, from the crash of the previous logout :)

Revision history for this message
Rudra Saraswat (rs2009) wrote :

vanvugt: nope, also when booting the live ISO for the first time (so I can confirm it's not just at logouts; trying to get a stack trace, but network's really unstable today, so unable to download debug symbols)

Revision history for this message
Sebastien Bacher (seb128) wrote :
Changed in accountsservice (Ubuntu):
status: Confirmed → In Progress
Changed in accountsservice (Ubuntu):
status: In Progress → Fix Committed
Changed in indicator-messages (Ubuntu):
status: Confirmed → Invalid
Changed in accountsservice (Ubuntu):
assignee: Sebastien Bacher (seb128) → Marco Trevisan (Treviño) (3v1n0)
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

I accepted indicator-messages into lunar-proposed but, sadly, it didn't build. The issue is on the binary-package level:

https://launchpad.net/ubuntu/+source/indicator-messages/13.10.1+18.10.20180918-0ubuntu4

Basically what's happening is that indicator-messages and ayatana-indicator-messages both build the libmessaging-menu* binary packages. This is not right. Both are available in the archive for lunar. So indicator-messages cannot be published as it tries to upload the new binaries but it sees newer versioned ones (from ayatana) already - and bails.

We probably need to drop the libmessaging-menu* packages from indicator-messages.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Going forward we need to remove indicator-messages and use the ayatana one which is maintained and switch the flavors to use that one but removing those binaries for the build for now would probably make sense yes

Changed in indicator-messages (Ubuntu):
status: Invalid → In Progress
assignee: nobody → Sebastien Bacher (seb128)
Changed in ayatana-indicator-messages (Ubuntu):
status: New → Triaged
importance: Undecided → High
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Summarizing this bug from an SRU POV

We need https://launchpad.net/ubuntu/+source/indicator-messages/13.10.1+18.10.20180918-0ubuntu5 in lunar. Previous upload of 0ubuntu4 failed to migrate/build (see comment #24), and I guess 0ubuntu5 arrived too late for the release.

We also have https://launchpad.net/ubuntu/lunar/+upload/31007427/+files/ayatana-indicator-messages_22.9.0-1ubuntu1_source.changes in lunar-unapproved

I'm sensing both need to land in lunar-proposed at the same time for this bug to be fixed in lunar?

And what about accountsservice 22.08.8-1ubuntu7, which is in lunar already, but its task in this bug is "fix committed"? I saw there was some back and forth with it, and it sounded it would have the fix for this bug, but then didn't. Is it still related to this bug, or can we remove/delete its task? Or move it to "fix released"?

Revision history for this message
Sebastien Bacher (seb128) wrote :

@Andreas

Replying about the accountsservice part, we got some issues resolved there before the release but the bug here is a different problem then the one addressed in accountsservice 22.08.8-1ubuntu7.

The issue is in the indicator codebase and the right fix is what has been uploaded for (ayatana-)indicator-messages recently but Marco also worked on making accountsservice more robust to such coding errors. The fix has been commited upstream now but not uploaded to Ubuntu yet (we tend to use 'fix commited' on desktop component for things which have a fix available in the upstream vcs which can be slightly confusing)

Revision history for this message
Steve Langasek (vorlon) wrote :

This bug report is lacking required information for an SRU.

Changed in ayatana-indicator-messages (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

We have decided this is a zero-day SRU, we already tested it and we'll release it as-is.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package indicator-messages - 13.10.1+18.10.20180918-0ubuntu5

---------------
indicator-messages (13.10.1+18.10.20180918-0ubuntu5) lunar; urgency=medium

  * debian/conrol, debian/*.install: drop the libmessaging-menu0,
    libmessaging-menu-dev and gir1.2-messagingmenu-1.0 binary packages. Those
    are built and provided by ayatana-indicator-messages and cannot
    realistically be published to the archive during builds right now. They
    have been removed from the archive already when copied-forward.
  * debian/rules: change --fail-missing to --list-missing so that we don't
    fail when we don't install all the built files. Remove unneeded removal
    of *.la files as we don't install the library bits anymore.
  * debian/rules: make sure dh_auto_install does what it's supposed to.

 -- Łukasz 'sil2100' Zemczak <email address hidden> Wed, 19 Apr 2023 16:55:12 +0100

Changed in indicator-messages (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Chris Halse Rogers (raof) wrote : Proposed package upload rejected

An upload of ayatana-indicator-messages to lunar-proposed has been rejected from the upload queue for the following reason: "Rejecting from the queue as this is still missing SRU information, and that should notify someone who cares :). The diff itself looks fine, although the it now also needs fixing in mantic and the lunar upload needs a non-conflicting version number. Please feel free to reupload with those fixed.".

Changed in ayatana-indicator-messages (Ubuntu):
assignee: nobody → Sebastien Bacher (seb128)
status: Incomplete → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package accountsservice - 23.13.9-2ubuntu1

---------------
accountsservice (23.13.9-2ubuntu1) mantic; urgency=medium

  * Includes some extra upstream bugfixes

accountsservice (23.13.9-2) unstable; urgency=medium

  * debian/patches/git_user_manager.patch:
    - Disconnect from manager signals when freeing a request and resolve
      indicator-messages crashing on logout (lp: #2015962)
  * debian/patches/git_default_gdm.patch:
    - default to gdm if there display-manager.service isn't a known target,
      which is the case for our gdm called gdm3, fixes the service
      crashing when trying to toggle autologin (lp: #2024870)

 -- Sebastien Bacher <email address hidden> Mon, 26 Jun 2023 16:25:07 +0200

Changed in accountsservice (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.