Closed Bug 1456431 Opened 6 years ago Closed 6 years ago

Snap 60.0b15-1 revision 81 crashes on startup

Categories

(Release Engineering :: Release Automation: Other, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1456327

People

(Reporter: ke5trel, Unassigned)

References

Details

Refreshed the Snap Beta channel from 60.0b14-2 revision 80 to 60.0b15-1 revision 81 and now it crashes immediately on start.

Some highlights from the crash log:

> /snap/firefox/81/bin/desktop-launch: line 143: 31628 Aborted                 (core dumped) mkdir -p $XDG_DATA_HOME
> *** Error in `mkdir': double free or corruption (fasttop): 0x00000000020606c0 ***

> /snap/firefox/81/bin/desktop-launch: line 155:  2668 Aborted                 (core dumped) mkdir -p $XDG_CACHE_HOME
> *** Error in `mkdir': double free or corruption (fasttop): 0x000000000173f6c0 ***

> /snap/firefox/81/bin/desktop-launch: line 159:  2685 Aborted                 (core dumped) mkdir -p $XDG_CONFIG_HOME
> *** Error in `mkdir': double free or corruption (fasttop): 0x0000000001b736c0 ***

> ExceptionHandler::GenerateDump cloned child 2970
> ExceptionHandler::SendContinueSignalToChild sent continue signal to child
> ExceptionHandler::WaitForContinueSignal waiting for continue signal...
> /snap/firefox/81/crashreporter: error while loading shared libraries: libgtk-3.so.0: cannot open shared object file: No such file or directory
> Segmentation fault (core dumped)
Revision 81 has a new file "bindtextdomain.so" which is referenced in every backtrace of the crash.

> *** Error in `mkdir': double free or corruption (fasttop): 0x00000000015666c0 ***
> ======= Backtrace: =========
> /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f1973d307e5]
> /lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7f1973d3937a]
> /lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f1973d3d53c]
> /snap/firefox/81/bindtextdomain.so(bindtextdomain+0x67)[0x7f19742a5b07]
> mkdir[0x402603]
> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f1973cd9830]
> mkdir[0x4028e9]
Flags: needinfo?(jlorenzo)
Thanks for the report! The backtrace is different from the one in bug 1456327, but the logs are identical. I don't think something changed in bindtextdomain. That's a library we imported in tree in bug 724531. It hasn't changed since then[1]

Let's track the resolution in bug 1456327. 

[1] https://searchfox.org/mozilla-central/search?q=bindtextdomain&path=
Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(jlorenzo)
Resolution: --- → DUPLICATE
I don't think this is really a duplicate.  This is an interesting backtrace, considering our new bindtextdomain that was introduced.  However, I'm not seeing crashes in other snaps yet.
Alright, reopening bug. Thank you for the context! I see bindtextdomain was changed 3 days ago[1]. I also see the `mkdir -p` calls were moved from launcher-specific[2] to desktop-exports[3]. Does it change the steps at which the folders are created? Can I target a different revision of desktop-gtk3 in the manifest? That would allow to test out b15 without these changes.

[1] https://github.com/ubuntu/snapcraft-desktop-helpers/pull/106
[2] https://github.com/ubuntu/snapcraft-desktop-helpers/pull/106/files#diff-334896075ffe7ba59b8ce9630fff01a6L31
[3] https://github.com/ubuntu/snapcraft-desktop-helpers/pull/106/files#diff-1a00de5bae9bcc5c074586e13fc04bf3R365
Status: RESOLVED → REOPENED
Flags: needinfo?(ken.vandine)
Resolution: DUPLICATE → ---
I confirm the start up crash is caused by the same root cause as bug 1456327. See bug 1456327 comment 12 for more detail.s
Status: REOPENED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → DUPLICATE

Original bug was fixed. Clearing needinfo.

Flags: needinfo?(ken.vandine)
You need to log in before you can comment on or make changes to this bug.