This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

segfault in find_insn_list, gcc/gcc/sched-deps.c:121


segfault in find_insn_list, gcc/gcc/sched-deps.c:121

It doesn't always repro, but usually does.

building gcc
hosted on cygwin nt4
building cygwin nt4 hosted, macosx targeting gcc
building with self built cygwin nt4

$ uname -a
CYGWIN_NT-4.0 JAYK3 1.3.17(0.67/3/2) 2002-11-27 18:54 i686 unknown

$ gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3/specs
Configured with: ../gcc/configure --prefix=/usr
Thread model: single
gcc version 3.3 20021205 (experimental)


Program received signal SIGSEGV, Segmentation fault.
find_insn_list (insn=0x2087060, list=0xa5a5a5a5)
    at ../../gcc/gcc/sched-deps.c:121
121           if (XEXP (list, 0) == insn)

/usr/lib/gcc-lib/i686-pc-cygwin/3.3/cc1.exe -quiet -v -I. -I. -I/cvs/gcc/gcc
 -I/cvs/gcc/gcc/. -I/cvs/gcc/gcc/config -I/cvs/gcc/gcc/../include -D__GNUC__
=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 -D__CYGWIN32__ -D__CYGWIN__ -D
unix -D__unix__ -D__unix -isystem /usr/local/include -idirafter
/usr/i686-pc-cygwin/include -idirafter /usr/include -idirafter
/usr/i686-pc-cygwin/include/w32api -idirafter
/usr/include/w32api -DIN_GCC -DCROSS_COMPILE -DHAVE_CONFIG_H
/cvs/gcc/gcc/expr.c -quiet -dumpbase expr.c -auxbase-strip
expr.o -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototy
pes -Wtraditional -pedantic -Wno-long-long -version -fno-common -o
/cygdrive/e/temp/ccjVnmem.s

(gdb) bt
#0  find_insn_list (insn=0x2087060, list=0xa5a5a5a5)
    at ../../gcc/gcc/sched-deps.c:121
#1  0x00728d16 in compute_forward_dependences (head=0x2087030,
tail=0x1f21cf0)
    at ../../gcc/gcc/sched-deps.c:1469
#2  0x006065d2 in schedule_region (rgn=0) at ../../gcc/gcc/sched-rgn.c:2730
#3  0x00607189 in schedule_insns (dump_file=0x0)
    at ../../gcc/gcc/sched-rgn.c:2998
#4  0x00488b2b in rest_of_compilation (decl=0x1625e00)
    at ../../gcc/gcc/toplev.c:3453
#5  0x0042c3d7 in c_expand_body (fndecl=0x1625e00, nested_p=0,
can_defer_p=1)
    at ../../gcc/gcc/c-decl.c:6525
#6  0x0042bec7 in finish_function (nested=0, can_defer_p=1)
    at ../../gcc/gcc/c-decl.c:6396
#7  0x0040a0e6 in yyparse () at c-parse.y:403
#8  0x00417bb9 in c_common_parse_file (set_yydebug=0)
    at ../../gcc/gcc/c-lex.c:159
#9  0x0048726d in compile_file () at ../../gcc/gcc/toplev.c:2126
#10 0x0048dd15 in do_compile () at ../../gcc/gcc/toplev.c:5355
#11 0x0048ddd5 in toplev_main (argc=50, argv=0x10021850)
    at ../../gcc/gcc/toplev.c:5385
#12 0x0047c947 in main (argc=50, argv=0x10021850) at ../../gcc/gcc/main.c:35
#13 0x610072e8 in _libkernel32_a_iname ()
#14 0x610075cd in _libkernel32_a_iname ()
#15 0x0073b932 in cygwin_crt0 ()
#16 0x0040103c in mainCRTStartup ()
#17 0x77f1bbb5 in ?? ()

(gdb) print *list
$3 = {code = UNKNOWN, mode = VOIDmode, jump = 0, call = 0, unchanging = 0,
  volatil = 0, in_struct = 0, used = 0, integrated = 0, frame_related = 0,
  fld = {{rtwint = 172302088, rtint = 172302088, rtuint = 172302088,
      rtstr = 0xa451f08 <Address 0xa451f08 out of bounds>, rtx = 0xa451f08,
      rtvec = 0xa451f08, rttype = 172302088, rt_addr_diff_vec_flags = {
        min_align = 8, base_after_vec = 1, min_after_vec = 1,
        max_after_vec = 1, min_after_base = 1, max_after_base = 1,
        offset_unsigned = 0, 0, scale = 69}, rt_cselib = 0xa451f08,
      rtbit = 0xa451f08, rttree = 0xa451f08, bb = 0xa451f08,
      rtmem = 0xa451f08}}}
(gdb) print *insn
$4 = {code = INSN, mode = VOIDmode, jump = 0, call = 0, unchanging = 0,
  volatil = 0, in_struct = 0, used = 0, integrated = 0, frame_related = 1,
  fld = {{rtwint = 27394, rtint = 27394, rtuint = 27394,
      rtstr = 0x6b02 <Address 0x6b02 out of bounds>, rtx = 0x6b02,
      rtvec = 0x6b02, rttype = 27394, rt_addr_diff_vec_flags = {min_align =
2,
        base_after_vec = 1, min_after_vec = 1, max_after_vec = 0,
        min_after_base = 1, max_after_base = 0, offset_unsigned = 1, 1,
        scale = 0}, rt_cselib = 0x6b02, rtbit = 0x6b02, rttree = 0x6b02,
      bb = 0x6b02, rtmem = 0x6b02}}}

Can I easily make like a "dump"? I'm on a slow connection.

For what I am building:

$ more config.status
#!/bin/sh
# This file was generated automatically by configure.  Do not edit.
# This directory was configured as follows:
/cvs/gcc/configure --with-gcc-version-trigger=/cvs/gcc/gcc/version.c --host=
i686
-pc-cygwin --target=powerpc-apple-darwin --prefix=/usr --norecursion
# using "mh-frag"

config that I used to build the gcc that is running not available (though
I'm rebuilding it with itself and will have that config if it repros; not
sure what happened to doing make bootstrap..)

The machine has been very stable for years, though Explorer just AVed, very
unusual.

 - Jay


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]