Java broken after i386 PIC change

Phil Edwards pedwards@disaster.jaj.com
Tue Jan 23 09:21:00 GMT 2001


[cc list trimmed]

On Mon, Jan 22, 2001 at 02:54:57PM -0800, Richard Henderson wrote:
> 
> You're saying the patch to *turn off* linkonce widgetry
> is breaking things?!?  I disbelieve.

Fair enough.  :-)

I don't know what to tell you, Richard... With the CVS sources as of about
twenty minutes ago (both gcc and binutils), stuff involving libstdc++ dies
on exit (simple test results appended below).  Changing config/i386/i386.c
from revision 207 to 206 -- backing out that patch -- and rebuilding gives
me a working environment; again, I tested this just now.

What other information can I provide to help figure this out?


Phil

-- 
pedwards at disaster dot jaj dot com  |  pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools.  Fools are protected by more capable fools.


8% /installdir-2001-01-23-i686/bin/g++ ~/src/hw.cc
9% ./a.out
Hello, World!
Segmentation fault (core dumped)
10% gdb -nw ./a.out core
Core was generated by `./a.out'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /installdir-2001-01-23-i686/lib/libstdc++.so.3...done.
Loaded symbols for /installdir-2001-01-23-i686/lib/libstdc++.so.3
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0  0x2aac71ca in _dl_pagesize ()
   from /installdir-2001-01-23-i686/lib/libstdc++.so.3
(gdb) bt
#0  0x2aac71ca in _dl_pagesize ()
   from /installdir-2001-01-23-i686/lib/libstdc++.so.3
#1  0x0804002b in ?? ()
#2  0x2ab2a65d in std::basic_filebuf<char, std::char_traits<char> >::close() (
    this=0x8049f30) at fstream.tcc:144
#3  0x2ab2a43d in std::basic_filebuf<char, std::char_traits<char> >::~basic_filebuf() (this=0x8049f30) at std_fstream.h:96
#4  0x2ab04aa4 in std::ios_base::Init::~Init() (this=0x2ab539d8)
    at ../../../../../src/unified/libstdc++-v3/src/ios.cc:180
#5  0x2ab04101 in std::_Base_bitset<1>::_M_do_find_next(unsigned, unsigned) const (this=0x8040730, __prev=65535, __not_found=2147481368)
    at ../../../../../src/unified/libstdc++-v3/src/bitset.cc:61
#6  0x2ab04145 in std::_Base_bitset<1>::_M_do_find_next(unsigned, unsigned) const (this=0x8040730, __prev=716512244, __not_found=2147481384)
    at ../../../../../src/unified/libstdc++-v3/src/bitset.cc:73
#7  0x2ab037c4 in _init ()
   from /installdir-2001-01-23-i686/lib/libstdc++.so.3
#8  0x2ab3bb7d in __cxxabiv1::__pbase_type_info::__pointer_catch(__cxxabiv1::__pbase_type_info const*, void**, unsigned) const (this=0x8049f30,
    thrown_type=0x8040730, thr_obj=0x2aac2a98, outer=715926640)
    at tinfo2.cc:185
#9  0x2aab94b2 in _dl_fini () at dl-fini.c:170
#10 0x2abb5ab3 in exit (status=0) at exit.c:57
#11 0x2aba1fda in __libc_start_main (main=0x8048890 <main>, argc=1,
    ubp_av=0x7ffff804, init=0x80486a4 <_init>, fini=0x8048a20 <_fini>,
    rtld_fini=0x2aab9254 <_dl_fini>, stack_end=0x7ffff7fc)
    at ../sysdeps/generic/libc-start.c:118
(gdb) quit



More information about the Gcc-patches mailing list