Closed GoogleCodeExporter closed 9 years ago
I have reproduced.
Original comment by Michael....@gmail.com
on 19 Jun 2009 at 8:20
I checked with a printf statement and the "entity" pointer (in parser/msc.c
line 597)
is in fact a NULL pointer (Which run-time apparently is/was mapped to the 0x4
address
on my machine).
This also fits the loop just above line 597, which terminates if entity is
"NULL"
(when there are no more valid entities).
Replacing line 597 with
[code]
if(entity != NULL){
r = findAttrib(entity->attr, a);
} else {
r = NULL;
}
[/code]
fixes this issue for me - That is the segfault disappears and mscgen prints
"Unknown
source entity 'monitor'".
~Niels
Original comment by NThykier@gmail.com
on 22 Jun 2009 at 3:33
Changes added and code made a little better at revision #24.
Thanks for reporting and providing a fix.
Original comment by Michael....@gmail.com
on 28 Jun 2009 at 2:38
Original issue reported on code.google.com by
NThykier@gmail.com
on 19 Jun 2009 at 1:39