From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: Help getting backtrace in gdb Date: Tue, 27 Jun 2017 19:27:42 -0400 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1498606100 31487 195.159.176.226 (27 Jun 2017 23:28:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Jun 2017 23:28:20 +0000 (UTC) Cc: Emacs developers To: Kaushal Modi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 28 01:28:17 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPzu4-0007sa-7y for ged-emacs-devel@m.gmane.org; Wed, 28 Jun 2017 01:28:16 +0200 Original-Received: from localhost ([::1]:58577 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPzu7-0005Qy-R8 for ged-emacs-devel@m.gmane.org; Tue, 27 Jun 2017 19:28:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38920) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPztY-0005Pb-Ul for emacs-devel@gnu.org; Tue, 27 Jun 2017 19:27:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPztY-00068K-3P for emacs-devel@gnu.org; Tue, 27 Jun 2017 19:27:44 -0400 Original-Received: from mail-oi0-x232.google.com ([2607:f8b0:4003:c06::232]:34144) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dPztX-00068A-VW for emacs-devel@gnu.org; Tue, 27 Jun 2017 19:27:44 -0400 Original-Received: by mail-oi0-x232.google.com with SMTP id l83so29514346oif.1 for ; Tue, 27 Jun 2017 16:27:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=C65pYCT/8Gpo+UH/5pSmIabHXjtbUNA9YXaXXgSTi8Y=; b=VITo6fcvZFI1SfxPOEwb1PncSoPZbm0hXRRZFNrI8hBig/Igq8AkQ6drSSoDDYCsQd WBkYsEqIHu0+k9ehDjFlSN9lzp6TuqtUxb1j890ylT5jMkykRuEzXu9EC3ZKgIIOSOVx YvFSwfgNH1tElpULc6RfPvSq2JYqfCTEk6FooUs2FhP81qYXoz5hQ+LUsF1AmBivbdW9 fs+UUrUcSaJLq+YGN3MzFEK2Pw2YRKMtb30koTx7Y7p4AQArSZ3tDUvNn5i5769NbZY+ 4nBUHvpzV/gesK/PI6qEpKMzdSScl5YwHpK4jDwGUF1q1bSA5uIXSfJvz5F7Ctr7l2Of sjbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=C65pYCT/8Gpo+UH/5pSmIabHXjtbUNA9YXaXXgSTi8Y=; b=GOZQbije7k75SoMhCNYUp9e6rjy0KW2D193/zuED2/hZic9PKYkQlSkdR38GQ+oldO Os5hcJ0dDy3J0yhGTNdl0E6/XiU7gOtdPIWz4UtcJnQ14H/qd9EjibYVJan4oGnY+f9c Uj8pNluIBphmcBfacoZ75K4jyQ4NtHR4TNbdmErW4BXRl8CETvB7Th1cptQkPlivDt/X 9Nk4/LOljLzt947ZbHaJAOIsdM37ZppbZ4+u6nMJgVDkG+rXFWc4MakLzzutfzoMndww szGhjEEUdqeX+H3sxNXo4qJfU9UxCh5/vn1OruuR9r0HBnnoB8N+ZUDyBBqIyVDmEUxa 6bHQ== X-Gm-Message-State: AKS2vOwnXXM9cBiauowzeiubG8zwwGC5H7PVSOij2MrwP3Ue9mfjjMU7 XSPOknwvu3CPGo9Ljghu52AH+BIeZg== X-Received: by 10.202.168.130 with SMTP id r124mr4640923oie.91.1498606063175; Tue, 27 Jun 2017 16:27:43 -0700 (PDT) Original-Received: by 10.74.113.91 with HTTP; Tue, 27 Jun 2017 16:27:42 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: cotLi4JWd1EQ52OJtsiA-jvjavQ X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::232 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:216030 Archived-At: On Tue, Jun 27, 2017 at 6:01 PM, Kaushal Modi wrote: > > My assumption was that Fsignal would get called before the seg fault. I would not expect it to be called, if you're strictly following the recipe for Bug#27504. >> >> You can try evaluating (signal 'wrong-number-of-arguments '(x y)) to >> see if your Fsignal breakpoint is working. > > > Nope, it does not work.. > I get the backtrace in the gdb-launched emacs but no breakpoint in the gdb. > > The gdb shows just this: Hmm, it didn't stop at all? Can you put a breakpoint in 'main'? > Should I be concerned about this part: > > ===== > SIGINT is used by the debugger. > Are you sure you want to change it? (y or n) [answered Y; input not from > terminal] > ===== No that's normal, it's from this thing in emacs/src/.gdbinit: # Don't enter GDB when user types C-g to quit. # This has one unfortunate effect: you can't type C-c # at the GDB to stop Emacs, when using X. # However, C-z works just as well in that case. handle 2 noprint pass