Issue Details (XML | Word | Printable)

Key: PCC-117
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Anders Magnusson
Reporter: Jörg Schilling
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
pcc

ccom dumps core with labels before related goto

Created: 23/Feb/10 06:02 PM   Updated: 25/Nov/10 06:58 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Environment: Solaris SXCE SNV_105


 Description  « Hide
A code phrase like:

func()
{
again:

...
...
goto again;
}

causes ccom do dump core

program terminated by signal FPE (integer divide by zero)
0xfee729b2: UDivRem+0x0092: divl 0x00000040(%esp),%eax
(dbx) where
=>[1] UDivRem(0x81020b8, 0x0), at 0xfee729b2
  [2] optim(0x811036c, 0x0), at 0x805a86b
  [3] optim(0x8110868, 0x0), at 0x805a852
  [4] ecomp(0x8110868, 0x0), at 0x806d688
  [5] yyparse(0x80c674c, 0x80c65d0, 0xffffffff, 0x8047674, 0x8047584, 0x805a65d), at 0x80703fc
  [6] main(0x2, 0x8047598, 0x80475a4, 0x804754c), at 0x8095db0
(dbx)



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson made changes - 25/Feb/10 06:45 PM
Field Original Value New Value
Assignee Anders Magnusson [ ragge ]
Anders Magnusson made changes - 25/Nov/10 06:58 PM
Status Open [ 1 ] Closed [ 6 ]
Resolution Fixed [ 1 ]