From owner-freebsd-ports@freebsd.org Mon May 6 08:34:15 2019 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 97ADD15826B1 for ; Mon, 6 May 2019 08:34:15 +0000 (UTC) (envelope-from mizhka@gmail.com) Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CD47C8D911 for ; Mon, 6 May 2019 08:34:13 +0000 (UTC) (envelope-from mizhka@gmail.com) Received: by mail-wm1-x334.google.com with SMTP id b10so14692691wmj.4 for ; Mon, 06 May 2019 01:34:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Juf3USq2Gv9WQ3QgwgcIVdRD3crc2F1JLqc/yeMoaJg=; b=u2fI2cfQY5o8aA+4vUNnpxd/d8xh0H7Aak1kflnLFZGnm4SU6K1Ert5ncYodsPG8nK 8henaymmLq2t4jA2SI2XQsmLdP9VuXaPm9d5FKg9U+3fITE6sdkrORTkkr4lVkB2K5qA PiXnhc9e0DRMgtWYw8GFA2G3e+UirDmOfhl127CX4tnA/KVl4uIeJaWUO2u1rssZWxU7 YM0wsnvaHRHFChKU0Lm+gOcL7RH6QOrSK7ulsEy6iTp43HQKc5BeR9EiAlwpksbU+xe2 ALzToBUvEHwgNsMqDliQsbIHGV8qPL0UzHW5vyVV0RWPTpGOCY/hfBUG6NxyEeyeDHp1 cK4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Juf3USq2Gv9WQ3QgwgcIVdRD3crc2F1JLqc/yeMoaJg=; b=GMfHF2ZTsDjJS2omvCmx5J/JUQgvZhKPb4cgaF8ZPz/zodm4KfiT9IeJbKu9NSzgUB JwC7TXaHIns1YtCcJcgkDqWpzrlS+/cJRFaJA6+ASPl28uR79gpPLxx+UutuglurN5R8 pwh34M9xWxFc0GSRnB2mQaSKX0Vl2yPfylMoxUC5c0ZaJcKEAryxBFBPww/a9FbnaLQ6 GPgRiYvcQ7hq1BUqRo0O9q6y4zsCC61fw+BBTbO6nyHlrRDg9O4mkStUFlz4Ir+5E8Wr DUP0hBNispAKsI9kDAtx2L9hO6ydIBfHwub6fNgrrK7Rc8v8behFfUGTWNGsVjw3lXhW gZcg== X-Gm-Message-State: APjAAAWp7XJkFGRFrOYWpYE1e4AqDDIeKfYgWCoMFrILFJKhuI02DjN+ 7YPL6psn3QfLiUnhgdU5wM/aVh4E6I+C+jjxxrY= X-Google-Smtp-Source: APXvYqx8ddSQYx+Fn716SEpsCupuQW41tLhS/kTmg1DcAXVZ2QRRj69Cm5qTpTvLOU53TnlY1lJTwjqyFFax2LaP/HY= X-Received: by 2002:a05:600c:230c:: with SMTP id 12mr16004320wmo.152.1557131652602; Mon, 06 May 2019 01:34:12 -0700 (PDT) MIME-Version: 1.0 References: <8f9cebb4-b178-b5b9-d1cd-11d7260aa25a@m5p.com> <23759.48328.245011.155002@jerusalem.litteratus.org> In-Reply-To: <23759.48328.245011.155002@jerusalem.litteratus.org> From: Michael Zhilin Date: Mon, 6 May 2019 11:33:57 +0300 Message-ID: Subject: Re: Debug version of firefox To: Robert Huff Cc: Anders Jensen-Waud , George Mitchell , freebsd ports X-Rspamd-Queue-Id: CD47C8D911 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=u2fI2cfQ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mizhka@gmail.com designates 2a00:1450:4864:20::334 as permitted sender) smtp.mailfrom=mizhka@gmail.com X-Spamd-Result: default: False [-6.59 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.82)[-0.823,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[freebsd]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[4.3.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-2.76)[ip: (-9.26), ipnet: 2a00:1450::/32(-2.23), asn: 15169(-2.24), country: US(-0.06)]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 May 2019 08:34:15 -0000 Hi, pstack shows firefox methods for example: ----------------- thread 100583 (running) ----------------- 0x80151cf5a 0x7fffffffd980 __sys_poll (13c2aa0, 8, 0, 0, 12f1e30, 8) + a in libc.so.7 0x8013c2aa0 0x7fffffffd9b0 poll (7898b74, 8, ffffda24, 7fff, 0, 0) + 30 in libc.so.7 0x807898b74 0x7fffffffda00 PollWrapper(_GPollFD*, unsigned int, int) (2fb3cc7, 8, 1, 1, 3789540, 8) + 54 in libxul.so 0x802fb3cc7 0x7fffffffda50 ???????? (2fb3dd4, 8, 1, 0, cb4a400, 8) in libglib-2.0.so.0 0x802fb3dd4 0x7fffffffda70 g_main_context_iteration (7898d0b, 8, ffffdae0, 7fff, 7855de5, 8) + 64 in libglib-2.0.so.0 0x807898d0b 0x7fffffffda80 nsAppShell::ProcessNextNativeEvent(bool) (7855de5, 8, 128bbe50, 8, 0, 0) + b in libxul.so 0x807855de5 0x7fffffffdae0 nsBaseAppShell::OnProcessNextEvent(nsIThreadInternal*, bool) (7855f3d, 8, ffffdbf0, 7fff, 546e69e, 8) + 1b5 in libxul.so 0x807855f3d 0x7fffffffdaf0 virtual function non-virtual override offset : -8 nsBaseAppShell::OnProcessNextEvent(nsIThreadInternal*, bool) (546e69e, 8, ffffdb50, 7fff, fae5f80, 8) + d in libxul.so 0x80546e69e 0x7fffffffdbf0 nsThread::ProcessNextEvent(bool, bool*) (547110b, 8, ffffdc20, 7fff, 4f27b4d8, a873a41d) + 13e in libxul.so 0x80547110b 0x7fffffffdc20 NS_ProcessNextEvent(nsIThread*, bool) (5816a0f, 8, cb4a400, 8, 17e09b0, 8) + 4b in libxul.so 0x805816a0f 0x7fffffffdc60 mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) (57d67fb, 8, 9fefc01, 8, 2, 0) + cf in libxul.so 0x8057d67fb 0x7fffffffdca0 MessageLoop::Run(void) (7855af9, 8, 17e09b0, 8, 17e09b0, 8) + 5b in libxul.so 0x807855af9 0x7fffffffdcc0 nsBaseAppShell::Run(void) (8dea7a7, 8, 128bbe20, 8, 4f27b4d8, a873a41d) + 29 in libxul.so 0x808dea7a7 0x7fffffffdcf0 XRE_RunAppShell(void) (57d67fb, 8, ffffdd30, 7fff, 1, 0) + 47 in libxul.so 0x8057d67fb 0x7fffffffdd30 MessageLoop::Run(void) (8dea48e, 8, 1, 7fff, 1833700, 8) + 5b in libxul.so 0x808dea48e 0x7fffffffdf10 XRE_InitChildProcess(int, char**, XREChildData const*) (102d568, 0, 0, 0, 0, 0) + 34e in libxul.so 0x102d568 0x7fffffffe360 main (102d10b, 0, 0, 0, 15, 0) + 1e8 in firefox 0x102d10b 0x7fffffffe3b0 _start (1084000, 8, 0, 0, 15, 0) + 10b in firefox Information about methods is stored in dwarf2 structures of files. I suppose it should be enough for debugging by GDB. Is it not enough? Thanks! On Mon, May 6, 2019 at 8:10 AM Robert Huff wrote: > > Anders Jensen-Waud writes: > > > On 5/5/19 8:56 am, George Mitchell wrote: > > > I tried compiling a debugging version of firefox: > > > > > > cd /usr/ports/www/firefox; make clean; make WITH_DEBUG=yes install > > > > > > The resulting binary had no debug symbols. What did I do wrong? > > > -- George > > > > > WITH_DEBUG may not modify Firefox's actual makefile to do what you > want. > > I would see if you need to monkey patch './configure' with a flag or > two. > > Has anyone asked the maintainer, which I believe is > "gecko@freebsd.org"? > > > Respectfully, > > > Robert Huff > > > _______________________________________________ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" >