Skip to content

segmentation fault when trying to load node containing emoji unicode character #2893

Description

@sylvainfaivre

Version, Operating system
CherryTree 1.7.1 running on Ubuntu 24.04.4 LTS

Describe the bug

On one specific computer, when I navigate to a node containing an emoji unicode character, CherryTree crashes with a segfault.

Same file works fine on other computers with similar setup.

File also works fine on this computer, as long as I don't click the node containing this character.

Same bug happens on other node containing different emoji characters.

To Reproduce

I shared a minimal file that makes CherryTree crash on this computer: https://transfert.free.fr/h4k2akD

Screenshots

On other computer:

Image

On offending computer:

$ cherrytree /home/me/Desktop/passwords/test1.ctb                                                                                                                                                             
[2026-07-24 07:51:53.707] [che] [debug] /home/me/.config/cherrytree/config.cfg parsed
[2026-07-24 07:51:53.707] [che] [debug] currDesktop -> KDE
[2026-07-24 07:51:53.819] [che] [debug] autosave on 10 min
[2026-07-24 07:51:53.900] [che] [debug] Node 618 > testing
[1]    441728 segmentation fault (core dumped)  cherrytree /home/me/Desktop/passwords/test1.ctb

Kernel logs:

2026-07-24T07:51:53.910028+02:00 station kernel: cherrytree[441728]: segfault at 0 ip 0000798a05eef6f4 sp 00007fffba74a098 error 4 in libpango-1.0.so.0.5200.1[798a05edd000+39000] likely on CPU 9 (core 4, socket 0)
2026-07-24T07:51:53.910045+02:00 station kernel: Code: 00 00 00 0f 1f 00 f3 0f 1e fa e9 c7 f0 fe ff 0f 1f 80 00 00 00 00 f3 0f 1e fa e9 97 ea fe ff 0f 1f 80 00 00 00 00 f3 0f 1e fa <48> 8b 07 ff a0 88 00 00 00 0f 1f 00 f3 0f 1e fa 48 8b 07 ff a0 90

libpango information:

$ type -a cherrytree
cherrytree is /usr/bin/cherrytree
cherrytree is /bin/cherrytree
$ ldd /bin/cherrytree |grep libpango-1.0
        libpango-1.0.so.0 => /lib/x86_64-linux-gnu/libpango-1.0.so.0 (0x000077e057c9a000)
$ ll /lib/x86_64-linux-gnu/libpango-1.0.so.0
lrwxrwxrwx 1 root root 24 mars  31  2024 /lib/x86_64-linux-gnu/libpango-1.0.so.0 -> libpango-1.0.so.0.5200.1
$ ll /lib/x86_64-linux-gnu/libpango-1.0.so.0.5200.1
-rw-r--r-- 1 root root 424K mars  31  2024 /lib/x86_64-linux-gnu/libpango-1.0.so.0.5200.1
$ dpkg -S /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0
libpango-1.0-0:amd64: /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0
$ dpkg -S /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0.5200.1
libpango-1.0-0:amd64: /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0.5200.1
$ dpkg -l |grep libpango
ii  libpango-1.0-0:amd64                                        1.52.1+ds-1build1                                amd64        Layout and rendering of internationalized text
ii  libpango-1.0-0:i386                                         1.52.1+ds-1build1                                i386         Layout and rendering of internationalized text
ii  libpango1.0-dev:amd64                                       1.52.1+ds-1build1                                amd64        Development files for the Pango
ii  libpangocairo-1.0-0:amd64                                   1.52.1+ds-1build1                                amd64        Layout and rendering of internationalized text
ii  libpangocairo-1.0-0:i386                                    1.52.1+ds-1build1                                i386         Layout and rendering of internationalized text
ii  libpangoft2-1.0-0:amd64                                     1.52.1+ds-1build1                                amd64        Layout and rendering of internationalized text
ii  libpangoft2-1.0-0:i386                                      1.52.1+ds-1build1                                i386         Layout and rendering of internationalized text
ii  libpangomm-1.4-1v5:amd64                                    2.46.4-1build3                                   amd64        C++ Wrapper for pango (shared libraries)
ii  libpangomm-2.48-1t64:amd64                                  2.52.0-1build1                                   amd64        C++ Wrapper for pango (shared libraries)
ii  libpangoxft-1.0-0:amd64                                     1.52.1+ds-1build1                                amd64        Layout and rendering of internationalized text

Same commands give exact same information on another system that loads the file without problem.

I would be happy to help further troubleshooting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions