#1943 SIGSEGV when compiling i2cwritec.c on Solaris sparc

closed-fixed
7
2013-05-25
2012-02-19
No

Sdcc dies with SIGSEGV when compiling device/lib/pic16/libio/i2c/i2cwritec.c on Solaris sparc snapshot build machine:

$ '/home/sdcc-builder/build/sdcc-build/sparc-sun-solaris.build/sdcc/device/lib/pic16//../../../bin/sdcc' -V -DHAVE_CONFIG_H -I. -I/home/sdcc-builder/build/sdcc-build/orig/sdcc/device/lib/pic16/libio -I.. -I. -I/home/sdcc-builder/build/sdcc-build/orig/sdcc/device/lib/pic16/../../include/pic16 -I/home/sdcc-builder/build/sdcc-build/orig/sdcc/device/lib/pic16/../../non-free/include/pic16 -p18f13k50 --std-c99 --asm="'/home/sdcc-builder/local-dev/bin/gpasm'" --fomit-frame-pointer --obanksel=9 --denable-peeps --optimize-cmp --optimize-df --i-code-in-asm -DUSE_FLOATS=0 -mpic16 -p18f452 -c -o libio18f13k50_a-i2cwritec.o `test -f 'i2c/i2cwritec.c' || echo '/home/sdcc-builder/build/sdcc-build/orig/sdcc/device/lib/pic16/libio/'`i2c/i2cwritec.c
+ "/home/sdcc-builder/build/sdcc-build/sparc-sun-solaris.build/sdcc/device/lib/pic16//../../../bin/sdcpp" -nostdinc -Wall -std=c99 -DHAVE_CONFIG_H -I. -I/home/sdcc-builder/build/sdcc-build/orig/sdcc/device/lib/pic16/libio -I.. -I. -I/home/sdcc-builder/build/sdcc-build/orig/sdcc/device/lib/pic16/../../include/pic16 -I/home/sdcc-builder/build/sdcc-build/orig/sdcc/device/lib/pic16/../../non-free/include/pic16 -DUSE_FLOATS=0 -Dpic18f13k50 -D__18f13k50 -DSTACK_MODEL_SMALL -obj-ext=.o -DSDCC=312 -DSDCC_REVISION=7327 -DSDCC_pic16 -D__pic16 -isystem "/home/sdcc-builder/build/sdcc-build/sparc-sun-solaris.build/sdcc/device/lib/pic16//../../../bin/../share/sdcc/include/pic16" -isystem "/usr/local/share/sdcc/include/pic16" -isystem "/home/sdcc-builder/build/sdcc-build/sparc-sun-solaris.build/sdcc/device/lib/pic16//../../../bin/../share/sdcc/include" -isystem "/usr/local/share/sdcc/include" "/home/sdcc-builder/build/sdcc-build/orig/sdcc/device/lib/pic16/libio/i2c/i2cwritec.c" Caught signal 11: SIGSEGV

gdb output:

$ gdb --args '/home/sdcc-builder/build/sdcc-build/sparc-sun-solaris.build/sdcc/device/lib/pic16//../../../bin/sdcc' -DHAVE_CONFIG_H -I. -I/home/sdcc-builder/build/sdcc-build/orig/sdcc/device/lib/pic16/libio -I.. -I. -I/home/sdcc-builder/build/sdcc-build/orig/sdcc/device/lib/pic16/../../include/pic16 -I/home/sdcc-builder/build/sdcc-build/orig/sdcc/device/lib/pic16/../../non-free/include/pic16 -p18f13k50 --std-c99 --asm="'/home/sdcc-builder/local-dev/bin/gpasm'" --fomit-frame-pointer --obanksel=9 --denable-peeps --optimize-cmp --optimize-df --i-code-in-asm -DUSE_FLOATS=0 -mpic16 -p18f452 -c -o libio18f13k50_a-i2cwritec.o `test -f 'i2c/i2cwritec.c' || echo '/home/sdcc-builder/build/sdcc-build/orig/sdcc/device/lib/pic16/libio/'`i2c/i2cwritec.c
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.10"...
(gdb) run
Starting program: /home/sdcc-builder/build/sdcc-build/sparc-sun-solaris.build/sdcc/bin/sdcc -DHAVE_CONFIG_H -I. -I/home/sdcc-builder/build/sdcc-build/orig/sdcc/device/lib/pic16/libio -I.. -I. -I/home/sdcc-builder/build/sdcc-build/orig/sdcc/device/lib/pic16/../../include/pic16 -I/home/sdcc-builder/build/sdcc-build/orig/sdcc/device/lib/pic16/../../non-free/include/pic16 -p18f13k50 --std-c99 --asm=\'/home/sdcc-builder/local-dev/bin/gpasm\' --fomit-frame-pointer --obanksel=9 --denable-peeps --optimize-cmp --optimize-df --i-code-in-asm -DUSE_FLOATS=0 -mpic16 -p18f452 -c -o libio18f13k50_a-i2cwritec.o /home/sdcc-builder/build/sdcc-build/orig/sdcc/device/lib/pic16/libio/i2c/i2cwritec.c

Program received signal SIGSEGV, Segmentation fault.
buildLabelRefTable (ic=<value optimized out>) at /home/sdcc-builder/build/sdcc-build/orig/sdcc/src/SDCClabel.c:63
63 hTabAddItem (&labelRef, (IC_FALSE (lic))->key, lic);
(gdb)

I increased the priority since this bug prevents the snapshot builds on Solaris sparc architecture.

Borut

Discussion

  • Erik Petrich

    Erik Petrich - 2012-02-23

    I have my Sun Ultra 10 finally set up again and am starting to look into this.

     
  • Erik Petrich

    Erik Petrich - 2012-02-23
    • assigned_to: nobody --> epetrich
     
  • Erik Petrich

    Erik Petrich - 2012-02-24
    • labels: 608414 --> C-Front End
    • milestone: --> fixed
    • status: open --> closed-fixed
     
  • Erik Petrich

    Erik Petrich - 2012-02-24

    fixed in revision #7348

     

Log in to post a comment.