Hi all, * readline-6.3 from source
* An Intel Core i3 machine running Mageia Linux x86-64 6/Cauldron. * Building with: ./configure --prefix="$HOME/apps/readline-TO_DEL" --with-curses=yes \ --enable-multibyte config.h attached. * Running "rlwrap cat" and pressing r[PgUp][PgUp] causes rlwrap to crash. Also see: http://bugs.python.org/issue24958 * attached is a reproducing INPUTRC file. The bt full is: <<<<<<<<<<<<<<<< Program received signal SIGSEGV, Segmentation fault. _rl_dispatch_callback (cxt=0x0) at ../readline.c:728 728 if ((cxt->flags & KSEQ_DISPATCHED) == 0) (gdb) bt full #0 _rl_dispatch_callback (cxt=0x0) at ../readline.c:728 nkey = <optimized out> r = <optimized out> #1 0x00007ffff79bef8e in rl_callback_read_char () at ../callback.c:188 line = <optimized out> eof = <optimized out> jcode = <optimized out> olevel = {{__jmpbuf = {0, 2652806187036419427, 4207536, 140737488343168, 0, 0, 2652806187210483043, 2652824570613179747}, __mask_was_saved = 0, __saved_mask = { __val = {0 <repeats 16 times>}}}} #2 0x0000000000405549 in main_loop () at main.c:552 byte_read = 27 '\033' nfds = 1 readfds = {fds_bits = {1, 0 <repeats 15 times>}} writefds = {fds_bits = {0 <repeats 16 times>}} nread = 1 buf = "\020\314\377\377\377\177\000\000\000\000\000\000\000\000\000\000\021\000\000\000\000\000\000\000P\360a\000\000\000\000\000\260\063@\000\000\000\000\000\200\320\377\377\377\177", '\000' <repeats 26 times>, ",\265\336\367\377\177\000\000\001", '\000' <repeats 17 times>, "\001\000\000\000\000\000\230\377;\367\377\177\000\000\000\000\000\000\000\000\000\000`\316\377\377\377\177\000\000\260\063@\000\000\000\000\000@\034\337\367\377\177\000\000\000U\000\000\005\000\000\000\277\000\000\000;\212\000\000\000\003\034\177\025\004\000\001\000\021\023\032\000\022\017\027\026", '\000' <repeats 23 times>... timeoutstr = 0x4184d1 "forever" old_raw_prompt = 0xffffffffffffffff <error: Cannot access memory at address 0xffffffffffffffff> new_output_minus_prompt = 0xfffffffe3e7ffb07 <error: Cannot access memory at address 0xfffffffe3e7ffb07> promptlen = 0 leave_prompt_alone = -1 no_signals_blocked = {__val = {0 <repeats 16 times>}} seen_EOF = 0 select_timeout = {tv_sec = 0, tv_nsec = 40000000} select_timeoutptr = 0x0 immediately = {tv_sec = 0, tv_nsec = 0} wait_a_little = {tv_sec = 0, tv_nsec = 40000000} forever = 0x0 __FUNCTION__ = "main_loop" __PRETTY_FUNCTION__ = "main_loop" #3 0x00000000004035de in main (argc=2, argv=0x7fffffffd088) at main.c:181 command_name = 0x6210e0 "cat" (gdb) >>>>>>>>>>>>>>>>>>>>>>> Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ Chuck Norris has 99 problems including a bitch. Summer Glau has exactly 98 problems. — http://www.shlomifish.org/humour/bits/facts/Summer-Glau/ Please reply to list if it's a mailing list post - http://shlom.in/reply .
/* config.h. Generated from config.h.in by configure. */ /* config.h.in. Maintained by hand. */ /* Define NO_MULTIBYTE_SUPPORT to not compile in support for multibyte characters, even if the OS supports them. */ /* #undef NO_MULTIBYTE_SUPPORT */ /* #undef _FILE_OFFSET_BITS */ /* Define if on MINIX. */ /* #undef _MINIX */ /* Define as the return type of signal handlers (int or void). */ #define RETSIGTYPE void #define VOID_SIGHANDLER 1 /* Characteristics of the compiler. */ /* #undef sig_atomic_t */ /* #undef size_t */ /* #undef ssize_t */ /* #undef const */ /* #undef volatile */ #define PROTOTYPES 1 /* #undef __CHAR_UNSIGNED__ */ /* Define if the `S_IS*' macros in <sys/stat.h> do not work properly. */ /* #undef STAT_MACROS_BROKEN */ /* Define if you have the fcntl function. */ #define HAVE_FCNTL 1 /* Define if you have the getpwent function. */ #define HAVE_GETPWENT 1 /* Define if you have the getpwnam function. */ #define HAVE_GETPWNAM 1 /* Define if you have the getpwuid function. */ #define HAVE_GETPWUID 1 /* Define if you have the isascii function. */ #define HAVE_ISASCII 1 /* Define if you have the iswctype function. */ #define HAVE_ISWCTYPE 1 /* Define if you have the iswlower function. */ #define HAVE_ISWLOWER 1 /* Define if you have the iswupper function. */ #define HAVE_ISWUPPER 1 /* Define if you have the isxdigit function. */ #define HAVE_ISXDIGIT 1 /* Define if you have the kill function. */ #define HAVE_KILL 1 /* Define if you have the lstat function. */ #define HAVE_LSTAT 1 /* Define if you have the mbrlen function. */ #define HAVE_MBRLEN 1 /* Define if you have the mbrtowc function. */ #define HAVE_MBRTOWC 1 /* Define if you have the mbsrtowcs function. */ #define HAVE_MBSRTOWCS 1 /* Define if you have the memmove function. */ #define HAVE_MEMMOVE 1 /* Define if you have the putenv function. */ #define HAVE_PUTENV 1 /* Define if you have the select function. */ #define HAVE_SELECT 1 /* Define if you have the setenv function. */ #define HAVE_SETENV 1 /* Define if you have the setlocale function. */ #define HAVE_SETLOCALE 1 /* Define if you have the strcasecmp function. */ #define HAVE_STRCASECMP 1 /* Define if you have the strcoll function. */ #define HAVE_STRCOLL 1 /* #undef STRCOLL_BROKEN */ /* Define if you have the strpbrk function. */ #define HAVE_STRPBRK 1 /* Define if you have the tcgetattr function. */ #define HAVE_TCGETATTR 1 /* Define if you have the towlower function. */ #define HAVE_TOWLOWER 1 /* Define if you have the towupper function. */ #define HAVE_TOWUPPER 1 /* Define if you have the vsnprintf function. */ #define HAVE_VSNPRINTF 1 /* Define if you have the wcrtomb function. */ #define HAVE_WCRTOMB 1 /* Define if you have the wcscoll function. */ #define HAVE_WCSCOLL 1 /* Define if you have the wctype function. */ #define HAVE_WCTYPE 1 /* Define if you have the wcwidth function. */ #define HAVE_WCWIDTH 1 /* and whether it works */ /* #undef WCWIDTH_BROKEN */ #define STDC_HEADERS 1 /* Define if you have the <dirent.h> header file. */ #define HAVE_DIRENT_H 1 /* Define if you have the <fcntl.h> header file. */ #define HAVE_FCNTL_H 1 /* Define if you have the <langinfo.h> header file. */ #define HAVE_LANGINFO_H 1 /* Define if you have the <limits.h> header file. */ #define HAVE_LIMITS_H 1 /* Define if you have the <locale.h> header file. */ #define HAVE_LOCALE_H 1 /* Define if you have the <memory.h> header file. */ #define HAVE_MEMORY_H 1 /* Define if you have the <ndir.h> header file. */ /* #undef HAVE_NDIR_H */ /* Define if you have the <pwd.h> header file. */ #define HAVE_PWD_H 1 /* Define if you have the <stdarg.h> header file. */ #define HAVE_STDARG_H 1 /* Define if you have the <stdbool.h> header file. */ #define HAVE_STDBOOL_H 1 /* Define if you have the <stdlib.h> header file. */ #define HAVE_STDLIB_H 1 /* Define if you have the <string.h> header file. */ #define HAVE_STRING_H 1 /* Define if you have the <strings.h> header file. */ #define HAVE_STRINGS_H 1 /* Define if you have the <sys/dir.h> header file. */ /* #undef HAVE_SYS_DIR_H */ /* Define if you have the <sys/file.h> header file. */ #define HAVE_SYS_FILE_H 1 /* Define if you have the <sys/ndir.h> header file. */ /* #undef HAVE_SYS_NDIR_H */ /* Define if you have the <sys/pte.h> header file. */ /* #undef HAVE_SYS_PTE_H */ /* Define if you have the <sys/ptem.h> header file. */ /* #undef HAVE_SYS_PTEM_H */ /* Define if you have the <sys/select.h> header file. */ #define HAVE_SYS_SELECT_H 1 /* Define if you have the <sys/stream.h> header file. */ /* #undef HAVE_SYS_STREAM_H */ /* Define if you have the <termcap.h> header file. */ #define HAVE_TERMCAP_H 1 /* Define if you have the <termio.h> header file. */ #define HAVE_TERMIO_H 1 /* Define if you have the <termios.h> header file. */ #define HAVE_TERMIOS_H 1 /* Define if you have the <unistd.h> header file. */ #define HAVE_UNISTD_H 1 /* Define if you have the <varargs.h> header file. */ /* #undef HAVE_VARARGS_H */ /* Define if you have the <wchar.h> header file. */ #define HAVE_WCHAR_H 1 /* Define if you have the <wctype.h> header file. */ #define HAVE_WCTYPE_H 1 #define HAVE_MBSTATE_T 1 /* Define if you have wchar_t in <wctype.h>. */ #define HAVE_WCHAR_T 1 /* Define if you have wctype_t in <wctype.h>. */ #define HAVE_WCTYPE_T 1 /* Define if you have wint_t in <wctype.h>. */ #define HAVE_WINT_T 1 /* Define if you have <langinfo.h> and nl_langinfo(CODESET). */ #define HAVE_LANGINFO_CODESET 1 /* Define if you have <linux/audit.h> and it defines AUDIT_USER_TTY */ #define HAVE_DECL_AUDIT_USER_TTY 1 /* Definitions pulled in from aclocal.m4. */ #define VOID_SIGHANDLER 1 #define GWINSZ_IN_SYS_IOCTL 1 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1 /* #undef STRUCT_WINSIZE_IN_TERMIOS */ /* #undef TIOCSTAT_IN_SYS_IOCTL */ #define FIONREAD_IN_SYS_IOCTL 1 /* #undef SPEED_T_IN_SYS_TYPES */ #define HAVE_GETPW_DECLS 1 /* #undef STRUCT_DIRENT_HAS_D_INO */ /* #undef STRUCT_DIRENT_HAS_D_FILENO */ /* #undef HAVE_BSD_SIGNALS */ #define HAVE_POSIX_SIGNALS 1 /* #undef HAVE_USG_SIGHOLD */ /* #undef MUST_REINSTALL_SIGHANDLERS */ #define HAVE_POSIX_SIGSETJMP 1 #define CTYPE_NON_ASCII 1 /* modify settings or make new ones based on what autoconf tells us. */ /* Ultrix botches type-ahead when switching from canonical to non-canonical mode, at least through version 4.3 */ #if !defined (HAVE_TERMIOS_H) || !defined (HAVE_TCGETATTR) || defined (ultrix) # define TERMIOS_MISSING #endif /* VARARGS defines moved to rlstdc.h */
_inputrc
Description: Binary data
_______________________________________________ Bug-readline mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-readline
