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?
I can reproduce the problem on Debian GNU/Linux using SDCC [r11330].
Edited.
Last edit: Xavier Del Campo 2019-08-29
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]
Fixed in [r13824].
Related
Commit: [r13824]