| Summary: | Debugger crash (sometimes) when opening Signal view. | ||
|---|---|---|---|
| Product: | [Tools] PTP | Reporter: | Xuan Chen <xuanchen> |
| Component: | Debug SDM | Assignee: | 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: | |||
Fixed in 4.0 and HEAD. |
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.