This is the mail archive of the insight@sourceware.org mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] fix error sending signal to dead process


 
Using insight-7.4.50 (cvs snapshot 20120403), continuing or stepping
after a fault (i.e. segfault) occurred results in sending a signal to
the dead process.
This is due to hook gdbtk_annotate_signal() trying to get thread_info
structure with a null pid.
Continuing in the same insight session (by re-running the program)
finally ends in insight segfaulting.
 
The attached patch fixes this problem. It simply do not pass signal to
tcl if the pid is null.
 
Cheers,
Patrick
 
P.S.: the bug report system linked from your web site
(http://sources.redhat.com/cgi-bin/gnatsweb.pl?database=insight&user=gue
st&password=guest&cmd=login) is down (HTTP error 500).

Attachment: insight-7.4.50-sig2dead.patch
Description: insight-7.4.50-sig2dead.patch


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]