unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo <sdl.web@gmail.com>
To: storm@cua.dk (Kim F. Storm)
Cc: emacs-pretest-bug@gnu.org
Subject: Re: 23.0.50; Emacs seg fault
Date: Fri, 05 Oct 2007 20:28:00 +0100	[thread overview]
Message-ID: <m21wc94b0f.fsf@cam.ac.uk> (raw)
In-Reply-To: <87abr4a0nv.fsf@kfs-lx.testafd.dk> (Kim F. Storm's message of "Sun, 30 Sep 2007 12:49:08 +0200")

On 2007-09-30 11:49 +0100, Kim F. Storm wrote:
> Leo <sdl.web@gmail.com> writes:
>
>> #1  0x08194676 in wait_reading_process_output (time_limit=30, microsecs=0, read_kbd=-1, do_display=1, wait_for_cell=137551137, 
>>     wait_proc=0x0, just_wait_proc=0) at process.c:4880
>
> I doubt that is the right line number due to compiler optimizations.
> Compile with CFLAGS="-g -O0" to get max debugging info.
>
> Since xerrno = 9  (EBADF), I suspect it actually traps in
> process.c line 4651 

Compiled with "-g -O0". Please see the backtrace below:

================================
Starting program: /home/emacs/src/emacs -nw -q
[Thread debugging using libthread_db enabled]
[New Thread -1208334624 (LWP 18445)]
[Switching to Thread -1208334624 (LWP 18445)]
[Detaching after fork from child process 18449. (Try `set detach-on-fork off'.)]

Breakpoint 1, abort () at emacs.c:431
431	  kill (getpid (), SIGABRT);
#0  abort () at emacs.c:431
#1  0x081fec06 in wait_reading_process_output (time_limit=30, microsecs=0, read_kbd=-1, do_display=1, wait_for_cell=138030369, 
    wait_proc=0x0, just_wait_proc=0) at process.c:4651
#2  0x0805e5c5 in sit_for (timeout=240, reading=1, do_display=1) at dispnew.c:6610
#3  0x08136ab0 in read_char (commandflag=1, nmaps=2, maps=0xbfa0ae90, prev_event=138030369, used_mouse_menu=0xbfa0afac, end_time=0x0)
    at keyboard.c:2990
#4  0x0814107b in read_key_sequence (keybuf=0xbfa0b184, bufsize=30, prompt=138030369, dont_downcase_last=0, can_return_switch_frame=1, 
    fix_current_buffer=1) at keyboard.c:9382
#5  0x08133ade in command_loop_1 () at keyboard.c:1689
#6  0x081b9f72 in internal_condition_case (bfun=0x81337a5 <command_loop_1>, handlers=138096969, hfun=0x8133165 <cmd_error>) at eval.c:1494
#7  0x081334fe in command_loop_2 () at keyboard.c:1403
#8  0x081b9a3c in internal_catch (tag=138079249, func=0x81334db <command_loop_2>, arg=138030369) at eval.c:1229
#9  0x081334b4 in command_loop () at keyboard.c:1382
#10 0x08132d72 in recursive_edit_1 () at keyboard.c:991
#11 0x08132ee0 in Frecursive_edit () at keyboard.c:1053
#12 0x0813176d in main (argc=3, argv=0xbfa0b964) at emacs.c:1778
#0  abort () at emacs.c:431
No locals.
#1  0x081fec06 in wait_reading_process_output (time_limit=30, microsecs=0, read_kbd=-1, do_display=1, wait_for_cell=138030369, 
    wait_proc=0x0, just_wait_proc=0) at process.c:4651
	timeout_reduced_for_timers = 0
	channel = 10
	nfds = -1
	Available = {
  fds_bits = {6016, 0 <repeats 31 times>}
}
	Connecting = {
  fds_bits = {0 <repeats 32 times>}
}
	check_connect = 0
	check_delay = 0
	no_avail = 0
	xerrno = 9
	proc = 135496220
	timeout = {
  tv_sec = 29, 
  tv_usec = 999999
}
	end_time = {
  tv_sec = 1191612283, 
  tv_usec = 528473
}
	wait_channel = -1
	got_some_input = 0
	count = 2
#2  0x0805e5c5 in sit_for (timeout=240, reading=1, do_display=1) at dispnew.c:6610
	sec = 30
	usec = 0
#3  0x08136ab0 in read_char (commandflag=1, nmaps=2, maps=0xbfa0ae90, prev_event=138030369, used_mouse_menu=0xbfa0afac, end_time=0x0)
    at keyboard.c:2990
	tem0 = 146407881
	timeout = 30
	delay_level = 4
	buffer_size = 1
	c = 138030369
	count = 138030369
	jmpcount = 2
	local_getcjmp = {{
    __jmpbuf = {2, 1, -1079988596, -1079988664, 1447547497, 835999494}, 
    __mask_was_saved = 0, 
    __saved_mask = {
      __val = {0, 138079465, 3214978632, 135971802, 138065745, 8, 147472516, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 138134402, 138134402, 138134402, 
        1148083360, 2, 3214978536, 136395005, 138062232, 128, 3214978496, 3214978880, 3214978308, 2, 3214978568, 135971333}
    }
  }}
	save_jump = {{
    __jmpbuf = {0, 0, 0, 0, 0, 0}, 
    __mask_was_saved = 0, 
    __saved_mask = {
      __val = {0 <repeats 32 times>}
    }
  }}
	key_already_recorded = 0
	tem = 138030369
	save = -1079988960
	previous_echo_area_message = 138030369
	also_record = 138030369
	reread = 0
	gcpro1 = {
  next = 0xbf, 
  var = 0x0, 
  nvars = 0
}
	gcpro2 = {
  next = 0x32, 
  var = 0x33, 
  nvars = 1
}
	polling_stopped_here = 0
	orig_kboard = (struct kboard *) 0x859c940
#4  0x0814107b in read_key_sequence (keybuf=0xbfa0b184, bufsize=30, prompt=138030369, dont_downcase_last=0, can_return_switch_frame=1, 
    fix_current_buffer=1) at keyboard.c:9382
	interrupted_kboard = (KBOARD *) 0x859c940
	interrupted_frame = (struct frame *) 0x8c9dab8
	key = 138062236
	used_mouse_menu = 0
	echo_local_start = 0
	last_real_key_start = 0
	keys_local_start = 0
	local_first_binding = 0
	from_string = 138030369
	count = 2
	t = 0
	echo_start = 0
	keys_start = 0
	nmaps = 2
	nmaps_allocated = 2
	defs = (Lisp_Object * volatile) 0xbfa0ae70
	submaps = (Lisp_Object * volatile) 0xbfa0ae90
	orig_local_map = 139911637
	orig_keymap = 138030369
	localized_local_map = 0
	first_binding = 0
	first_unbound = 31
	mock_input = 0
	fkey = {
  parent = 138271557, 
  map = 138271557, 
  start = 0, 
  end = 0
}
	keytran = {
  parent = 140038061, 
  map = 140038061, 
  start = 0, 
  end = 0
}
	delayed_switch_frame = 138030369
	original_uppercase = 0
	original_uppercase_position = -1
	dummyflag = 0
	starting_buffer = (struct buffer *) 0x83aa998
	fake_prefixed_keys = 138030369
	gcpro1 = {
  next = 0x0, 
  var = 0x0, 
  nvars = 0
}
#5  0x08133ade in command_loop_1 () at keyboard.c:1689
	cmd = 138079465
	lose = 0
	nonundocount = 0
	keybuf = {216, 960, -1208316584, -1208291328, 134537290, 1148147704, 134521720, 1, 1148084160, 1148086280, -1079987572, 
  -1079987544, 1148008928, 134521720, -1079987572, 1148086188, 31, -1208316584, 1, 0, 1, 1888676, 140547840, 140391691, 140391688, 
  -1079987688, -1079987560, 16, 0, -1079987700}
	i = 2
	no_direct = 0
	prev_modiff = 40
	prev_buffer = (struct buffer *) 0x8ca4080
	already_adjusted = 0
#6  0x081b9f72 in internal_condition_case (bfun=0x81337a5 <command_loop_1>, handlers=138096969, hfun=0x8133165 <cmd_error>) at eval.c:1494
	val = 138275373
	c = {
  tag = 138030369, 
  val = 138030369, 
  next = 0xbfa0b370, 
  gcpro = 0x0, 
  jmp = {{
      __jmpbuf = {1149472756, 1148083360, 0, -1079987400, 1450930793, 539090182}, 
      __mask_was_saved = 0, 
      __saved_mask = {
        __val = {15, 1, 15, 140391675, 3214979800, 135908929, 3214980008, 15, 3214979796, 3214979792, 0, 140391675, 0, 136529544, 15, 15, 
          3214979832, 135909462, 3214980008, 15, 140391691, 16718, 3214980008, 0, 3214980280, 135969474, 3214980008, 140391723, 140546808, 
          0, 140391707, 0}
      }
    }}, 
  backlist = 0x0, 
  handlerlist = 0x0, 
  lisp_eval_depth = 0, 
  pdlcount = 2, 
  poll_suppress_count = 1, 
  interrupt_input_blocked = 0, 
  byte_stack = 0x0
}
	h = {
  handler = 138096969, 
  var = 138030369, 
  chosen_clause = 15, 
  tag = 0xbfa0b26c, 
  next = 0x0
}
#7  0x081334fe in command_loop_2 () at keyboard.c:1403
	val = 9
#8  0x081b9a3c in internal_catch (tag=138079249, func=0x81334db <command_loop_2>, arg=138030369) at eval.c:1229
	c = {
  tag = 138079249, 
  val = 138030369, 
  next = 0x0, 
  gcpro = 0x0, 
  jmp = {{
      __jmpbuf = {1149472756, 1148083360, 0, -1079987144, 1450775145, 539724038}, 
      __mask_was_saved = 0, 
      __saved_mask = {
        __val = {0, 2, 0, 775302706, 959328818, 774977837, 3629926, 0, 0, 0, 0, 0, 0, 0, 0, 3214980136, 135939988, 138218241, 138215026, 
          138030369, 138062232, 544565332, 544236883, 840972082, 138030369, 540620090, 138215026, 138215026, 138215026, 0, 2, 138215026}
      }
    }}, 
  backlist = 0x0, 
  handlerlist = 0x0, 
  lisp_eval_depth = 0, 
  pdlcount = 2, 
  poll_suppress_count = 1, 
  interrupt_input_blocked = 0, 
  byte_stack = 0x0
}
#9  0x081334b4 in command_loop () at keyboard.c:1382
No locals.
#10 0x08132d72 in recursive_edit_1 () at keyboard.c:991
	count = 1
	val = 0
#11 0x08132ee0 in Frecursive_edit () at keyboard.c:1053
	count = 0
	buffer = 138030369
#12 0x0813176d in main (argc=3, argv=0xbfa0b964) at emacs.c:1778
	dummy = -1208316784
	stack_bottom_variable = 68 'D'
	do_initial_setlocale = 1
	skip_args = 1
	rlim = {
  rlim_cur = 10485760, 
  rlim_max = 18446744073709551615
}
	no_loadup = 0
	junk = 0x0
The program is running.  Exit anyway? (y or n) 

-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .:  [ GPG Key: 9283AA3F ]  :.

       Use the most powerful email client -- http://gnus.org/

  parent reply	other threads:[~2007-10-05 19:28 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-29 21:10 23.0.50; Emacs seg fault Leo
2007-09-30  2:56 ` Stefan Monnier
2007-09-30  6:09   ` Leo
2007-09-30 12:55   ` Richard Stallman
2007-09-30 10:49 ` Kim F. Storm
2007-09-30 11:07   ` David Kastrup
2007-09-30 15:44   ` Leo
2007-10-01 17:41     ` Richard Stallman
2007-10-05 19:29       ` Leo
2007-09-30 16:10   ` Eli Zaretskii
2007-10-05 19:28   ` Leo [this message]
2007-10-06 22:41     ` Kim F. Storm
2007-10-07  7:34       ` Leo
2007-10-07 21:35         ` Kim F. Storm
2007-10-08  0:19           ` Leo
2007-10-08 13:01             ` Kim F. Storm
2007-10-08 16:09               ` Dan Nicolaescu
2007-10-08 19:13                 ` Leo
2007-10-08 20:15                   ` Dan Nicolaescu
2007-10-10  5:54                     ` Leo
2007-10-10  8:08                       ` Dan Nicolaescu
2007-10-10  9:35                         ` Leo
2007-10-10 23:53                           ` Dan Nicolaescu
2007-10-11 17:31                             ` Leo
2007-10-11 21:31                               ` Dan Nicolaescu
2007-10-10  5:59               ` Leo

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=m21wc94b0f.fsf@cam.ac.uk \
    --to=sdl.web@gmail.com \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=storm@cua.dk \
    /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).