NetBSD Problem Report #13789

Received: (qmail 18167 invoked from network); 27 Aug 2001 05:53:43 -0000
Message-Id: <200108270552.f7R5qup18248@quince.wongs.net>
Date: Mon, 27 Aug 2001 01:52:56 -0400 (EDT)
From: ben@wongs.net
Reply-To: ben@wongs.net
To: gnats-bugs@gnats.netbsd.org
Subject: gdb and emacs dump core
X-Send-Pr-Version: 3.95

>Number:         13789
>Category:       port-hpcmips
>Synopsis:       Emacs dumps core under X; gdb dumps core when debugging emacs
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-hpcmips-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 27 05:54:00 +0000 2001
>Closed-Date:    
>Last-Modified:  Wed Jun 20 01:12:01 +0000 2018
>Originator:     
>Release:        NetBSD 1.5.1
>Organization:

>Environment:

System: NetBSD quince.wongs.net 1.5.1 NetBSD 1.5.1 (GENERIC) #38: Tue Jul 3 10:42:57 JST 2001 shin@touji:/u/obj/release/sys/arch/hpcmips/compile/GENERIC hpcmips


>Description:

Emacs 20.7, installed from pkgsrc, throws a signal 11 (segmentation
violation) when used with the X libraries that came with
NetBSD/hpcmips 1.5.1. 

Gdb, when run on emacs's corefile, also dumps core.

The problem occurs irregardless of what Xserver is used when running
emacs. ( I tried setting the DISPLAY to a NetBSD/i386 Xserver but
emacs still dumped core). However, emacs does work in a text-based
mode when given the -nw flag. The problem *may* be with libX11.so.

>How-To-Repeat:

# Install emacs and start X
  bash$ cd /usr/pkgsrc/editors/emacs; make update
  bash$ startx 

# Run emacs, it will dump core
  bash$ /usr/pkg/bin/emacs
  Fatal error (11).Segmentation fault (core dumped)

# Use gdb to debug emacs; it also dumps core (!)
  bash$ gdb /usr/pkg/bin/emacs emacs.core
  GNU gdb 4.17
  Copyright 1998 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 "mipsel--netbsd"...Segmentation fault (core dumped)


# Use gdb to debug itself; not very helpful, but it doesn't dump core.
  bash$ gdb gdb gdb.core
  GNU gdb 4.17
  Copyright 1998 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 "mipsel--netbsd"...(no debugging symbols found)...
  Core was generated by `gdb'.
  Program terminated with signal 11, Segmentation fault.
  Reading symbols from /usr/libexec/ld.elf_so...done.
  Reading symbols from /usr/lib/libedit.so.2...done.
  Reading symbols from /usr/lib/libkvm.so.5...done.
  Reading symbols from /usr/lib/libtermcap.so.0...done.
  Reading symbols from /usr/lib/libbfd.so.3...done.
  Reading symbols from /usr/lib/libc.so.12...done.
  #0  0x2028d164 in strlen ()
      at /u/src/release/src/lib/libc/arch/mips/string/strlen.S:1
  /u/src/release/src/lib/libc/arch/mips/string/strlen.S:1: No such file or directory.
  (gdb) bt
  #0  0x2028d164 in strlen ()
      at /u/src/release/src/lib/libc/arch/mips/string/strlen.S:1
  #1  0x44b4d4 in allocate_psymtab ()
  #2  0x44b810 in start_psymtab_common ()
  #3  0x4ee55c in ecoff_relocate_efi ()
  #4  0x2028b4ec in malloc ()
  #5  0x500be4 in mmalloc ()
  #6  0x500d84 in xmmalloc ()
  #7  0x500e98 in xmalloc ()
  #8  0x2011864c in _obstack_newchunk ()
  #9  0x4edbe8 in ecoff_relocate_efi ()
  warning: Hit beginning of text section without finding
  warning: enclosing function for address 0x10a70
  This warning occurs if you are debugging a function without any symbols
  (for example, in a stripped executable).  In that case, you may wish to
  increase the size of the search with the `set heuristic-fence-post' command.

  Otherwise, you told GDB there was a function where there isn't one, or
  (more likely) you have encountered a bug in GDB.
  Current language:  auto; currently asm


>Fix:

No known fix.

A workaround is to use 'emacs -nw', which forces a text-based
interface even when using X. 
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Thu, 31 Dec 2009 05:15:45 +0000
State-Changed-Why:
Does this problem still exist with recent releases?


From: Ben Wong <ben@wongs.net>
To: gnats-bugs@netbsd.org
Cc: port-hpcmips-maintainer@netbsd.org, netbsd-bugs@netbsd.org, 
	gnats-admin@netbsd.org, dholland@netbsd.org
Subject: Re: port-hpcmips/13789 (Emacs dumps core under X; gdb dumps core when 
	debugging emacs)
Date: Wed, 3 Feb 2010 01:48:15 -0800

 I apologize, but I will be unable to test the latest release on an
 hpcmips machine in a timely manner.  Feel free to close this bug
 report.  I will re-open if need be.

 --Ben

 On Wed, Dec 30, 2009 at 9:15 PM,  <dholland@netbsd.org> wrote:
 > Synopsis: Emacs dumps core under X; gdb dumps core when debugging emacs
 >
 > State-Changed-From-To: open->feedback
 > State-Changed-By: dholland@NetBSD.org
 > State-Changed-When: Thu, 31 Dec 2009 05:15:45 +0000
 > State-Changed-Why:
 > Does this problem still exist with recent releases?
 >
 >
 >
 >

From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-hpcmips/13789 (Emacs dumps core under X; gdb dumps core
	when debugging emacs)
Date: Sun, 7 Feb 2010 10:26:44 +0000

 On Wed, Feb 03, 2010 at 09:50:04AM +0000, Ben Wong wrote:
  >  I apologize, but I will be unable to test the latest release on an
  >  hpcmips machine in a timely manner.  Feel free to close this bug
  >  report.  I will re-open if need be.

 Nah, no point closing it unless it's actually fixed, and it easily
 might not be.

 I'll leave it so it pokes you occasionally; if you get tired of that
 let me know.

 -- 
 David A. Holland
 dholland@netbsd.org

State-Changed-From-To: feedback->open
State-Changed-By: maya@NetBSD.org
State-Changed-When: Wed, 20 Jun 2018 01:12:01 +0000
State-Changed-Why:
Re-opening because I had problems with emacs on mips (n32).


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.