Pidgin sometimes crash with SEGSEGV. Analyzing with gdb reveals purple_events_callback_emails_notification() is called with count = 1, but subject, from, to, and url are all NULL pointers. A bug inside Pidgin itself?
Update: Oops, didn't realize there's a place in the function that unconditionally sets count to 1. Silly me.
src/plugin/callbacks.c, line 407:
if ( ! purple_prefs_get_bool("/plugins/core/events/restrictions/stack-emails") )
count = 1;
This might be the cause. It should check if count is 0 before setting it to 1 unconditionally. Couldn't reproduce the issue now so no way to test, though.
Environment: Gentoo ~amd64, pidgin-2.10.6, purple-events-9999
Problem:
Pidgin sometimes crash with SEGSEGV. Analyzing with gdb reveals
purple_events_callback_emails_notification()
is called withcount
= 1, butsubject
,from
,to
, andurl
are all NULL pointers. A bug inside Pidgin itself?My workaround:
Update: Oops, didn't realize there's a place in the function that unconditionally sets
count
to 1. Silly me.src/plugin/callbacks.c
, line 407:This might be the cause. It should check if
count
is 0 before setting it to 1 unconditionally. Couldn't reproduce the issue now so no way to test, though.Update #2: Correct fix should be: