Comment 0 for bug 578613

David Leonard (david-leonard) wrote :

Binary package hint: asterisk

After an upgrade to 10.04, I get a seg fault in /usr/sbin/asterisk (package version 1: amd64)

(gdb) fr 0
#0 masq_park_call (rchan=0x7f4276028170, peer=0x0,
   timeout=<value optimized out>, extout=<value optimized out>,
   play_announcement=<value optimized out>, args=0x7f424ef90160)
   at features.c:873
873 args->orig_chan_name = ast_strdupa(peer->name);
(gdb) up
#1 0x00007f425083529c in parkandannounce_exec (chan=0x7f4276028170,
   data=<value optimized out>) at app_parkandannounce.c:137
137 res = ast_masq_park_call(chan, NULL, timeout, &lot);

This was easily fixed by adding '&& peer' to the conditional at features.c:872.
      if (!play_announcement && args == &pack_args && peer)