#837 peephole rule 5 causes SIGSEGV

closed-fixed
5
2005-01-21
2004-11-23
No

The following command fails with a SIGSEGV:
sdcc -mpic16 -p18f6720 --denable-peeps foo.c

With trial'n'error we found out that it's exactly
peephole rule 5 that causes that crash. The shortest
code to reproduce this problem:

int main ()
{
return 0;
}

regards
Raphael Neider & Daniel Winkler

Discussion

  • Raphael Neider

    Raphael Neider - 2005-01-19

    Logged In: YES
    user_id=1115835

    The original demo code seems to work now.

    But we can provide another example that causes the same crash:

    int main ()
    {
    return 0x4242;
    }

    (Both, the upper and the lower byte have to be the same to
    reproduce the crash)

    JFYI
    Daniel Winkler

     
  • Raphael Neider

    Raphael Neider - 2005-01-21

    Logged In: YES
    user_id=1115835

    fixed in #930

     
  • Raphael Neider

    Raphael Neider - 2005-01-21
    • assigned_to: nobody --> tecodev
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks