develooper Front page | perl.perl5.porters | Postings from March 2004

Term::Readline::Gnu SIGSEGV (was Re: "|" in debugger hangs)

Chip Salzenberg
March 3, 2004 14:03
Term::Readline::Gnu SIGSEGV (was Re: "|" in debugger hangs)
Message ID:
I've answered your questions below, Rafael, but strace reveals that
the immediate failure mode is an infinite SIGSEGV with a signal
handler that does nothing.  I think the debugger is trying to catch
target program SIGSEGVs, but when the debugger itself suffers from one
it goes south.

Anyone else have problems with Term::Readline::Gnu?  Maybe Debian's
copy needs recompilation or something.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1075614368 (LWP 28053)]
0x400c5dae in fflush () from /lib/tls/i686/cmov/
(gdb) where
#0  0x400c5dae in fflush () from /lib/tls/i686/cmov/
#1  0x40241f4d in rl_prep_terminal () from /lib/
#2  0x4023d1f5 in readline () from /lib/
#3  0x401fac38 in XS_Term__ReadLine__Gnu__XS_rl_readline () from /usr/lib/perl5/auto/Term/ReadLine/Gnu/
#4  0x080cccf6 in Perl_pp_entersub ()
#5  0x080c6679 in Perl_runops_standard ()
#6  0x080634e8 in perl_run ()
#7  0x0815dd54 in ?? ()
#8  0x00000001 in ?? ()

According to Rafael Garcia-Suarez:
> Chip Salzenberg wrote:
> > When I use "|" to look at anything in the debugger through less (my
> > default pager), when less is done I don't get my debugger prompt back
> > and there's nothing I can do to get it back.
> Obvious question : have you tried with more ? pg ? cat ?

Fails the same with more and cat.

> What's your $TERM ? have you tried another one ?

$TERM is rxvt under aterm.  Fails the same with "xterm" and "dumb".

> (I had some similar problems with slrn and other slang-based
> programs; which mysteriously disappeared when I recompiled my
> terminal emulator.)

Fails the same under xterm (as opposed to aterm).
Fails the same under bash (as opposed to zsh).
Chip Salzenberg               - a.k.a. -               <>
"I wanted to play hopscotch with the impenetrable mystery of existence,
    but he stepped in a wormhole and had to go in early."  // MST3K Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About