[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iconv+libc question

From: Łukasz Michalski
Subject: iconv+libc question
Date: Tue, 16 Dec 2003 10:35:28 +0100
User-agent: KMail/1.5


I have a problem using iconv and pthreads in static builds.

When new thread is started it crashes in iconv_open. This problem does not 
exists in shared build.

I noticed two more things:

1. When I add line:

wcerr << endl;

at the beginning of thread entry point, then this problem disappears.

2. This problem does not exists when iconv_open() is called in main thread.

Could this be a bug or am I doing something wrong? If it is a bug I could try 
to strip my program to small sample to demonstrate it.

Platform: linux (Slackware 9.0)
iconv -V: iconv (GNU libc) 2.3.1
gcc -v: 
Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/3.2.2/specs
Configured with: ../gcc-3.2.2/configure --prefix=/usr --enable-shared 
--enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld 
--verbose --target=i386-slackware-linux --host=i386-slackware-linux
Thread model: posix
gcc version 3.2.2

Regards and thanks for info,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]