[Bug middle-end/35808] New: In function 'inflateBack': ../../gcc/zlib/infback.c:612: internal compiler error: Segmentation fault

danglin at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Apr 2 23:40:00 GMT 2008


/home/dave/gnu/gcc/objdir/./prev-gcc/xgcc
-B/home/dave/gnu/gcc/objdir/./prev-gcc
/ -B/home/dave/opt/gnu/gcc/gcc-4.4.0/hppa-linux/bin/ -DPACKAGE_NAME=\"\"
-DPACKA
GE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
-DPACKAGE_BUGREPORT
=\"\" -DPACKAGE=\"zlib\" -DVERSION=\"1.1.4\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H
=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DH
AVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_D
LFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1
-DHAVE_GETPA
GESIZE=1 -DHAVE_MMAP=1 -DHAVE_MEMCPY=1 -DHAVE_STRERROR=1 -DHAVE_UNISTD_H=1  -I. 
-I../../gcc/zlib     -g -O2 -c -o libz_a-infback.o `test -f 'infback.c' || echo 
'../../gcc/zlib/'`infback.c
../../gcc/zlib/infback.c: In function 'inflateBack':
../../gcc/zlib/infback.c:612: internal compiler error: Segmentation fault

(gdb) r
Starting program: /home/dave/gnu/gcc-4.4/objdir/prev-gcc/cc1 -I.
-I../../gcc/zlib -iprefix
/home/dave/gnu/gcc-4.4/objdir/prev-gcc/../lib/gcc/hppa-linux/4.4.0/ -isystem
/home/dave/gnu/gcc-4.4/objdir/./prev-gcc/include -isystem
/home/dave/gnu/gcc-4.4/objdir/./prev-gcc/include-fixed -DPACKAGE_NAME=""
-DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING=""
-DPACKAGE_BUGREPORT="" -DPACKAGE="zlib" -DVERSION="1.1.4" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_STDLIB_H=1
-DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_MEMCPY=1
-DHAVE_STRERROR=1 -DHAVE_UNISTD_H=1 ../../gcc/zlib/infback.c -dumpbase
infback.c -auxbase-strip libz_a-infback.o -g -O2 -version -o xxx.s
GNU C (GCC) version 4.4.0 20080402 (experimental) [trunk revision 133849]
(hppa-linux)
        compiled by GNU C version 4.1.1, GMP version 4.2.2, MPFR version 2.3.1.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
options passed:  -I. -I../../gcc/zlib -iprefix
 /home/dave/gnu/gcc-4.4/objdir/prev-gcc/../lib/gcc/hppa-linux/4.4.0/
 -isystem /home/dave/gnu/gcc-4.4/objdir/./prev-gcc/include -isystem
 /home/dave/gnu/gcc-4.4/objdir/./prev-gcc/include-fixed -DPACKAGE_NAME=
 -DPACKAGE_TARNAME= -DPACKAGE_VERSION= -DPACKAGE_STRING=
 -DPACKAGE_BUGREPORT= -DPACKAGE=zlib -DVERSION=1.1.4 -DSTDC_HEADERS=1
 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=.libs/
 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1
 -DHAVE_MEMCPY=1 -DHAVE_STRERROR=1 -DHAVE_UNISTD_H=1
 ../../gcc/zlib/infback.c -auxbase-strip libz_a-infback.o -g -O2
options enabled:  -falign-functions -falign-jumps -falign-labels
 -fargument-alias -fauto-inc-dec -fbranch-count-reg -fcaller-saves -fcommon
 -fcprop-registers -fcrossjumping -fcse-follow-jumps -fdefer-pop
 -fdelayed-branch -fdelete-null-pointer-checks -fearly-inlining
 -feliminate-unused-debug-types -fexpensive-optimizations
 -fforward-propagate -ffunction-cse -fgcse -fgcse-lm
 -fguess-branch-probability -fident -fif-conversion -fif-conversion2
 -finline-functions-called-once -finline-small-functions -fipa-pure-const
 -fipa-reference -fivopts -fkeep-static-consts -fleading-underscore
 -fmath-errno -fmerge-constants -fmerge-debug-strings
 -fmove-loop-invariants -fomit-frame-pointer -foptimize-register-move
 -foptimize-sibling-calls -fpeephole -fpeephole2 -freg-struct-return
 -fregmove -freorder-blocks -freorder-functions -frerun-cse-after-loop
 -fsched-interblock -fsched-spec -fsched-stalled-insns-dep -fschedule-insns
 -fschedule-insns2 -fsigned-zeros -fsplit-ivs-in-unroller
 -fsplit-wide-types -fstrict-aliasing -fstrict-overflow -fthread-jumps
 -ftoplevel-reorder -ftrapping-math -ftree-ccp -ftree-ch -ftree-copy-prop
 -ftree-copyrename -ftree-cselim -ftree-dce -ftree-dominator-opts
 -ftree-dse -ftree-fre -ftree-loop-im -ftree-loop-ivcanon
 -ftree-loop-optimize -ftree-parallelize-loops= -ftree-pre -ftree-reassoc
 -ftree-salias -ftree-scev-cprop -ftree-sink -ftree-sra -ftree-store-ccp
 -ftree-ter -ftree-vect-loop-version -ftree-vrp -funit-at-a-time
 -fvar-tracking -fzero-initialized-in-bss -mbig-switch -mgas -mglibc
 -mno-space-regs
Compiler executable checksum: 3c5287d1a0783206676a1bdc69e55e6b
 __strcspn_c1 __strcspn_c2 __strcspn_c3 __strspn_c1 __strspn_c2 __strspn_c3
__strpbrk_c2 __strpbrk_c3 __strtok_r_1c __strsep_1c __strsep_2c __strsep_3c
atof atoi atol atoll gnu_dev_major gnu_dev_minor gnu_dev_makedev
inflateBackInit_ fixedtables inflateBack inflateBackEnd
Analyzing compilation unit
Performing interprocedural optimizations
 <visibility> <early_local_cleanups> <inline> <static-var>
<pure-const>Assembling functions:
 inflateBackInit_ inflateBackEnd inflateBack
Program received signal SIGSEGV, Segmentation fault.
0x00497818 in mark_jump_label_1 (x=0x40644940, insn=0x40635e88, in_mem=0 '\0', 
    is_target=1 '\001') at ../../gcc/gcc/jump.c:1039
1039            if (NOTE_P (label)
(gdb) bt
#0  0x00497818 in mark_jump_label_1 (x=0x40644940, insn=0x40635e88, 
    in_mem=0 '\0', is_target=1 '\001') at ../../gcc/gcc/jump.c:1039
#1  0x004977dc in mark_jump_label_1 (x=0x40644950, insn=0x40635e88, 
    in_mem=0 '\0', is_target=1 '\001') at ../../gcc/gcc/jump.c:1029
#2  0x00497c2c in mark_jump_label_1 (x=0x40644950, insn=0x40635e88, 
    in_mem=0 '\0', is_target=0 '\0') at ../../gcc/gcc/jump.c:1104
#3  0x00497530 in mark_jump_label (x=0x40299fc0, insn=0x1, in_mem=0)
    at ../../gcc/gcc/jump.c:976
#4  0x00495738 in mark_all_labels (f=0x40299fc0) at ../../gcc/gcc/jump.c:196
#5  0x0049540c in rebuild_jump_labels (f=0x65) at ../../gcc/gcc/jump.c:86
#6  0x00ae59a4 in tree_expand_cfg () at ../../gcc/gcc/cfgexpand.c:1923
#7  0x005135b0 in execute_one_pass (pass=0xd3595c)
    at ../../gcc/gcc/passes.c:1127
#8  0x0051380c in execute_pass_list (pass=0x40129230)
    at ../../gcc/gcc/passes.c:1180
#9  0x006f31b4 in tree_rest_of_compilation (fndecl=0x4018b380)
    at ../../gcc/gcc/tree-optimize.c:420
#10 0x00a03c50 in cgraph_expand_function (node=0x4)
    at ../../gcc/gcc/cgraphunit.c:1157
#11 0x00a03ee8 in cgraph_expand_all_functions ()
    at ../../gcc/gcc/cgraphunit.c:1220
#12 0x00a047e8 in cgraph_optimize () at ../../gcc/gcc/cgraphunit.c:1427
#13 0x00056cec in c_write_global_declarations () at ../../gcc/gcc/c-decl.c:8065
---Type <return> to continue, or q <return> to quit---
#14 0x0062a5c4 in compile_file () at ../../gcc/gcc/toplev.c:971
#15 0x0062d4f4 in do_compile () at ../../gcc/gcc/toplev.c:2162
#16 0x0062d5a0 in toplev_main (argc=45, argv=0xfb68697c)
    at ../../gcc/gcc/toplev.c:2194
#17 0x0013b514 in main (argc=1074005822, argv=0x40040756)
    at ../../gcc/gcc/main.c:35
(gdb) p debug_rtx (insn)
(jump_insn 206 205 207 18 ../../gcc/zlib/infback.c:293 (set (pc)
        (if_then_else (gtu (reg:SI 327)
                (const_int 3 [0x3]))
            (label_ref 0)
            (pc))) -1 (nil))

(gdb) p debug_rtx (x)
(if_then_else (gtu (reg:SI 327)
        (const_int 3 [0x3]))
    (label_ref 0)
    (pc))

(gdb) p label
$3 = (rtx) 0x402429b0
(gdb) p debug_rtx (label)
(code_label 1475 1474 1476 178 31 "" [2 uses])

(gdb) disass 0x497808 0x497828
Dump of assembler code from 0x497808 to 0x497828:
0x00497808 <mark_jump_label_1+712>:     ldw -24(r3),ret0
0x0049780c <mark_jump_label_1+716>:     ldw 4(ret0),ret0
0x00497810 <mark_jump_label_1+720>:     stw ret0,20(r3)
0x00497814 <mark_jump_label_1+724>:     ldw 20(r3),ret0
0x00497818 <mark_jump_label_1+728>:     ldh 0(ret0),ret0
0x0049781c <mark_jump_label_1+732>:     extrw,u ret0,31,16,ret0
0x00497820 <mark_jump_label_1+736>:     cmpib,<>,n a,ret0,0x497830
<mark_jump_label_1+752>
0x00497824 <mark_jump_label_1+740>:     ldw 20(r3),ret0
End of assembler dump.
(gdb) p/x $ret0
$6 = 0x0


-- 
           Summary: In function 'inflateBack': ../../gcc/zlib/infback.c:612:
                    internal compiler error: Segmentation fault
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
 GCC build triplet: hppa-unknown-linux-gnu
  GCC host triplet: hppa-unknown-linux-gnu
GCC target triplet: hppa-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35808



More information about the Gcc-bugs mailing list