bug-readline
[Top][All Lists]
Advanced

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

[Bug-readline] Bus error resuming after suspending in 6.1


From: Richard O'Keefe
Subject: [Bug-readline] Bus error resuming after suspending in 6.1
Date: Thu, 18 Mar 2010 13:24:13 +1300

Yesterday I downloaded SWI Prolog release 5.9.9 for intel Mac 10.5.
This comes bundled with readline-6.1.000.pkg.
When you type Ctrl-Z (even if it's your <EOF> key),
the process gets a SIGTSTP signal, as you'd expect.
When you resume the process, it gets a bus error in fileno().
Transcript:

m% gdb /opt/local/bin/swipl
GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct 2 04:07:49 UTC 2007)
Copyright 2004 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-apple-darwin"...Reading symbols for shared libraries .... done

(gdb) run
Starting program: /opt/local/bin/swipl
% library(swi_hooks) compiled into pce_swi_hooks 0.00 sec, 2,120 bytes
Welcome to SWI-Prolog (Multi-threaded, 32 bits, Version 5.9.9)
Copyright (c) 1990-2010 University of Amsterdam, VU Amsterdam
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions.
Please visit http://www.swi-prolog.org for details.

For help, use ?- help(Topic). or ?- apropos(Word).

?-
Program received signal SIGTSTP, Stopped (user).
0x91abfe42 in __kill ()
(gdb) cont
Continuing.

Program received signal SIGTSTP, Stopped (user).
0x91abfe42 in __kill ()
(gdb) cont
Continuing.

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x0000000e
0x91a8b5ef in fileno ()
(gdb) where
#0  0x91a8b5ef in fileno ()
#1  0x0024aec5 in rl_prep_terminal ()
#2  0x002590e6 in rl_reset_after_signal ()
#3  0x0018df56 in rl_sighandler ()
#4  <signal handler called>
#5  0x91abfe42 in __kill ()
#6  0x91abfe34 in kill$UNIX2003 ()
#7  0x00032f94 in username_completion_function ()
#8  0x00027625 in el_gets ()
#9  0x00034653 in readline ()
#10 0x0018e26c in Sread_readline ()
#11 0x001244bc in S ()
#12 0x001256cb in Sgetcode ()
#13 0x00183364 in raw_read2 ()
#14 0x0018544d in raw_read ()
#15 0x00187476 in pl_raw_read2 ()
#16 0x0011e7eb in PL_next_solution ()
#17 0x0017267a in prologToplevel ()
#18 0x00108767 in PL_toplevel ()
#19 0x00001fd0 in main ()






reply via email to

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