Bug 243618

Summary: www/firefox: crashes during file save dialogue
Product: Ports & Packages Reporter: gja822
Component: Individual Port(s)Assignee: freebsd-gecko mailing list <gecko>
Status: Open ---    
Severity: Affects Only Me CC: gecko, w.schwarzenfeld
Priority: --- Flags: w.schwarzenfeld: maintainer-feedback? (gecko)
Version: Latest   
Hardware: amd64   
OS: Any   

Description gja822 2020-01-26 17:10:37 UTC
For quite some time www/firefox crashes on some file save dialogues (now it's 72.0.2, but it started much earlier). I press "save" button on a site, choose "save", file tree dialogue appears, I choose a filename and a folder. And after that firefox stop respoding, leaving 0-byte length file in the directory (sometimes with a bit more length), and after a minute or so, it closes wit a .core file.

From gdb it gives this:

[LWP 101272 of process 28491 exited]

Thread 5 received signal SIGBUS, Bus error.
[Switching to LWP 101424 of process 28491]
0x00000008021209c4 in strcmp () from /lib/libc.so.7
(gdb) where
#0  0x00000008021209c4 in strcmp () at /lib/libc.so.7
#1  0x000000080719a679 in g_str_equal () at /usr/local/lib/libglib-2.0.so.0
#2  0x0000000806536704 in g_file_monitor_source_handle_event ()
    at /usr/local/lib/libgio-2.0.so.0
#3  0x0000000806561555 in  () at /usr/local/lib/libgio-2.0.so.0
#4  0x000000080656230a in  () at /usr/local/lib/libgio-2.0.so.0
#5  0x00000008065612b1 in  () at /usr/local/lib/libgio-2.0.so.0
#6  0x0000000806561204 in  () at /usr/local/lib/libgio-2.0.so.0
#7  0x00000008071aac36 in g_main_context_dispatch ()
    at /usr/local/lib/libglib-2.0.so.0
#8  0x00000008071aaf9d in  () at /usr/local/lib/libglib-2.0.so.0
#9  0x00000008071ab044 in g_main_context_iteration ()
    at /usr/local/lib/libglib-2.0.so.0
#10 0x00000008071acbb1 in  () at /usr/local/lib/libglib-2.0.so.0
#11 0x00000008071d26ba in  () at /usr/local/lib/libglib-2.0.so.0
#12 0x0000000801dc50b5 in thread_start (curthread=0x80272ae00)
    at /usr/src/lib/libthr/thread/thr_create.c:290
#13 0x0000000000000000 in  ()

And nothing helps, may be rebuilding from ports again (I do build from ports), but just for a file or two. Then no restart helps, just may be rebuild it again, but not so sure it helps every time.

====> Options available for the group AUDIO

11.3-STABLE r356678 FreeBSD amd64
Comment 1 Jan Beich freebsd_committer 2020-03-29 12:50:33 UTC
Backtrace looks incomplete. Rebuild devel/glib20 with WITH_DEBUG=1. Better rebuild www/firefox and *all* library dependencies WITH_DEBUG=1.

Can you reproduce using only binary packages? Back up and reinstall everything from packages. If still occurs this maybe a devel/glib20 bug.

In case it's an upstream issue does bug 244793 help?