Re: libstdcxx hangs
Adriaan de Groot <[email protected]>
| Newsgroups | gmane.comp.kde.solaris |
|---|---|
| Message-ID | <[email protected]> |
On Wednesday 29 August 2007, Adriaan de Groot wrote:
> I've got something weird going on which I haven't figured out: programs
> using libstdcxx (and std::cout in particular) hang. If _REENTRANT is
> defined,
I switched to running this on nv_64 on an amd64 box (last week's spare -- this
reminds me to keep the Solaris drive around) and find the same behavior, to
some extent. Consider the following program:
# include <iostream>
int main(int argc, char **argv)
{
if (argc!=2)
std::cout << argc << std::endl;
else
std::cout << argv[1] << std::endl;
return 0;
}
Compiling this with
CC -library=no%Cstd
-I/opt/kdesupport/include
-L/opt/kdesupport/lib
-R/opt/kdesupport/lib
-D_REENTRANT -lstdcxx -lCrun t.cc
gives me a program that I can run with
./a.out foo
(prints foo, exits) or with
./a.out
(prints 1, hangs).
(gdb) bt
#0 0xbff28274 in __1cE__rwL__rw_localeN_C_is_managed6kMi_b_ ()
from /opt/kdesupport/lib/libstdcxx.so
#1 0xbff29b3d in __1cDstdGlocale2T6M_v_ ()
from /opt/kdesupport/lib/libstdcxx.so
#2 0x08051d92 in __1cDstdJbasic_ios4Ccn0ALchar_traits4Cc___Fwiden6kMc_c_ ()
#3 0x08051bf1 in
__1cDstdEendl4Ccn0ALchar_traits4Cc___6Frn0ANbasic_ostream3CTACTB___4_ ()
#4 0x08051ab3 in main ()
so there is something delectable going on in the locales stuff. I'm going to
soldier on and start work on a Makefile.kdesupport in CVSDude so people can
start building that, too (aside from the people who already have it up and
running, natch).
--
These are your friends - Adem
GPG: FEA2 A3FE Adriaan de Groot
___________________________________________________
This message is from the kde-solaris mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde-solaris.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
signature.asc
(application/pgp-signature, 187 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBG1dbWdqzuAf6io/4RArSrAKCDouJCC62Uwr73XqUszl+0h+lSmgCgo8z+ 0wUcn4BF2BUvA4qtbq6gWsc= =vtiS -----END PGP SIGNATURE-----