iostreams test failure on psim

Till Straumann strauman at slac.stanford.edu
Tue Jun 17 19:03:59 UTC 2008


Weird. It works for me here on psim but I might use a different
4.9 snapshot (and different gcc/newlib patches).

It probably fails creating the __mutex

(e.g., rtems_gxx_mutex_init() panics if semaphore
creation fails -- do you have enough configured?).

T.

Joel Sherrill wrote:
> Hi,
>
> This looks vaguely familiar but I don't find it
> in the rtems mail list archives:
>
> #3  0x0007b478 in ?? ()
> #4  0x000038a0 in get_locale_mutex ()
>     at ../../../../../gcc-4.3.1/libstdc++-v3/src/locale_init.cc:42
> #5  0x00004740 in locale (this=0x7b2ec)
>     at ../../../../../gcc-4.3.1/libstdc++-v3/src/locale_init.cc:215
> #6  0x00001830 in Init (this=<value optimized out>)
>     at 
> /builddir/build/BUILD/rtems-4.9-powerpc-rtems4.9-gcc-4.3.1/build/powerpc-rtems4.9/m603e/libstdc++-v3/include/streambuf:447
> #7  0x00000250 in __static_initialization_and_destruction_0 (
>     __initialize_p=<value optimized out>, __priority=<value optimized out>)
>     at /opt/rtems-4.9/lib/gcc/powerpc-rtems4.9/4.3.1/include/c++/iostream:77
> #8  0x00065a98 in __do_global_ctors_aux ()
> #9  0x00065b10 in _init ()
> #10 0x00055488 in _Thread_Handler ()
>
> I traced but can't tell much except that somewhere below here, it is dying.
> All object create calls are working but I am remembering something was
> broken in this area and we had a patch to gcc.
>
>   __gnu_cxx::__mutex&
>   get_locale_mutex()
>   {
>     static __gnu_cxx::__mutex locale_mutex;
>     return locale_mutex;
>   }
>
>   




More information about the users mailing list