Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 326591

Summary: Debugger crash (sometimes) when opening Signal view.
Product: [Tools] PTP Reporter: Xuan Chen <xuanchen>
Component: Debug SDMAssignee: Greg Watson <g.watson>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: g.watson
Version: 5.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Xuan Chen CLA 2010-09-29 16:02:26 EDT
When debugging some programs, if you open Signal View, the debugger backend crashes (Segmentation fault).

The reason is in gdbmi_backend.c, GDBCLIListSignals(), we do the following:
for (MIListSet(signals); ((sig = (MISignalInfo *)MIListGet(signals)) != NULL); ) {
		s = NewSignalInfo();
		s->name = strdup(sig->name);
		s->pass = sig->pass;
		s->print = sig->print;
		s->desc = strdup(sig->desc);
		AddToList(e->dbg_event_u.list, s);
	}

For some signals, its desc is null, and this caused the Segmentation fault.
Comment 1 Greg Watson CLA 2010-10-01 10:38:13 EDT
Fixed in 4.0 and HEAD.