This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

ios_init.cc seg faults


Hi,

with today's 3_1-branch I'm seeing a run time failure of 27_io/ios_init.cc. This
is a backtrace:

#0  0x4c140590 in ?? ()
#1  0x400550dd in ~ios_base (this=0xbffff7a4) at
../../../../gcc-3_1-branch/gcc/libstdc++-v3/src/ios.cc:303
#2  0x4008afbd in ~basic_ios (this=0xbffff7a4) at
/home/paolo/Gcc/cvs-dirs/mainline-build-test/i686-pc-linux-gnu/libstdc++-v3/include/bits/basic_ios.h:137

#3  0x0804bf38 in ~gnu_ios (this=0xbffff7a0) at ios_init.cc:99
#4  0x08049ecb in test02() () at ios_init.cc:99
#5  0x0804a0a8 in main () at ios_init.cc:148
#6  0x40111b5d in __libc_start_main (main=0x804a08e <main>, argc=1,
ubp_av=0xbffff8c4, init=0x8049898 <_init>, fini=0x804dab4 <_fini>,
rtld_fini=0x4000b6c4 <_dl_fini>, stack_end=0xbffff8bc) at
../sysdeps/generic/libc-start.c:129

As you can see it occurs inside test02() recently changed with:

2002-02-26  Benjamin Kosnik  <bkoz@redhat.com>

        * include/bits/basic_ios.tcc (basic_ios::init): Set _M_fill to zero.
        Adjust comment.
        * include/bits/basic_ios.h (basic_ios::_M_fill): Make mutable.
        (basic_ios::_M_fill_init): New.
        (basic_ios::fill()): Delay dealing with _M_fill.
        Adjust comment.
        * testsuite/27_io/ios_init.cc (test02): Adjust testcase.

On the other hand, 3.2 20020227 can compile and run succesfully the testcase.

Honestly, I have *not* bootstrapped today's 3_1, just built it. It will take
some time to check this. Please accept my excuses if the problem turns out to be
due to a code generation bug caused by my "short cut"...

Ciao,
Paolo.



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