Wireshark mailing list archives

Re: Wireshark 1.6.3 won't run without threads support


From: Gerald Combs <gerald () wireshark org>
Date: Thu, 03 Nov 2011 14:46:53 -0700

On 11/3/11 8:33 AM, Stig Bjørlykke wrote:
Hi.

I get an error when trying to start wireshark 1.6.3 (default built
without threads):
GLib-ERROR **: The thread system is not yet initialized.

This is because we call g_mutex_new() without a USE_THREADS guard in
main_welcome.c.
This was fixed in revision 38045 on trunk, but not back ported to 1.6.3.

According to the GLib documentation g_mutex_new() will abort if
g_thread_init() has not been called.
I have tried installing the binary from the buildbot but that version
does work, even without threads support.
Can this be because some thirdparty libs already have initialized
threads for us?
Or do I miss something?

Weird. Are you using autotools or CMake? According to config.log and
"otool -L" on my machine Wireshark is linked with libgthread even though
I haven't explicitly enabled threads.

I backported r38045 to the 1.6 trunk.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: