[Pidgin] #7404: trivial chat-invited signal handler causes crash

Pidgin trac at pidgin.im
Fri Oct 31 11:04:39 EDT 2008


#7404: trivial chat-invited signal handler causes crash
--------------------+-------------------------------------------------------
 Reporter:  jieryn  |        Owner:         
     Type:  defect  |       Status:  new    
Milestone:          |    Component:  plugins
  Version:  2.5.2   |   Resolution:         
 Keywords:  perl    |  
--------------------+-------------------------------------------------------

Comment(by zdeqb):

 This is a shot in the dark, but I was having crashes in perl signal
 handlers, until I changed the following lines in perl-
 handlers.c:perl_signal_cb

 {{{
 298         sv_args[i] = purple_perl_sv_from_vargs(values[i],
 299                                                (va_list*)&args,
 300                                                &copy_args[i]);
 }}}

 to

 {{{
 298         sv_args[i] = purple_perl_sv_from_vargs(values[i],
 299                                                args,
 300                                                &copy_args[i]);
 }}}

 This is on an x86_64. On an i386 the unmodified code works for me (and the
 modified causes bad thing to happen (tm)). Google says this has to do with
 va_list(s) being special...

 (I was about to file a bug report, but since this looked similar, I
 thought I'd comment before creating a new ticket...)

-- 
Ticket URL: <http://developer.pidgin.im/ticket/7404#comment:2>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list