bug-readline
[Top][All Lists]
Advanced

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

Re: [Bug-readline] SIGSEGV in _rl_dispatch_callback()


From: Hans Lub
Subject: Re: [Bug-readline] SIGSEGV in _rl_dispatch_callback()
Date: Sun, 9 Mar 2014 19:18:09 +0100


> 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



--
Hans Lub +31 (0)30 2899249
Dolomieten 74 3524 VH Utrecht (Nederland)  address@hidden


reply via email to

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