Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326591 - Debugger crash (sometimes) when opening Signal view.
Summary: Debugger crash (sometimes) when opening Signal view.
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: Debug SDM (show other bugs)
Version: 5.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Greg Watson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-29 16:02 EDT by Xuan Chen CLA
Modified: 2010-10-01 10:38 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.