-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dunstify Crashes with Segmentation Fault when using -r #1443
Comments
it may be related to #1442 |
- An issue has been raised on the Dunst GitHub regarding this problem. - dunst-project/dunst#1443
I am also experiencing this, I have |
Likely to be related. My |
Hi, |
I'm not a programmer but i think If n->priv is NULL, the crash happens because it's being dereferenced. typedef struct _NotifyNotificationPrivate
{
guint32 id;
char *app_name;
char *summary;
char *body;
/* NULL to use icon data. Anything else to have server lookup icon */
char *icon_name;
/*
* -1 = use server default
* 0 = never timeout
* > 0 = Number of milliseconds before we timeout
*/
gint timeout;
GSList *actions;
GHashTable *action_map;
GHashTable *hints;
gboolean has_nondefault_actions;
gboolean updates_pending;
gulong proxy_signal_handler;
gint closed_reason;
} knickers;
int get_id(NotifyNotification *n)
{
knickers *kn = n->priv;
/* I'm sorry for taking a peek */
return kn->id;
}
void put_id(NotifyNotification *n, guint32 id)
{
knickers *kn = n->priv;
/* And now I'm putting stuff into
* your knickers. I'm sorry.
* I'm so sorry.
* */
kn->id = id;
} |
Yes, the previous version used a private pointer. I will push a fix asap |
I don't see a way to modify ids in libnotify without private access. Which means that the -r options has to be disabled on newer libnotify or migrated to a dunst specific dbus call. Neither of these are ideal. Thoughts? |
Notify-send works well with the r option |
Notify send does not provide the r option to begin with |
Yes it does, when you
|
Same with |
On my system there is no such line. It seems it is a newer feature of notify send. I will check out how they do it |
I made #1444 as an initial attempt. if someone can test it i will appreciate 👍🏻 |
got same error as in ci |
The ci error is just a warning with Werror. |
tested #1446 on arch, compiles and runs, maintaining previous replacement bahaviour. |
fixed by #1444 |
Issue description:
Installation info
Dunst - A customizable and lightweight notification-daemon 1.12.1 (2024-12-17)
Compiled on 2024-12-22 with the following options:
X11 support: enabled
Wayland support: enabled
SYSCONFDIR set to: /etc
Compiler flags: -g -std=gnu11 -pedantic -Wall -Wno-overlength-strings -Os -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/build/dunst/src=/usr/src/debug/dunst -flto=auto -pthread -MMD -MP
Linker flags: -lm -lrt -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -lgio-2.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lharfbuzz -lcairo -lwayland-client -lwayland-cursor -lX11 -lXinerama -lXext -lXrandr -lXss
The text was updated successfully, but these errors were encountered: