Menu

#2928 SIGSEGV in SDCC

closed-fixed
SIGSEGV (2)
other
5
2023-01-26
2019-08-14
No

Hi all,
Here is a problem in SDCC, when compiling this code:

char n1 = {1,235};

sdcc -mz80 MyProj.c

Tested under Windows 7 on SDCC : mcs51/z80/z180/r2k/r3ka/gbz80/tlcs90/ez80_z80/ds390/pic16/pic14/TININativ
e/ds400/hc08/s08/stm8/pdk13/pdk14/pdk15 3.9.2 #11330 (MINGW32)

But the problem is present on older SDCC builds

P.S. I know that the code is incorrect, but must be only error, but not SIGSEGV, aha?

1 Attachments

Related

Wiki: NGI0-Entrust-SDCC

Discussion

  • Philipp Klaus Krause

    I can reproduce the problem on Debian GNU/Linux using SDCC [r11330].

     
  • Xavier Del Campo

    Edited.

     

    Last edit: Xavier Del Campo 2019-08-29
  • Philipp Klaus Krause

    As of [r13822], I don't see the segfault on my Debian GNU/Linux testing system, but via valgrind I can see that there is still an invalid read, so the SEGFAULT could be back any time.

     

    Related

    Commit: [r13822]

  • Philipp Klaus Krause

    • status: open --> closed-fixed
    • assigned_to: Philipp Klaus Krause
     
  • Philipp Klaus Krause

    Fixed in [r13824].

     

    Related

    Commit: [r13824]


Log in to post a comment.

MongoDB Logo MongoDB