Discussion:
SIGSEGV
(too old to reply)
Magnus Johansson
2003-02-28 07:10:10 UTC
Permalink
Hi!

It's been compiling so far, so I tried downloading a newer version of sdcc, but with the same result. I tried to see what happens and added -V, and strangely, with it the code compiles again. I get a SIGSEGV when removing it. How can I help find what's wrong with sdcc/mingw/cygwin?

-----

C:\Magnus_J\MP>sdcc -v
SDCC : mcs51/gbz80/z80/avr/ds390/pic14/TININative/xa51 2.3.3 (Feb 27 2003) (MINGW32)

C:\Magnus_J\MP>make clean
c:/cygwin/bin/rm -f *.lst *.rel *.sym *.rst *.adb *.map *.asm *.lnk *.mem *.cdb

C:\Magnus_J\MP>make
sdcc -c --debug -I c:/sdcc/share/sdcc/include -L c:/sdcc/share/sdcc/lib/small uart.c
sdcc -c --debug -I c:/sdcc/share/sdcc/include -L c:/sdcc/share/sdcc/lib/small clock.c
sdcc -c --debug -I c:/sdcc/share/sdcc/include -L c:/sdcc/share/sdcc/lib/small IDE.c
sdcc -c --debug -I c:/sdcc/share/sdcc/include -L c:/sdcc/share/sdcc/lib/small stack_chk.c
sdcc -c --debug -I c:/sdcc/share/sdcc/include -L c:/sdcc/share/sdcc/lib/small IDE_cmd.c
sdcc -c --debug -I c:/sdcc/share/sdcc/include -L c:/sdcc/share/sdcc/lib/small time.c
sdcc --debug -I c:/sdcc/share/sdcc/include -L c:/sdcc/share/sdcc/lib/small --model-small \
main.c uart.rel clock.rel IDE.rel stack_chk.rel IDE_cmd.rel time.rel
Caught signal 11: SIGSEGV
MAKE: *** [main.ihx] Error 1

-----
Bernhard Held
2003-02-28 08:19:13 UTC
Permalink
Post by Magnus Johansson
It's been compiling so far, so I tried downloading a newer version of
sdcc,
Post by Magnus Johansson
but with the same result. I tried to see what happens and added -V,
and strangely, with it the code compiles again. I get a SIGSEGV when
removing it.
Urrgs, this is bad news.
Post by Magnus Johansson
How can I help find what's wrong with sdcc/mingw/cygwin?
Can you compile it with cygwin? Run sdcc with gdb and tell me, where the
SIGSEGV happens. If you don't know what to do, I can guide you through gdb.
Or could you send me your source?
Post by Magnus Johansson
sdcc --debug -I c:/sdcc/share/sdcc/include -L
c:/sdcc/share/sdcc/lib/small --model-small \
Post by Magnus Johansson
main.c uart.rel clock.rel IDE.rel stack_chk.rel IDE_cmd.rel time.rel
Caught signal 11: SIGSEGV
What happens with:

sdcc --debug -I c:/sdcc/share/sdcc/include -L
c:/sdcc/share/sdcc/lib/small --model-small \
main.c

Bernhard

Continue reading on narkive:
Loading...