From: Chong Yidong <cyd@stupidchicken.com>
Cc: emacs-devel@gnu.org, Clemens Schueller <c.schueller@gmx.at>
Subject: Re: emacs segfault on bootstrap
Date: Sun, 29 Jan 2006 14:09:03 -0500 [thread overview]
Message-ID: <87psma3l80.fsf@stupidchicken.com> (raw)
In-Reply-To: <7wpsma7uyv.fsf@ece.lsu.edu> (David Koppelman's message of "Sun, 29 Jan 2006 12:24:56 -0600")
OK, now I can reproduce this (I had to reinstall gcc-3.4 -- the bug
doesn't show up for gcc4, or for -O2 and below).
I managed to get a backtrace. A Lisp_Int was passed to print_object,
but, for some reason, print_object is in the Lisp_Vectorlike case
statement instead.
A cursory inspection did not reveal any bugs in print_object. Smells
like a compiler bug.
Program received signal SIGSEGV, Segmentation fault.
0x0819c3be in print_object (obj=58, printcharfun=137788457, escapeflag=1)
at print.c:2009
2009 switch (XMISCTYPE (obj))
(gdb) bt
#0 0x0819c3be in print_object (obj=58, printcharfun=137788457, escapeflag=1)
at print.c:2009
#1 0x0819c4c5 in print_object (obj=137726760, printcharfun=137788457,
escapeflag=1) at print.c:1999
#2 0x0819e989 in Fprin1 (object=137726764, printcharfun=137788457)
at print.c:1295
#3 0x0819eedd in print_error_message (data=142518805, stream=137788457,
context=0x2 <Address 0x2 out of bounds>, caller=142518437) at print.c:1097
#4 0x08112a1a in cmd_error_internal (data=142518805, context=0xbfcfffb0 "")
at keyboard.c:1263
#5 0x08112bae in cmd_error (data=142518805) at keyboard.c:1200
#6 0x081856fc in internal_condition_case (bfun=0x811c420 <command_loop_1>,
handlers=137832193, hfun=0x8112ad0 <cmd_error>) at eval.c:1455
#7 0x0810cda6 in command_loop_2 () at keyboard.c:1323
#8 0x0818564a in internal_catch (tag=2, func=0x810cd80 <command_loop_2>,
arg=137788409) at eval.c:1211
#9 0x0810cc3d in recursive_edit_1 () at keyboard.c:1302
#10 0x0810cd3c in Frecursive_edit () at keyboard.c:1056
#11 0x0810bff3 in main (argc=3, argv=0xbfd00574) at emacs.c:1789
(gdb) f 1
#1 0x0819c4c5 in print_object (obj=137726760, printcharfun=137788457,
escapeflag=1) at print.c:1999
1999 print_object (tem, printcharfun, escapeflag);
(gdb) p tem
$3 = 2
(gdb) p size
$4 = 10
(gdb) p obj
$5 = 137726760
(gdb) xtype
Lisp_Int
(gdb) xvector
$6 = (struct Lisp_Vector *) 0x8358b28
0
(gdb) p $6->contents[0]
$11 = 58
next prev parent reply other threads:[~2006-01-29 19:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-26 13:10 emacs segfault on bootstrap Clemens Schueller
2006-01-29 5:31 ` cyd
2006-01-29 18:24 ` David Koppelman
2006-01-29 19:09 ` Chong Yidong [this message]
2006-01-29 19:22 ` David Koppelman
2006-01-29 19:39 ` Eli Zaretskii
2006-01-29 19:50 ` David Koppelman
2006-01-30 4:19 ` Eli Zaretskii
2006-01-30 18:46 ` Richard M. Stallman
2006-02-01 18:40 ` Clemens Schueller
2006-02-03 5:03 ` Richard M. Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87psma3l80.fsf@stupidchicken.com \
--to=cyd@stupidchicken.com \
--cc=c.schueller@gmx.at \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).