[kde-solaris] libstdcxx hangs
Adriaan de Groot
groot at kde.org
Wed Aug 29 22:28:06 CEST 2007
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-solaris/attachments/20070829/755ec485/attachment.pgp
More information about the kde-solaris
mailing list