firefox crash - because of pthread_attr_setdetachstate

Bernhard Froehlich decke at FreeBSD.org
Fri Apr 22 08:09:08 UTC 2011


On Fri, 22 Apr 2011 11:12:48 +0400, Илья Ермолин wrote:
> As I can see from settings PGO allready disabled

Yeah, sorry have seen it too late.

>From the stacktrace it looks like it's somewhere in the gnome area and
someone with more knowledge about glib or pthread should check that
line:

GThread-ERROR **: file gthread-posix.c: line 340
(g_thread_create_posix_impl): error 'Invalid Argument' during
'pthread_attr_setdetachstate (&attr, joinable ? PTHREAD_CREATE_JOINABLE
: PTHREAD_CREATE_DETACHED)'


I've cc'd ports@ because there are a few more clever people. :o)

-- 
Bernhard Froehlich
http://www.bluelife.at/


> 2011/4/22 Bernhard Froehlich 
> 
>> On Fri, 22 Apr 2011 10:35:58 +0400, Илья Ермолин wrote:
>> > Hi,
>> > I have firefox4 builded from ports, but its crashes with strange
>> back
>> > trace...
>> >
>> > [cgi at free-cgi ~]$ firefox -g
>> > /usr/local/lib/firefox/run-mozilla.sh -g
>> /usr/local/lib/firefox/firefox-bin
>> > MOZILLA_FIVE_HOME=/usr/local/lib/firefox
>> >
>> >
>>
> LD_LIBRARY_PATH=/usr/local/lib/firefox:/usr/local/lib/firefox/plugins:/usr/local/lib/firefox
>> > DISPLAY=:0.0
>> > DYLD_LIBRARY_PATH=/usr/local/lib/firefox:/usr/local/lib/firefox
>> >
>> >
>>
> LIBRARY_PATH=/usr/local/lib/firefox:/usr/local/lib/firefox/components:/usr/local/lib/firefox
>> >      
>>  SHLIB_PATH=/usr/local/lib/firefox:/usr/local/lib/firefox
>> >          
>> LIBPATH=/usr/local/lib/firefox:/usr/local/lib/firefox
>> >        ADDON_PATH=/usr/local/lib/firefox
>> >       MOZ_PROGRAM=/usr/local/lib/firefox/firefox-bin
>> >       MOZ_TOOLKIT=
>> >         moz_debug=1
>> >      moz_debugger=
>> > moz_debugger_args=
>> > ddd: not found
>> > /usr/bin/gdb  --args /usr/local/lib/firefox/firefox-bin
>> > GNU gdb 6.1.1 [FreeBSD]
>> > Copyright 2004 Free Software Foundation, Inc.
>> > GDB is free software, covered by the GNU General Public License,
>> and you are
>> > welcome to change it and/or distribute copies of it under certain
>> > conditions.
>> > Type "show copying" to see the conditions.
>> > There is absolutely no warranty for GDB.  Type "show warranty"
>> for details.
>> > This GDB was configured as "amd64-marcel-freebsd"...
>> > (gdb) r
>> > Starting program: /usr/local/lib/firefox/firefox-bin
>> > [New LWP 100307]
>> > [New Thread 809c041c0 (LWP 100307)]
>> >
>> > GThread-ERROR **: file gthread-posix.c: line 340
>> > (g_thread_create_posix_impl): error Недопустимый
>> аргумент during
>> > pthread_attr_setdetachstate (&attr, joinable ?
>> PTHREAD_CREATE_JOINABLE :
>> > PTHREAD_CREATE_DETACHED)
>> > aborting...
>> >>>>> Недопустимый аргумент - is Invalid
>> Argument in translation from
>> > Russian
>> >
>> > (gdb) bt
>> > #0  0x00000008063c6fcc in kill () from /lib/libc.so.7
>> > #1  0x00000008063c5dcb in abort () from /lib/libc.so.7
>> > #2  0x00000008057ccc05 in g_logv () from
>> /usr/local/lib/libglib-2.0.so.0
>> > #3  0x00000008057cced3 in g_log () from
>> /usr/local/lib/libglib-2.0.so.0
>> > #4  0x000000080567c184 in g_thread_create_posix_impl ()
>> >    from /usr/local/lib/libgthread-2.0.so.0
>> > #5  0x00000008057ea060 in g_thread_create_full ()
>> >    from /usr/local/lib/libglib-2.0.so.0
>> > #6  0x0000000804f897e5 in g_dbus_proxy_get_cached_property_names
>> ()
>> >    from /usr/local/lib/libgio-2.0.so.0
>> > #7  0x0000000804f7b37c in g_dbus_connection_get_stream ()
>> >    from /usr/local/lib/libgio-2.0.so.0
>> > #8  0x0000000804f775f7 in g_bus_get_sync () from
>> > /usr/local/lib/libgio-2.0.so.0
>> > #9  0x000000080bb4acbd in gconf_get_server ()
>> >    from /usr/local/lib/libgconf-2.so.4
>> > #10 0x000000080bb4af45 in gconf_activate_server ()
>> >    from /usr/local/lib/libgconf-2.so.4
>> > #11 0x000000080bb57924 in gconf_get_config_server ()
>> >    from /usr/local/lib/libgconf-2.so.4
>> > #12 0x000000080bb58434 in gconf_engine_connect ()
>> >    from /usr/local/lib/libgconf-2.so.4
>> > #13 0x000000080bb58639 in gconf_engine_get_database ()
>> >    from /usr/local/lib/libgconf-2.so.4
>> > ---Type to continue, or q to quit---
>> > #14 0x000000080bb58d37 in gconf_engine_notify_add ()
>> >    from /usr/local/lib/libgconf-2.so.4
>> > #15 0x000000080bb60bea in gconf_client_add_dir ()
>> >    from /usr/local/lib/libgconf-2.so.4
>> > #16 0x0000000809e578c2 in gnome_gtk_module_info_get ()
>> >    from /usr/local/lib/libgnomeui-2.so.0
>> > #17 0x000000080a352b03 in gnome_program_postinit ()
>> >    from /usr/local/lib/libgnome-2.so.0
>> > #18 0x000000080a352ea3 in gnome_program_postinit ()
>> >    from /usr/local/lib/libgnome-2.so.0
>> > #19 0x000000080a3530fd in gnome_program_initv ()
>> >    from /usr/local/lib/libgnome-2.so.0
>> > #20 0x000000080a3531f4 in gnome_program_init ()
>> >    from /usr/local/lib/libgnome-2.so.0
>> > #21 0x0000000800bfca76 in nsNativeAppSupportUnix::Start
>> (this=Variable
>> > "this" is not available.
>> > )
>> >     at nsNativeAppSupportUnix.cpp:533
>> > #22 0x0000000800beef3f in XRE_main (argc=Variable "argc" is not
>> available.
>> > ) at nsAppRunner.cpp:3364
>> > #23 0x0000000000401416 in main (argc=1, argv=0x7fffffffe240)
>> >     at nsBrowserApp.cpp:158
>> >
>> > Some additiional info:
>> > [cgi at free-cgi ~]$ uname -a
>> > FreeBSD free-cgi.neoflex.ru [1] 8.2-RELEASE FreeBSD 8.2-RELEASE
>> #3: Sun Mar  6
>> > 13:40:59 MSK 2011
>> > root at free-cgi.neoflex.ru:/usr/obj/usr/src/sys/FREE-SL510-01
>> > amd64
>> >
>> > In this test I dont use any x11-wm, but just before starting
>> firefox I run
>> > this commands:
>> > [cgi at free-cgi ~]$ Xorg &
>> > [cgi at free-cgi ~]$ export DISPLAY=:0.0
>> >
>> > Options for firefox build:
>> >
>> > [cgi at free-cgi /var/db/ports/firefox]$ cat options
>> > # This file is auto-generated by make config.
>> > # No user-servicable parts inside!
>> > # Options for firefox-4.0_1,1
>> > _OPTIONS_READ=firefox-4.0_1,1
>> > WITHOUT_DBUS=true
>> > WITHOUT_PGO=true
>> > WITH_SMB=true
>> > WITH_DEBUG=true
>> > WITHOUT_LOGGING=true
>> > WITHOUT_OPTIMIZED_CFLAGS=true
>> >
>> > pkg_info output attached...
>>
>> Please try disabling PGO.
>>
>> --
>> Bernhard Fröhlich
>> http://www.bluelife.at/ [2]



More information about the freebsd-ports mailing list