Skip to content

segfault and memory errors #693

@DyslexicAtheist

Description

@DyslexicAtheist

dunst segfaults in latest debian sid packages and also when building from source (git clone) (I checked both the debian source package as well as the latest revision from git.)

The version from Debian is:

/usr/bin/dunst --version
Dunst - A customizable and lightweight notification-daemon 1.4.1 (2019-07-03)

Version from git:

/dunst --version
Dunst - A customizable and lightweight notification-daemon v1.4.1-24-gdfd6e76

I'm starting dunst from the build directory either using the latest git version or from debian tree (apt-get source dunst):

~/src/dunst/dunst -conf ~/.config/dunst/dunstrc

Dunst segfaults periodically (it gets automatically restarted when that happens by my WM), here is the list of core files reported by systemd:

sudo coredumpctl list dunst
TIME                            PID   UID   GID SIG COREFILE  EXE
Tue 2020-02-11 10:44:11 CET   47217  1000  1000   6 missing   /usr/bin/dunst
Tue 2020-02-11 10:44:11 CET   47229  1000  1000   6 missing   /usr/bin/dunst
Wed 2020-02-12 11:42:05 CET   75581  1000  1000   6 missing   /usr/bin/dunst
Wed 2020-02-12 11:42:06 CET   75586  1000  1000   6 missing   /usr/bin/dunst
Sun 2020-02-16 13:59:48 CET  525862  1000  1000   6 missing   /usr/bin/dunst
Sun 2020-02-16 13:59:49 CET  525874  1000  1000   6 missing   /usr/bin/dunst
Tue 2020-02-18 13:09:55 CET  679648  1000  1000   6 missing   /usr/bin/dunst
Tue 2020-02-18 13:09:56 CET  679658  1000  1000   6 missing   /usr/bin/dunst
Sat 2020-02-22 09:05:52 CET   79034  1000  1000   6 missing   /usr/bin/dunst
Sat 2020-02-22 09:05:52 CET   79039  1000  1000   6 missing   /usr/bin/dunst
Mon 2020-02-24 10:54:07 CET   95268  1000  1000   6 missing   /usr/bin/dunst
Mon 2020-02-24 10:54:07 CET   95280  1000  1000   6 missing   /usr/bin/dunst
Thu 2020-02-27 09:48:52 CET  390056  1000  1000   6 missing   /usr/bin/dunst
Thu 2020-02-27 09:48:52 CET  390061  1000  1000   6 missing   /usr/bin/dunst
Sat 2020-02-29 17:19:04 CET  978503  1000  1000   6 missing   /usr/bin/dunst
Sat 2020-02-29 17:19:05 CET  978508  1000  1000   6 missing   /usr/bin/dunst
Mon 2020-03-02 18:03:58 CET  820533  1000  1000   6 missing   /usr/bin/dunst
Mon 2020-03-02 18:03:58 CET  820545  1000  1000   6 missing   /usr/bin/dunst
Tue 2020-03-03 10:22:50 CET  888165  1000  1000   6 missing   /usr/bin/dunst
Tue 2020-03-03 10:22:50 CET  888177  1000  1000   6 missing   /usr/bin/dunst
Thu 2020-03-05 15:21:51 CET  1631565  1000  1000   6 present   /usr/bin/dunst
Thu 2020-03-05 15:21:51 CET  1631577  1000  1000   6 present   /usr/bin/dunst
Sat 2020-03-07 15:05:55 CET  2270537  1000  1000   6 present   /usr/bin/dunst
Sat 2020-03-07 15:05:56 CET  2270542  1000  1000   6 present   /usr/bin/dunst
Sun 2020-03-08 12:43:01 CET  205577  1000  1000   6 present   /usr/bin/dunst
Sun 2020-03-08 12:43:01 CET  205589  1000  1000   6 present   /usr/bin/dunst

I then built dunst with -g CFLAGS and used valgrind to report memory errors.

valgrind --tool=memcheck --vgdb-error=0 --leak-check=yes --show-reachable=yes --num-callers=20 --track-fds=yes --track-origins=yes ~/src/dunst/dunst -conf ~/.config/dunst/dunstrc  | tee ~/dunst-valgrind.log

valgrind log:

dunst-valgrind.log

My .config/dunst/dunstrc:

dunstrc.txt

happy to help patch some of these, just let me know. cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions