After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 373411 - crash with NetBSD's pthread
crash with NetBSD's pthread
Status: RESOLVED OBSOLETE
Product: gftp
Classification: Other
Component: general
2.0.18
Other NetBSD
: Normal critical
: ---
Assigned To: Brian Masney
Brian Masney
Depends on:
Blocks:
 
 
Reported: 2006-11-10 14:11 UTC by Mathieu
Modified: 2010-12-16 10:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mathieu 2006-11-10 14:11:31 UTC
Hi there.

No idea if this is a real bug in gftp or if netbsd's pthread is acting up...

But gftp always crashes on netbsd 3.0 when trying to connect to any site:

gftp-gtk: Error detected by libpthread: Unlocking unlocked mutex.
Detected by file "/home/builds/ab/netbsd-3-0-RELEASE/src/lib/libpthread/pthread_mutex.c", line 362, function "pthread_mutex_unlock".
See pthread(3) for information.
zsh: abort (core dumped)  gftp

AFAIK, this is specific to netbsd's pthread implementation and most other pthreads would ignore that condition. Starting it with `PTHREAD_DIAGASSERT='A' gftp` avoids the crash (that's a "ignore errors mode").


backtrace:

Core was generated by `gftp-gtk'.
Program terminated with signal 6, Aborted.
  • #0 kill
    from /usr/lib/libc.so.12
  • #0 kill
    from /usr/lib/libc.so.12
  • #1 pthread__errorfunc
    from /usr/lib/libpthread.so.0
  • #2 pthread_mutex_unlock
    from /usr/lib/libpthread.so.0
  • #3 gdk_threads_leave
    from /usr/pkg/lib/libgdk-x11-2.0.so.0
  • #4 gftpui_prompt_password
    at gtkui.c line 134
  • #5 gftpui_common_cmd_open
    at gftpui.c line 674
  • #6 ftp_connect
    at transfer.c line 65
  • #7 toolbar_hostedit
    at gftp-gtk.c line 1135
  • #8 tb_openurl_dialog
    at gftp-gtk.c line 223
  • #9 g_cclosure_marshal_VOID__VOID
    from /usr/pkg/lib/libgobject-2.0.so.0
  • #10 g_closure_invoke
    from /usr/pkg/lib/libgobject-2.0.so.0
  • #11 g_signal_emit_by_name
    from /usr/pkg/lib/libgobject-2.0.so.0
  • #12 g_signal_emit_valist
    from /usr/pkg/lib/libgobject-2.0.so.0
  • #13 g_signal_emit
    from /usr/pkg/lib/libgobject-2.0.so.0
  • #14 gtk_button_clicked
    from /usr/pkg/lib/libgtk-x11-2.0.so.0
  • #15 gtk_button_get_relief
    from /usr/pkg/lib/libgtk-x11-2.0.so.0
  • #16 g_cclosure_marshal_VOID__VOID
    from /usr/pkg/lib/libgobject-2.0.so.0
  • #17 g_cclosure_new_swap
    from /usr/pkg/lib/libgobject-2.0.so.0
  • #18 g_closure_invoke
    from /usr/pkg/lib/libgobject-2.0.so.0
  • #19 g_signal_emit_by_name
    from /usr/pkg/lib/libgobject-2.0.so.0
  • #20 g_signal_emit_valist
    from /usr/pkg/lib/libgobject-2.0.so.0
  • #21 g_signal_emit
    from /usr/pkg/lib/libgobject-2.0.so.0
  • #22 gtk_button_released
    from /usr/pkg/lib/libgtk-x11-2.0.so.0
  • #23 gtk_button_get_relief
    from /usr/pkg/lib/libgtk-x11-2.0.so.0
  • #24 gtk_marshal_VOID__UINT_STRING
    from /usr/pkg/lib/libgtk-x11-2.0.so.0
  • #25 g_cclosure_new_swap
    from /usr/pkg/lib/libgobject-2.0.so.0
  • #26 g_closure_invoke
    from /usr/pkg/lib/libgobject-2.0.so.0
  • #27 g_signal_emit_by_name
    from /usr/pkg/lib/libgobject-2.0.so.0
  • #28 g_signal_emit_valist
    from /usr/pkg/lib/libgobject-2.0.so.0
  • #29 g_signal_emit
    from /usr/pkg/lib/libgobject-2.0.so.0
  • #30 gtk_widget_send_expose
    from /usr/pkg/lib/libgtk-x11-2.0.so.0
  • #31 gtk_propagate_event
    from /usr/pkg/lib/libgtk-x11-2.0.so.0
  • #32 gtk_main_do_event
    from /usr/pkg/lib/libgtk-x11-2.0.so.0
  • #33 gdk_x11_register_standard_event_type
    from /usr/pkg/lib/libgdk-x11-2.0.so.0
  • #34 g_source_is_destroyed
    from /usr/pkg/lib/libglib-2.0.so.0
  • #35 g_main_context_dispatch
    from /usr/pkg/lib/libglib-2.0.so.0
  • #36 g_main_context_dispatch
    from /usr/pkg/lib/libglib-2.0.so.0
  • #37 g_main_loop_run
    from /usr/pkg/lib/libglib-2.0.so.0
  • #38 gtk_main
    from /usr/pkg/lib/libgtk-x11-2.0.so.0
  • #39 main
    at gftp-gtk.c line 1337
  • #40 ___start

Comment 1 Akhil Laddha 2010-12-16 10:46:58 UTC
Thanks for taking the time to report this bug.
However, you are using a version that is too old and not supported anymore. GNOME developers are no longer working on that version, so unfortunately there will not be any bug fixes for the version that you use.

By upgrading to a newer version of GNOME you could receive bug fixes and new functionality. You may need to upgrade your Linux distribution to obtain a newer version of GNOME.
Please feel free to reopen this bug if the problem still occurs with a newer version of GNOME.