bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs 20.7 segfaults on the Hurd system


From: Marcus Brinkmann
Subject: emacs 20.7 segfaults on the Hurd system
Date: Thu, 30 Nov 2000 23:46:50 +0100
User-agent: Mutt/1.1.4i

Hi,

Emacs 20.7 segfaults on the Hurd system. The below backtrace shows that
malloc_initialize_hook is called without environ being initialized. My guess
would be that this is because the hurdish glibc calls malloc before environ
is set, but I have not verified this.

Thanks,
Marcus

Script started on Thu Nov 30 23:35:41 2000
hurd:/mnt2/emacs20/emacs20-20.7/src# gdb ./emacs
GNU gdb 5.0
Copyright 2000 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 "i386-unknown-gnu0.2"...
Environment variable "DISPLAY" not defined.
TERM = mach
Breakpoint 1 at 0x80949d6: file emacs.c, line 284.
Breakpoint 2 at 0x80861d2: file xterm.c, line 5335.
(gdb) run
Starting program: /mnt2/emacs20/emacs20-20.7/src/./emacs -geometry 80x40+0+0

Program received signal SIGSEGV, Segmentation fault.
0x8094e2b in malloc_initialize_hook () at emacs.c:574
574               for (p = environ; *p; p++)
(gdb) print environ
$1 = 0 '\000'
(gdb) bt
#0  0x8094e2b in malloc_initialize_hook () at emacs.c:574
#1  0x126083c in ptmalloc_init () at malloc.c:1730
#2  0x1260878 in malloc_hook_ini (sz=84, caller=0x1258c6a) at malloc.c:1755
#3  0x1260e36 in __libc_malloc (bytes=84) at malloc.c:2691
#4  0x1258c6a in __newstream () at newstream.c:40
#5  0x125ff6c in init_stdio () at ../sysdeps/mach/hurd/defs.c:38
#6  0x120ce84 in init_dtable () at dtable.c:95
#7  0x11f8b54 in _hurd_init (flags=8, argv=0x1020c40, portarray=0x1024000, 
    portarraysize=6, intarray=0x1025000, intarraysize=5) at hurdinit.c:104
#8  0x1217fd6 in init1 (argc=3, 
    arg0=0x1021000 "/mnt2/emacs20/emacs20-20.7/src/./emacs")
    at ../sysdeps/mach/hurd/i386/init-first.c:110
#9  0x3990 in _dl_start_user () from /lib/ld.so
(gdb) The program is running.  Exit anyway? (y or n) y
hurd:/mnt2/emacs20/emacs20-20.7/src# exit

Script done on Thu Nov 30 23:35:58 2000


-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org address@hidden
Marcus Brinkmann              GNU    http://www.gnu.org    address@hidden
address@hidden
http://www.marcus-brinkmann.de



reply via email to

[Prev in Thread] Current Thread [Next in Thread]