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]

[Bug c/46902] [4.6 Regression] gcc.dg/plugin/plugindir*.c gives ICEs on powerpc-apple-darwin9


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

--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2010-12-13 19:02:59 UTC ---
GDB session:

(gdb) watch -location global_options.x_plugindir_string
Hardware watchpoint 1: *(const char **) 12424292
(gdb) run -fplugin=foo
/opt/gcc/gcc-4.6-work/gcc/testsuite/gcc.dg/plugin/plugindir4.c
Starting program: /opt/gcc/gcc4.6w/libexec/gcc/powerpc-apple-darwin9/4.6.0/cc1
-fplugin=foo /opt/gcc/gcc-4.6-work/gcc/testsuite/gcc.dg/plugin/plugindir4.c
Reading symbols for shared libraries +++++++++++warning: Could not find object
file "/sw/src/fink.build/libiconv-1.12-4/libiconv-1.12/lib/.libs/iconv.o" - no
debug information available for "./iconv.c".

warning: Could not find object file
"/sw/src/fink.build/libiconv-1.12-4/libiconv-1.12/lib/.libs/localcharset.o" -
no debug information available for "./../libcharset/lib/localcharset.c".

warning: Could not find object file
"/sw/src/fink.build/libiconv-1.12-4/libiconv-1.12/lib/.libs/relocatable.o" - no
debug information available for "./relocatable.c".

.......... done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xfffffffc
0x94afe928 in strlen ()
(gdb) bt
#0  0x94afe928 in strlen ()
#1  0x008b6414 in concat (first=0xffffffff <Address 0xffffffff out of bounds>)
at ../../gcc-4.6-work/libiberty/concat.c:76
#2  0x0051e624 in add_new_plugin (plugin_name=0xbfffdac2 "foo") at
../../gcc-4.6-work/gcc/plugin.c:157
#3  0x0051584c in handle_common_deferred_options () at
../../gcc-4.6-work/gcc/opts-global.c:385
#4  0x005e3808 in toplev_main (argc=3, argv=0xffffffff) at
../../gcc-4.6-work/gcc/toplev.c:1923
#5  0x000024f4 in start ()
(gdb) watch global_options.x_plugindir_string
Hardware watchpoint 2: global_options.x_plugindir_string
(gdb) run -fplugin=foo
/opt/gcc/gcc-4.6-work/gcc/testsuite/gcc.dg/plugin/plugindir4.c
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /opt/gcc/gcc4.6w/libexec/gcc/powerpc-apple-darwin9/4.6.0/cc1
-fplugin=foo /opt/gcc/gcc-4.6-work/gcc/testsuite/gcc.dg/plugin/plugindir4.c

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xfffffffc
0x94afe928 in strlen ()


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