#395 Crash when running sdcc - new

closed
nobody
5
2002-09-21
2002-09-20
Anonymous
No

ralloc.c line 2391:

if ( (IC_LEFT(uic)->key == IC_RESULT(ic)->key &&
operandUsesAcc(IC_RIGHT(uic))) ||
(IC_RIGHT(uic)->key == IC_RESULT(ic)->key &&
operandUsesAcc(IC_LEFT(uic))) )
return;

IC_LEFT(uic) is NULL when this is called causing an
exception.

New bug caused by changes in last week.

Discussion

  • Graham Barnett

    Graham Barnett - 2002-09-21

    Logged In: YES
    user_id=580774

    No exception on code snapshot of 1st September 2002.
    Exception when running SDCC built from cvs code as of 20
    September 2002.

     
  • Jesus Calvino-Fraga

    • status: open --> closed
     
  • Jesus Calvino-Fraga

    Logged In: YES
    user_id=603650

    This bug was fixed by Wim Lewis on Sep 20. The comment
    in the CVS reads:

    "Test pointer for NULL *before* dereferencing it, not
    immediately after (fix crash reported by Jesus Calvino-Fraga)"

     

Log in to post a comment.