I installed few days ago gdb: (query is a personal alias for pkg_info -Q) $ query gdb | grep installed gdb-7.12.1p5 (installed)
$ gdb --version GNU gdb 6.3 If I try with egdb: $ egdb /usr/local/bin/firefox firefox.core GNU gdb (GDB) 7.12.1 Copyright (C) 2017 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-unknown-openbsd6.5". 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/local/bin/firefox...(no debugging symbols found)...done. warning: Couldn't find general-purpose registers in core file. warning: Couldn't find general-purpose registers in core file. #0 <unavailable> in ?? () (gdb) bt #0 <unavailable> in ?? () Backtrace stopped: not enough registers or memory available to unwind further (gdb) thread 1 [Switching to thread 1 (process 1)] #0 <unavailable> in ?? () (gdb) thread 2 Unknown thread 2. (gdb) thread 0 Invalid thread ID: 0 (gdb) q No help more! :( On 6/26/19 9:37 PM, Todd Mortimer wrote: > Hmm. That’s obviously not very helpful. > > Perhaps try ports gdb? It will install as egdb. > >> On Jun 26, 2019, at 21:33, Stéphane HUC PengouinBSD <[email protected]> >> wrote: >> >>> On 6/22/19 5:32 PM, Todd Mortimer wrote: >>> On Sat, Jun 22, 2019 at 12:25:30PM +0200, Stephane HUC "PengouinBSD" wrote: >>> >> (...) >> >> Perhaps, for Firefox, it's a problem with pledge? >> >> >> I see thoses messages in /var/log/messages - egual on 'dmesg': >> >> Jun >> 22 11:21:21 ptb-z /bsd: firefox[19999]: pledge "flock", syscall 92 >> >> Jun 22 11:21:21 ptb-z /bsd: firefox[17962]: pledge "flock", syscall 92 >>>> Jun 22 11:21:22 ptb-z /bsd: firefox[47501]: pledge "flock", syscall >> 92 >> >> (...) >> >> firefox[68021]: pledge "flock", syscall 92 >> >> firefox[22469]: pledge "flock", syscall 92 >> firefox[41244]: pledge >> "flock", syscall 92 >> >> ??? > > This happens sometimes when firefox is >> calling into some library that > hits these syscalls, and those syscalls >> are not in the firefox pledge. > In my experience this is often some >> uncommon code path through X, > usually related to which graphics driver >> you are using, but it could be > anything. When I have this happen to >> me, it is always on specific > websites that trigger some rendering >> codepath through X that uses some > unusual way to allocate memory or >> something. In your case, it could also > be some extension you have >> loaded. > > You can pretty easily see what is going wrong: > > When a >> firefox tab crashes you should have a firefox.core file lying > around >> (usually in your $HOME, but it will be wherever you launched > firefox >> from). Run gdb on /usr/local/bin/firefox, and then load up the > core >> file. It will drop you into the spot where firefox was killed, and > you >> can check the backtrace to see what code path took you to the system > >> call that hasn't been pledged. > > In this instance, firefox is calling >> fcntl, which is covered by the > "flock" pledge. You can add "flock" to >> the > security.sandbox.pledge.content line in about:config and see if >> that > makes it work for you. If you have at all modified the firefox >> content > or main pledges from their defaults, you should check to see >> if > reverting to their defaults helps ("flock" is in the main pledge by >>> default, but not in the content pledge). > > Hope this helps. >> Hi, >> >> Now, Firefox tab crash; as you wrote, I try gdb: >> >> $ gdb /usr/local/bin/firefox >> GNU gdb 6.3 >> 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-unknown-openbsd6.5"...(no debugging >> symbols found) >> >> (gdb) core-file firefox.core >> warning: Couldn't find general-purpose registers in core file. >> >> warning: Couldn't find general-purpose registers in core file. >> >> #0 0x0000000000000000 in ?? () >> (gdb) backtrace >> #0 0x0000000000000000 in ?? () >> Cannot access memory at address 0x0 >> (gdb) q >> >> What do you want another? >> >> >> -- >> ~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<< >> ---- >> <me>Stephane HUC as PengouinBSD or CIOTBSD</me> >> <mail>[email protected]</mail> >> >> -- ~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<< ---- <me>Stephane HUC as PengouinBSD or CIOTBSD</me> <mail>[email protected]</mail>

