> 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:
address@hidden ~/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;
}
address@hidden ~/rlwrap-0.40/src $ gcc -I$HOME/include -O0 -g -L$HOME/lib -static -otest rltest7.c -lreadline -lncurses
address@hidden ~/rlwrap-0.40/src $ ./test
(pressing <delete><esc>)
> Segmentation fault: 11
address@hidden ~/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 address@hidden:/usr/obj/usr/src/sys/POLARHOME amd64