Subject: Re: "parked" processes hell: debug available..
To: None <current-users@netbsd.org>
From: Aleksej Saushev <asau@hotbox.ru>
List: current-users
Date: 09/21/2007 11:18:51
George Michaelson <ggm@apnic.net> writes:

> This parking thing is still there for me. even with -O0 state on
> libpthread.
>
> I have been able to get a back-trace on where its doing the
> parking. Its coming in (in this instance) via citrus/i8n stuff.

I confirm, I get this (from firefox-bin):

Program received signal SIGINT, Interrupt.
0xbaf7d7c7 in _lwp_park () from /usr/lib/libc.so.12
(gdb) bt
#0  0xbaf7d7c7 in _lwp_park () from /usr/lib/libc.so.12
#1  0xbb042272 in pthread__park () from /usr/lib/libpthread.so.0
#2  0xbb03fa00 in pthread_rwlockattr_destroy () from /usr/lib/libpthread.so.0
#3  0xbafc59c4 in _citrus_mapper_open () from /usr/lib/libc.so.12
#4  0xbaecca14 in ?? () from /usr/lib/i18n/libmapper_parallel.so.4.4
#5  0x08064c00 in ?? ()
#6  0x08079dc4 in ?? ()
#7  0xbfbf7f08 in ?? ()
#8  0x08079dc0 in ?? ()
#9  0xbfbf7f28 in ?? ()
#10 0xbfbf7f08 in ?? ()
#11 0xbfbf8308 in ?? ()
#12 0xbb005f08 in _citrus_find_getops () from /usr/lib/libc.so.12
#13 0xbafc5930 in _citrus_mapper_close () from /usr/lib/libc.so.12
#14 0xbafc5bd5 in _citrus_mapper_open () from /usr/lib/libc.so.12
#15 0xbafaaafb in _citrus_csmapper_open () from /usr/lib/libc.so.12
#16 0xbaed5b1d in _citrus_iconv_std_iconv_getops ()
   from /usr/lib/i18n/libiconv_std.so.4.4
#17 0xbafa9e0b in _citrus_iconv_open () from /usr/lib/libc.so.12
#18 0xbaf96276 in iconv_open () from /usr/lib/libc.so.12
#19 0xbbac0509 in nsNativeCharsetConverter::LazyInit ()
   from /usr/pkg/lib/firefox/libxpcom_core.so
#20 0xbbac0947 in nsNativeCharsetConverter::nsNativeCharsetConverter ()
   from /usr/pkg/lib/firefox/libxpcom_core.so
#21 0xbbac0fcb in NS_CopyUnicodeToNative ()
   from /usr/pkg/lib/firefox/libxpcom_core.so
#22 0xbbaca149 in nsLocalFile::Append ()
   from /usr/pkg/lib/firefox/libxpcom_core.so
#23 0xbbab8489 in nsLocalFile::SetRelativeDescriptor ()
   from /usr/pkg/lib/firefox/libxpcom_core.so
#24 0x0805a7c4 in nsToolkitProfileService::Init ()
#25 0x0805ac4e in NS_NewToolkitProfileService ()
#26 0x08053de9 in XRE_main ()
#27 0x0804f8df in main ()

Started by:

env MOZILLA_FIVE_HOME=/usr/pkg/lib/firefox \
LD_LIBRARY_PATH=/usr/pkg/lib/firefox:/usr/pkg/lib:${LD_LIBRARY_PATH} \
gdb /usr/pkg/lib/firefox/firefox-bin

And analogous picture for mplayer.