Menu ▾ ▴

#3048 [pdk13/14/15] SIGSEGV on returnning from void function with void value

closed-out-of-date
None
other
5
2023-01-26
2020-06-10
No
void bar();
void foo()
{
    return bar();
}

Compiling this with sdcc test.c -mpdk13 results in this :

Backtrace:
sdcc[0x495b87]
sdcc[0x6f05ab]
sdcc[0x6f1040]
sdcc[0x7022cb]
sdcc[0x705a96]
sdcc[0x42ff0e]
sdcc[0x447e4c]
sdcc[0x40c13e]
sdcc[0x40837c]
/lib64/libc.so.6(__libc_start_main+0xf2)[0x7f5927be9042]
sdcc[0x409efe]
test.c:4: error 9: FATAL Compiler Internal Error in file 'gen.c' line number '310' : code generator internal error 
Contact Author with source code
Caught signal 11: SIGSEGV

Tested with commit 11662.

Related

Wiki: NGI0-Entrust-SDCC

Discussion

  • Philipp Klaus Krause

    • status: open --> closed-out-of-date
    • assigned_to: Philipp Klaus Krause
     
  • Philipp Klaus Krause

    Works for me as of [r13827].

     

    Related

    Commit: [r13827]


Log in to post a comment.