segfault in non-ascii directory #49

issue slush0 opened this issue on January 30, 2011
  1. slush0 commented at 6:47 PM on January 30, 2011: none

    When application is located in directory with national characters in it's name, bitcoin crash on segfault.

    OS: Ubuntu 10.10 Directory: /home/andrejka/Stažené/bitcoin ("download", default folder of Czech Ubuntu)

    Moving bitcoin app to directory "/home/andrejka/test/" solved the problem.

  2. dooglus commented at 5:36 AM on January 31, 2011: contributor

    I'm not able to reproduce this in ubuntu 11.04's development version, but I'm using an English locale.

    Could you show me the output of running this in a terminal please, so I can better reproduce your environment?

    env | grep -i -e 'c[sz]' -e lc

    remove anything private from the output, should there be something you don't want to post.

    Thanks.

    Chris.

  3. dooglus commented at 5:38 AM on January 31, 2011: contributor

    When I try to make a folder like you have, it becomes: /home/chris/Sta¾ené/bitcoin/ - the z hacek comes out like a 3/4 on my screen.

  4. slush0 commented at 9:02 AM on January 31, 2011: none

    LANG=cs_CZ.utf8 GDM_LANG=cs_CZ.utf8

  5. dooglus commented at 10:02 AM on January 31, 2011: contributor

    I still can't reproduce it, even with those settings.

    Are you using the official build? 32 or 64 bit? When does it crash; before or after the GUI appears? What's the last few lines in ~/.bitcoin/debug.log when it crashes? Can you get a gdb backtrace?

  6. zde commented at 1:46 PM on March 1, 2011: none

    I have confirmed the bug on Ubuntu 10.04.2 LTS. It's triggered when /proc/self/exe links to a UTF-8 path. Behavior differs depending on LANG setting.

    • LANG=C: bitcoin runs just fine
    • LANG=DE: assertion fails../src/common/intl.cpp(2554): assert "!m_strShort.empty()" failed in AddCatalog(): must initialize catalog first
    • LANG=cs_CZ.utf8: bitcoin silently segfaults, gdb shows corrupted stack trace.

    strace suggests it happens during or right after this line, I think it's a wxLocale bug.

    src/ui.cpp: g_locale.AddCatalog("wxstd"); // wxWidgets standard translations, if any

  7. laanwj commented at 8:10 AM on February 14, 2012: member

    Was this a wx issue? Can anyone please re-test this with 0.5.0+?

  8. gavinandresen closed this on Apr 4, 2012

  9. zathras-crypto referenced this in commit 5a4b94009b on Jul 4, 2014
  10. rdponticelli referenced this in commit 13e44df743 on Nov 26, 2014
  11. dexX7 referenced this in commit 37fff442af on May 25, 2015
  12. gandrewstone referenced this in commit 7877af0a54 on Oct 12, 2015
  13. destenson referenced this in commit 326022c273 on Jun 26, 2016
  14. ptschip referenced this in commit e3ccbf6673 on Jul 13, 2016
  15. tmagik referenced this in commit e83d835e38 on Jul 1, 2017
  16. classesjack referenced this in commit 59878720e2 on Jan 2, 2018
  17. Warchant referenced this in commit 2f01468512 on Dec 31, 2019
  18. velesnetwork referenced this in commit 2084424881 on Jan 12, 2020
  19. Losangelosgenetics referenced this in commit 4903955c9a on Mar 12, 2020
  20. KolbyML referenced this in commit bc86927231 on Sep 4, 2020
  21. satindergrewal referenced this in commit 42db01fbeb on Jun 22, 2021
  22. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 21:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me