> Has anyone been able to reproduce this on something other than Arch Linux
> or Gentoo? If not, then rather than messing around trying to reproduce
> this using other distributions, I should be looking for a gentoo
installer.
I get the same crash with rlwrap, or even a simple test program, under
FreeBSD:
hlub@freebsd ~/rlwrap-0.40/src $ cat rltest7.c
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <readline/readline.h>
void line_handler(char *line) {
if (!line)
exit (0);
printf("%s\n", line);
}
int main() {
char c;
rl_callback_handler_install("> ", &line_handler);
while (read(STDIN_FILENO, &c, 1)) {
rl_stuff_char(c);
rl_callback_read_char();
}
return 0;
}
hlub@freebsd ~/rlwrap-0.40/src $ gcc -I$HOME/include -O0 -g -L$HOME/lib
-static -otest rltest7.c -lreadline -lncurses
hlub@freebsd ~/rlwrap-0.40/src $ ./test
(pressing <delete><esc>)
> Segmentation fault: 11
hlub@freebsd ~/rlwrap-0.40/src $ uname -a
FreeBSD freebsd.polarhome.com 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri May
6 13:20:42 CEST 2011
[email protected]:/usr/obj/usr/src/sys/POLARHOME
amd64
--
Hans Lub +31 (0)30 2899249
Dolomieten 74 3524 VH Utrecht (Nederland) [email protected]
_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline