NetBSD Problem Report #52086
From www@NetBSD.org Fri Mar 17 16:49:41 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id E3F5C7A169
for <gnats-bugs@gnats.NetBSD.org>; Fri, 17 Mar 2017 16:49:41 +0000 (UTC)
Message-Id: <20170317164940.D8F267A2B6@mollari.NetBSD.org>
Date: Fri, 17 Mar 2017 16:49:40 +0000 (UTC)
From: scole_mail@gmx.com
Reply-To: scole_mail@gmx.com
To: gnats-bugs@NetBSD.org
Subject: cannot debug firefox with gdb
X-Send-Pr-Version: www-1.0
>Number: 52086
>Category: bin
>Synopsis: cannot debug firefox with gdb
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kamil
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Mar 17 16:50:00 +0000 2017
>Closed-Date: Sun Oct 29 20:25:48 +0000 2017
>Last-Modified: Sun Oct 29 20:25:48 +0000 2017
>Originator: scole_mail
>Release: NetBSD 7.1.0 pkgsrc-2016Q4
>Organization:
none
>Environment:
NetBSD dstar 7.1.0_PATCH NetBSD 7.1.0_PATCH (GENERIC) #0: Wed Mar 15 10:13:06 PDT 2017 scole@dstar:/home/scole/nbsd/cvs/7_0/obj/sys/arch/i386/compile/GENERIC i386
>Description:
martin asked me to submit a PR for this, he thinks it may be a ld.elf_so or gdb issue.
I was trying to debug firefox crashes with the method outlined in
http://wiki.netbsd.org/tutorials/pkgsrc/debugging_firefox/
I was building with these options
bmake PKG_DEFAULT_OPTIONS="alsa dbus debug-info" ALLOW_VULNERABLE_PACKAGES=1
and ran
run-mozilla.sh -g ./firefox
from the directory described in the tutorial link.
I would immediately get a SIGTRAP and couldn't read any vars in gdb
scole@dstar:/usr/pkgsrc/www/firefox/work/build/dist/bin> ./run-mozilla.sh -g ./firefox
MOZILLA_FIVE_HOME=.
LD_LIBRARY_PATH=.:./plugins:.
DISPLAY=:0
DYLD_LIBRARY_PATH=.:.
LIBRARY_PATH=
SHLIB_PATH=.:.
LIBPATH=.:.
ADDON_PATH=
MOZ_PROGRAM=./firefox
MOZ_TOOLKIT=
moz_debug=1
moz_debugger=
moz_debugger_args=
/usr/bin/gdb --args ./firefox
GNU gdb (GDB) 7.7.1
Copyright (C) 2014 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 "i486--netbsdelf".
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 ./firefox...done.
.gdbinit:183: Error in sourced command file:
gdbpp:5: Error in sourced command file:
Python scripting is not supported in this copy of GDB.
(gdb) run
Starting program: /usr/pkgsrc/www/firefox/work/build/dist/bin/firefox
Program received signal SIGTRAP, Trace/breakpoint trap.
0xbb572937 in ?? ()
(gdb) list
315 rv = NS_NewNativeLocalFile(nsDependentCString(exePath), false,
316 xreDirectory);
317 #endif
318 }
319
320 return rv;
321 }
322
323 int main(int argc, char* argv[], char* envp[])
324 {
>How-To-Repeat:
See description
>Fix:
?
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: bin-bug-people->kamil
Responsible-Changed-By: kamil@NetBSD.org
Responsible-Changed-When: Sat, 07 Oct 2017 00:17:54 +0200
Responsible-Changed-Why:
Take.
State-Changed-From-To: open->feedback
State-Changed-By: kamil@NetBSD.org
State-Changed-When: Sat, 07 Oct 2017 00:17:54 +0200
State-Changed-Why:
Can you reproduce it on 8.0(beta)?
From: scole_mail <scole_mail@gmx.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: bin/52086 (cannot debug firefox with gdb)
Date: Tue, 10 Oct 2017 12:01:14 -0700
kamil@NetBSD.org writes:
> Can you reproduce it on 8.0(beta)?
I don't have a machine available to test this on with 8.0 right now.
Do think it is worth trying with qemu?
Thanks
From: Kamil Rytarowski <n54@gmx.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: bin/52086 (cannot debug firefox with gdb)
Date: Tue, 10 Oct 2017 23:53:06 +0200
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--FQ2q6k1rc4kBwQqRdJUsjffS8fupRcLDE
Content-Type: multipart/mixed; boundary="S41oM0hSdq214v3OagXPNMg941LpcEIhN";
protected-headers="v1"
From: Kamil Rytarowski <n54@gmx.com>
To: gnats-bugs@NetBSD.org
Message-ID: <a493b3df-9bda-cce8-1dcb-d404ddbc139f@gmx.com>
Subject: Re: bin/52086 (cannot debug firefox with gdb)
References: <pr-bin-52086@gnats.netbsd.org>
<20170317164940.D8F267A2B6@mollari.NetBSD.org>
<20171010190501.9E5797A28C@mollari.NetBSD.org>
In-Reply-To: <20171010190501.9E5797A28C@mollari.NetBSD.org>
--S41oM0hSdq214v3OagXPNMg941LpcEIhN
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
On 10.10.2017 21:05, scole_mail wrote:
> The following reply was made to PR bin/52086; it has been noted by GNAT=
S.
>=20
> From: scole_mail <scole_mail@gmx.com>
> To: gnats-bugs@NetBSD.org
> Cc:=20
> Subject: Re: bin/52086 (cannot debug firefox with gdb)
> Date: Tue, 10 Oct 2017 12:01:14 -0700
>=20
> kamil@NetBSD.org writes:
> =20
> > Can you reproduce it on 8.0(beta)?
> =20
> I don't have a machine available to test this on with 8.0 right now.
> =20
> Do think it is worth trying with qemu?
> =20
> Thanks
> =20
>=20
Testing -8 or HEAD is fine. qemu is possible... but better with kvm.
--S41oM0hSdq214v3OagXPNMg941LpcEIhN--
--FQ2q6k1rc4kBwQqRdJUsjffS8fupRcLDE
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJZ3UFMAAoJEEuzCOmwLnZsCfgQAKuwScPcVgp81tfuRmFyIOZE
hbIX4jga1zpu4tjsZgdbci+EbTSBpOf4D34ygHvR7x1vw5IvyH1K7MHIK2WCu/AW
5wp8yIQGK/IU6OCKZQ9JietwLhCl0tmu+WeyKLmB8e9B9vA6RtK5erR81svDDomV
XMCdYHWTuFN44vYoxEpBBcACtlWlaj4dwBAdjmUcX7BNRnfpssNllXkhYHLpTKCI
/OkH5q2mYZZr40jPs0IZIN3uXpnO9dZqGAnEZ+h1CTKBTc88rgWMKQ6m0kSiGohs
xKKGe647L1GiZIRn1sU/zOvwkTrSroDMomNvSpk/oOMIr3jPdHjfgKvMUiq57CJV
2H0WKgSr9d/kQPjxmLazgWsURUxdBnvyrc3cECVNnJFKMpmw0NB/cMJ7KK9psheO
esE7qkGO9o0coZ/OaCdOhBMH8LvQ49Jek/PjFJ+C+8lDGdrxzFnPhdQI9K0FheQE
MTDOvSunQZ4p8jXtsJy24DmI5bKDkWJplbw2ii0gKLQUTqjputOwZEWG+1b6VbH0
bAM9dacFltPT9ZaOBq6oshVG2jCngLc0MrnzBWaNMO3jnnJSA+l/1qq2HvlKw9RZ
Ik+JFde5JxnR/snEGsITIrvUH5DmL+K7l5M/GEHRJuLrr1j7gB8KRFGiGpcDlShm
gN0aDQb9MPipis/MDyC6
=n2bh
-----END PGP SIGNATURE-----
--FQ2q6k1rc4kBwQqRdJUsjffS8fupRcLDE--
From: scole_mail <scole_mail@gmx.com>
To: gnats-bugs@NetBSD.org
Cc: martin@NetBSD.org
Subject: Re: bin/52086 (cannot debug firefox with gdb)
Date: Sun, 29 Oct 2017 12:58:53 -0700
I tried again with qemu, NetBSD 8
NetBSD qemu 8.0_BETA NetBSD 8.0_BETA (GENERIC) #1: Thu Oct 12 15:02:52 PDT 2017
root@qemu:/disk2/obj/sys/arch/i386/compile/GENERIC i386
and firefox-55.0.3nb1 from pkgsrc-2017Q3.
I started it a couple times and didn't get the same behavior anymore.
It seemed to run fine:
qemu# ./run-mozilla.sh -g ./firefox
MOZILLA_FIVE_HOME=.
LD_LIBRARY_PATH=.:./plugins:.
DISPLAY=localhost:10.0
DYLD_LIBRARY_PATH=.:.
LIBRARY_PATH=
SHLIB_PATH=.:.
LIBPATH=.:.
ADDON_PATH=
MOZ_PROGRAM=./firefox
MOZ_TOOLKIT=
moz_debug=1
moz_debugger=
moz_debugger_args=
/usr/bin/gdb --args ./firefox
GNU gdb (GDB) 7.12
Copyright (C) 2016 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 "i486--netbsdelf".
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 ./firefox...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/pkg/lib/firefox/firefox
[New LWP 12]
[New LWP 28]
[New LWP 29]
/usr/pkg/lib/ffmpeg3/libavcodec.so.57: text relocations
/usr/pkg/lib/ffmpeg3/libswresample.so.2: text relocations
/usr/pkg/lib/ffmpeg3/libavutil.so.55: text relocations
/usr/pkg/lib/libxvidcore.so.4: text relocations
/usr/pkg/lib/libx264.so.0: text relocations
...
I guess you can close the PR unless any others object.
Thanks
State-Changed-From-To: feedback->closed
State-Changed-By: kamil@NetBSD.org
State-Changed-When: Sun, 29 Oct 2017 21:25:48 +0100
State-Changed-Why:
The original problem is gone.
Confirmed by the originator.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.