#257 YA Core Dump

closed-fixed
6
2013-05-25
2001-12-18
No

Hi,
When I compile the following code, I get a core dump. I can't tell what's triggering it.
Geoffrey

xdata struct
{
long A, B;
char C;
} D1, D2;

void f( void )
{
char a = D1.C;
long b;

if( D1.C )
{
b = a ? D1.A-D1.B : D1.B;
if( D1.C ) b = 1;
D1.A = b;

b = a ? D2.A-D2.B : D2.B;
if( D2.C ) b = 1;
D2.A = b;
}
}

assertion "0" failed: file "ralloc.c", line 899
0 [sig] sdcc 1532 open_stackdumpfile: Dumping stack trace to sdcc.exe.stackdump
Aborted (core dumped)

Discussion

  • Johan Knol

    Johan Knol - 2001-12-19

    Logged In: YES
    user_id=63512

    This can't be reproduced in 2.3.1. Can you confirm it still
    exists?

     
  • Johan Knol

    Johan Knol - 2001-12-19
    • priority: 5 --> 2
    • milestone: --> 100456
    • status: open --> open-works-for-me
     
  • Geoffrey Yerem

    Geoffrey Yerem - 2001-12-19

    Logged In: YES
    user_id=340862

    Johan,
    I got the latest version (12/19/01) of SDCC out of CVS and built it under Cygwin under Windows 2000
    and SDCC still crashes when trying to compile the example.

    Geoffrey

    sdcc -c test.c

    assertion "0" failed: file "ralloc.c", line 899
    0 [sig] sdcc 1772 open_stackdumpfile: Dumping stack trace to sdcc.exe.stackdump
    Aborted (core dumped)

     
  • Johan Knol

    Johan Knol - 2001-12-20

    Logged In: YES
    user_id=63512

    Right. For now, setting envvar DISABLE_FILL_GAPS ("set
    DISABLE_FILL_GAPS=1" on windoze) solves that.

    Johan

     
  • Johan Knol

    Johan Knol - 2001-12-20
    • priority: 2 --> 6
    • milestone: 100456 -->
    • status: open-works-for-me --> open-accepted
     
  • Johan Knol

    Johan Knol - 2001-12-20

    Logged In: YES
    user_id=63512

    Right. For now, setting envvar DISABLE_FILL_GAPS ("set
    DISABLE_FILL_GAPS=1" on windoze) solves that.

    Johan

     
  • Sandeep Dutta

    Sandeep Dutta - 2001-12-21
    • milestone: --> fixed
    • assigned_to: nobody --> sandeep
    • status: open-accepted --> closed-fixed
     
  • Sandeep Dutta

    Sandeep Dutta - 2001-12-21

    Logged In: YES
    user_id=1551

    Fixed. Problem with new fillgaps algorithm

     

Log in to post a comment.