From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Rogers Newsgroups: gmane.emacs.devel Subject: Re: segfault in system-process-attributes on GNU/Linux Date: Sat, 23 Aug 2008 15:12:22 -0400 Message-ID: <18608.24854.369097.535535@rgrjr.rgrjr.dyndns.org> References: <18608.13923.497720.920805@rgrjr.rgrjr.dyndns.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1219518785 16741 80.91.229.12 (23 Aug 2008 19:13:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Aug 2008 19:13:05 +0000 (UTC) Cc: lekktu@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii , Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 23 21:13:57 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KWyYS-0003iX-4I for ged-emacs-devel@m.gmane.org; Sat, 23 Aug 2008 21:13:49 +0200 Original-Received: from localhost ([127.0.0.1]:51270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWyXR-0007o6-1L for ged-emacs-devel@m.gmane.org; Sat, 23 Aug 2008 15:12:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWyXN-0007o1-3i for emacs-devel@gnu.org; Sat, 23 Aug 2008 15:12:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWyXG-0007nE-Lq for emacs-devel@gnu.org; Sat, 23 Aug 2008 15:12:36 -0400 Original-Received: from [199.232.76.173] (port=55748 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWyXG-0007n6-BI for emacs-devel@gnu.org; Sat, 23 Aug 2008 15:12:30 -0400 Original-Received: from modulargenetics.com ([68.236.112.17]:5738 helo=alexandria.modulargenetics.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KWyXF-0007QZ-Km for emacs-devel@gnu.org; Sat, 23 Aug 2008 15:12:30 -0400 Original-Received: from rgrjr.dyndns.org (c-66-30-196-77.hsd1.ma.comcast.net [66.30.196.77]) by alexandria.modulargenetics.com (Postfix on SuSE Linux) with ESMTP id EE2456228D for ; Sat, 23 Aug 2008 15:12:23 -0400 (EDT) Original-Received: (qmail 16021 invoked by uid 89); 23 Aug 2008 19:12:23 -0000 Original-Received: from unknown (HELO rgr.rgrjr.dyndns.org) (192.168.57.1) by home with SMTP; 23 Aug 2008 19:12:23 -0000 Original-Received: by rgr.rgrjr.dyndns.org (Postfix, from userid 500) id 24EFF4B630; Sat, 23 Aug 2008 15:12:22 -0400 (EDT) In-Reply-To: X-Mailer: VM 7.19 under Emacs 23.0.60.1 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:102886 Archived-At: From: Andreas Schwab Date: Sat, 23 Aug 2008 20:05:29 +0200 Bob Rogers writes: > Interesting. When I evaluate: > > (system-process-attributes (emacs-pid)) > > on my GNU/Linux system (openSUSE 10.2, kernel 2.6.18.2) using emacs > updated from trunk a few minutes ago, I get the segfault shown below. Fixed. Andreas. Excellent; it works for me now. Thanks. ================ From: Eli Zaretskii Date: Sat, 23 Aug 2008 20:40:51 +0300 I cannot reproduce this on a GNU/Linux machine . . . I wonder how it can crash. But then optimized builds tend to lie about line numbers. I wondered, too, but can't seem to compile emacs with enough debugging information; it finds the source file (at the same place you showed), but doesn't even have debugging symbols: (gdb) p cmdsize No symbol "cmdsize" in current context. (gdb) I remember discussion of CFLAGS options for debugging, but can't find the thread now. I thought some writeup had been added to INSTALL.CVS or "(emacs) Bugs", but can't find it there, either. In any case, any hints you may have for future debugging use would be greatly appreciated. -- Bob (not a C programmer, but might be able to play one on TV)