Bug 386351

Summary: Trojita crashes at start on Haiku
Product: [Applications] trojita Reporter: miqlas <zmizsei>
Component: Desktop GUIAssignee: Trojita default assignee <trojita-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: zmizsei
Priority: NOR    
Version First Reported In: git   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Crash log

Description miqlas 2017-10-30 11:39:49 UTC
Created attachment 108641 [details]
Crash log

Trojita latest git rev crashing hard on Haiku. See the attached debug log.

Interestingly if i comment theese lines, it work ok:
https://github.com/jktjkt/trojita/blob/master/src/Gui/main.cpp#L60-L65

Current Trojita recipe:
https://github.com/haikuports/haikuports/pull/1758
Comment 1 Jan Kundrát 2017-10-30 13:07:51 UTC
Sorry, we cannot help with platform-specific issues. If I were you, I would start with writing a simple Qt app which exercises the QApplication/QTranslator combination. If that doesn't work, then you will know that it is a Qt bug, and that you should bring this to the Haiku/Qt maintainers.
Comment 2 Jan Kundrát 2017-10-30 13:20:59 UTC
Sorry, I got confused by the crash log and the patch-observation.
Comment 3 Jan Kundrát 2017-10-30 13:21:23 UTC

*** This bug has been marked as a duplicate of bug 386353 ***
Comment 4 Thomas Lübking 2017-10-30 13:23:16 UTC
You should esp. figure whether PKGDATADIR is set and whether a (bad?) locale file exists in that path. Also which particular call in that segment causes the segfault (and whether directly or later on - can you create a non-binary backtrace eg. using gdm?)
Comment 5 Caspar Schutijser 2017-11-02 19:38:58 UTC
Git commit 4c02000a91f499dcd9caf5a3d77cd6fd2d2734fe by Caspar Schutijser.
Committed on 30/10/2017 at 14:10.
Pushed by gerrit into branch 'master'.

Apply "Construct On First Use Idiom" to warningBorder

It suffered from the "static initialization order fiasco" [1], as
pointed out by Jan, which was accidentally introduced by
commit f70690899d2a6c69495d225214a7279ba8c1ff73. First reported by
miqlas on IRC.

1: https://isocpp.org/wiki/faq/ctors#static-init-order
Related: bug 386353

Change-Id: I559c12e606883068e09072de26bdaac3b1d5d73c

M  +1    -1    src/Gui/ComposeWidget.cpp
M  +1    -1    src/Gui/SettingsDialog.cpp
M  +5    -1    src/Gui/Util.cpp
M  +1    -3    src/Gui/Util.h

https://commits.kde.org/trojita/4c02000a91f499dcd9caf5a3d77cd6fd2d2734fe