Hi,

Ryo ONODERA <r...@tetera.org> writes:

> Hi,
>
> I had tested with PTHREAD_DIAGASSERT however it did not produce any output.
>
> I am building current and pkgsrc packages from scratch now.
>
> I will reply my situation after this rebuild.
>
> Thank you.

With latest toolchain, kernel and userland,
my firefox gets sefgault every run.

The core dump generated from PTHREAD_DIAGASSERT=ae does not show
any useful things.
See:
Core was generated by `firefox'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000743cb39860ca in _lwp_kill () from /usr/lib/libc.so.12
[Current thread is 1 (process 4)]
(gdb) bt
#0  0x0000743cb39860ca in _lwp_kill () from /usr/lib/libc.so.12
#1  0x0000743ca1943721 in ?? () from /usr/pkg/lib/firefox/libxul.so
#2  0x0000743ca2172bee in ?? () from /usr/pkg/lib/firefox/libxul.so
#3  0x0000743cb38b0140 in opendir () from /usr/lib/libc.so.12
#4  0x000000010000000b in ?? ()
#5  0x0000000000000000 in ?? ()


And I cannot get any text output to stdout.
As far as I understand correctly, PTHREAD_DIAGASSERT=e enables the output
to stdout.


Still I feel that pthread_equal() is cause of my segfault.
$ gdb /usr/pkg/lib/firefox/firefox
GNU gdb (GDB) 8.3
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64--netbsd".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/pkg/lib/firefox/firefox...
(No debugging symbols found in /usr/pkg/lib/firefox/firefox)
(gdb) r
Starting program: /usr/pkg/lib/firefox/firefox
[New process 18477]
[Detaching after fork from child process 17695]
[New LWP 2 of process 18477]
[New LWP 3 of process 18477]
[New LWP 4 of process 18477]
[New LWP 5 of process 18477]
[New LWP 6 of process 18477]
[New LWP 7 of process 18477]
[New LWP 8 of process 18477]
[New LWP 9 of process 18477]
[New LWP 10 of process 18477]
[New LWP 11 of process 18477]
[New LWP 12 of process 18477]
[New LWP 13 of process 18477]
[New LWP 14 of process 18477]
[New LWP 15 of process 18477]
[New LWP 16 of process 18477]
JavaScript error: , line 0: UnknownError: The operation failed for reasons 
unrelated to the database itself and not covered by any other error code.
process 18477 is executing new program: /usr/pkg/lib/firefox/firefox
[New process 18477]
[Detaching after fork from child process 17526]
[New LWP 2 of process 18477]
[New LWP 3 of process 18477]
[New LWP 4 of process 18477]
[New LWP 5 of process 18477]
[New LWP 6 of process 18477]
[New LWP 7 of process 18477]
[New LWP 8 of process 18477]
[New LWP 9 of process 18477]
[New LWP 10 of process 18477]
[New LWP 11 of process 18477]
[New LWP 12 of process 18477]
[New LWP 13 of process 18477]
[New LWP 14 of process 18477]
[New LWP 15 of process 18477]
[New LWP 16 of process 18477]
[New LWP 17 of process 18477]
[New LWP 18 of process 18477]
[New LWP 19 of process 18477]
[New LWP 20 of process 18477]
[New LWP 21 of process 18477]
[New LWP 22 of process 18477]
[New LWP 23 of process 18477]
[New LWP 24 of process 18477]
[New LWP 25 of process 18477]
[New LWP 26 of process 18477]
[New LWP 27 of process 18477]
[New LWP 28 of process 18477]
[New LWP 29 of process 18477]
[New LWP 14 of process 18477]
[New LWP 30 of process 18477]
[New LWP 31 of process 18477]
[New LWP 32 of process 18477]
[New LWP 33 of process 18477]
[New LWP 34 of process 18477]
[New LWP 35 of process 18477]
[New LWP 36 of process 18477]
[New LWP 37 of process 18477]
[New LWP 38 of process 18477]
[New LWP 39 of process 18477]
[New process 18477]
[Detaching after fork from child process 17454]
[New LWP 39 of process 18477]
[New LWP 41 of process 18477]
[New LWP 42 of process 18477]
[New LWP 43 of process 18477]
[New LWP 44 of process 18477]
[New LWP 45 of process 18477]
[New process 18477]
[Detaching after fork from child process 15097]
[New LWP 47 of process 18477]
[New LWP 48 of process 18477]
[New LWP 49 of process 18477]
[New LWP 50 of process 18477]
[New LWP 51 of process 18477]
[New LWP 45 of process 18477]
[New LWP 52 of process 18477]
[New LWP 53 of process 18477]
[New LWP 54 of process 18477]
[New LWP 55 of process 18477]
[New LWP 56 of process 18477]
[New LWP 57 of process 18477]
[New LWP 58 of process 18477]
[New LWP 59 of process 18477]
[New LWP 60 of process 18477]

Thread 21 "Socket Thread" received signal SIGSEGV, Segmentation fault.
[Switching to LWP 4 of process 18477]
0x000071a59bc0c2eb in pthread_equal () from /usr/lib/libpthread.so.1
(gdb) bt
#0  0x000071a59bc0c2eb in pthread_equal () from /usr/lib/libpthread.so.1
#1  0x000071a581e2257b in PR_GetMonitorEntryCount ()
   from /usr/pkg/lib/nspr/libnspr4.so
#2  0x000071a58121c595 in SSL3_SendAlert () from /usr/pkg/lib/nss/libssl3.so
#3  0x000071a5812325a2 in ssl_SecureClose () from /usr/pkg/lib/nss/libssl3.so
#4  0x000071a581236910 in ssl_Close () from /usr/pkg/lib/nss/libssl3.so
#5  0x000071a588baec07 in ?? () from /usr/pkg/lib/firefox/libxul.so
#6  0x000071a586059f2b in ?? () from /usr/pkg/lib/firefox/libxul.so
#7  0x000071a58605e2ee in ?? () from /usr/pkg/lib/firefox/libxul.so
#8  0x000071a5860630fc in ?? () from /usr/pkg/lib/firefox/libxul.so
#9  0x000071a5860655c9 in ?? () from /usr/pkg/lib/firefox/libxul.so
#10 0x000071a586064b1d in ?? () from /usr/pkg/lib/firefox/libxul.so
#11 0x000071a5860658ea in ?? () from /usr/pkg/lib/firefox/libxul.so
#12 0x000071a585f6deca in ?? () from /usr/pkg/lib/firefox/libxul.so
#13 0x000071a585f6fe88 in ?? () from /usr/pkg/lib/firefox/libxul.so
#14 0x000071a5862fb928 in ?? () from /usr/pkg/lib/firefox/libxul.so
#15 0x000071a5862cb5b7 in ?? () from /usr/pkg/lib/firefox/libxul.so
#16 0x000071a585f6c2f8 in ?? () from /usr/pkg/lib/firefox/libxul.so
#17 0x000071a581e26c12 in _pt_root () from /usr/pkg/lib/nspr/libnspr4.so
#18 0x000071a59bc0cae2 in ?? () from /usr/lib/libpthread.so.1
#19 0x000071a59ac8fd10 in ?? () from /usr/lib/libc.so.12
#20 0x0000000000000000 in ?? ()
(gdb)


Thank you.

-- 
Ryo ONODERA // r...@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3

Reply via email to