Irix 6.5, gcc 2.95.2, readline and control-C problem

Andrew Dalke dalke at acm.org
Tue May 9 00:35:52 CEST 2000


Quinn Dunkan wrote:
>I have python compiled with gcc 2.8.1 on irix 6.5 system.  If I hit ^C when
>readline is doing its thing, python locks up.  Meanwhile, I have python
>and readline compiled with sgi cc on another irix 6.5 system, and
everything
>works properly.
>
>So it appears to be a gcc thing.


I didn't catch that this was gcc/egcs in the original post.  I was
having problems with SGI's cc.  I can start Python

Python 1.5.2 (#3, Oct 18 1999, 17:40:54) [C] on irix646-n32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>>
then press ^C to hang the process.  Attaching dbx I get the following
traceback.  You can see the loop:

>  0 _ioctl(0x0, 0x54d7, 0x10108c20, 0x0, 0x540f, 0x0, 0x3ff605c0,
0xfb5f450)
["/xlv22/ficusjan23/work/irix/lib/libc/libc_n32_M4/sys/ioctl.s":15,
0xfac47c8]
   1 ___new_tcsetattr(0x0, 0x54d7, 0x10108c20, 0x0, 0x540f, 0x0,
0x3ff605c0, 0xfb5f450)
["/xlv22/ficusjan23/work/irix/lib/libc/libc_n32_M4/term/new_tcsetattr.c
":48, 0xfacbae4]
   2 tcsetattr(__fd = 0, __act = 21519, __t = 0x10108c20)
["/usr/include/sys/termios.h":136, 0x100bd0c4]
   3 set_tty_settings(tty = 0, tiop = 0x10108c20)
["/net/alamo/export/home/dalke/ftps/readline-4.0/rltty.c":428, 0x100bd318]
   4 rl_deprep_terminal() [
"/net/alamo/export/home/dalke/ftps/readline-4.0/rltty.c":581, 0x100bd7a4]
   5 rl_cleanup_after_signal() [
"/net/alamo/export/home/dalke/ftps/readline-4.0/signals.c":361, 0x100c9118]
   6 rl_signal_handler(sig = 2) [
"/net/alamo/export/home/dalke/ftps/readline-4.0/signals.c":157, 0x100c8b24]
   7 sig_fixup_mask(0x0, 0x54d7, 0x10108c20, 0x0, 0x540f, 0x0, 0x3ff605c0,
0xfb5f450)
["/xlv23/patches/2420/work/irix/lib/libpthread/libpthread_n32_M3/sig.c":43
7, 0x3ff436ac]
   8 _sigtramp(0x0, 0x54d7, 0x0, 0x0, 0x540f, 0x0, 0x3ff605c0, 0xfb5f450)
["/xlv22/ficus-jan23/work/irix/lib/libc/libc_n32_M4/signal/sigtramp.s":61,
0xfaa1e60]
   9 _ksigaction(0x2, 0x7f0efd00, 0x10108e90, 0x0, 0x3ff585a0, 0x3ff58c60,
0xfffffffd, 0x0) [
"/xlv22/ficusjan23/work/irix/lib/libc/libc_n32_M4/signal/ksigaction.s":23
More (n if no)?, 0xfaa1db8]
   10 sigaction(0x0, 0x7f0efd00, 0x10108e90, 0x3ff43658, 0x3ff585a0,
0x3ff58c60, 0xfffffffd, 0x0) [
"/xlv23/patches/2420/work/irix/lib/libpthread/libpthread_n32_M3/sig.c":414,
0x3ff435e0]
   11 rl_set_sighandler(sig = 2, handler = 0x100c8ac0, ohandler =
0x10108e90)
["/net/alamo/export/home/dalke/ftps/readline-4.0/signals.c":242, 0x100c8c90]
   12 rl_maybe_set_sighandler(sig = 2, handler = 0x100c8ac0, ohandler =
0x10108e90) ["/net/alamo/export/home/dalke/ftps/readline-4.0/signals.c":259,
0x100c8cec]
   13 rl_set_signals() [
"/net/alamo/export/home/dalke/ftps/readline-4.0/signals.c":272, 0x100c8d80]
   14 rl_reset_after_signal() [
"/net/alamo/export/home/dalke/ftps/readline-4.0/signals.c":371, 0x100c917c]
   15 rl_signal_handler(sig = 2) [
"/net/alamo/export/home/dalke/ftps/readline-4.0/signals.c":179, 0x100c8b98]
   16 sig_fixup_mask(0x2, 0x7f0efd00, 0x10108e90, 0x0, 0x3ff585a0,
0x3ff58c60, 0xfffffffd, 0x0) [
"/xlv23/patches/2420/work/irix/lib/libpthread/libpthread_n32_M3/sig.c":437,
0x3ff436ac]
   17 _sigtramp(0x0, 0x7f0efd00, 0x0, 0x0, 0x3ff585a0, 0x3ff58c60,
0xfffffffd, 0x0) [
"/xlv22/ficus-jan23/work/irix/lib/libc/libc_n32_M4/signal/sigtramp.s":61,
0xfaa1e60]
   18 _ksigaction(0x2, 0x7f0f0220, 0x10108e90, 0x0, 0x3ff585a0, 0x3ff58c60,
0xfffffffd, 0x0) [
"/xlv22/ficus-jan23/work/irix/lib/libc/libc_n32_M4/signal/ksigaction.s":23
   19 sigaction(0x0, 0x7f0f0220, 0x10108e90, 0x3ff43658, 0x3ff585a0,
0x3ff58c60, 0xfffffffd, 0x0) [
"/xlv23/patches/2420/work/irix/lib/libpthread/libpthread_n32_M3/sig.c":414,
0x3ff435e0]
   20 rl_set_sighandler(sig = 2, handler = 0x100c8ac0, ohandler =
0x10108e90)
["/net/alamo/export/home/dalke/ftps/readline-4.0/signals.c":242, 0x100c8c90]
   21 rl_maybe_set_sighandler(sig = 2, handler = 0x100c8ac0, ohandler
0x10108e90) ["/net/alamo/export/home/dalke/ftps/readline-4.0/signals.c":259,
0x100c8cec]
   22 rl_set_signals() [
"/net/alamo/export/home/dalke/ftps/readline-4.0/signals.c":272, 0x100c8d80]
   23 rl_reset_after_signal() [
"/net/alamo/export/home/dalke/ftps/readline-4.0/signals.c":371, 0x100c917c]
   24 rl_signal_handler(sig = 2) ["
/net/alamo/export/home/dalke/ftps/readline-4.0/signals.c":179, 0x100c8b98]
   25 sig_fixup_mask(0x2, 0x7f0f0220, 0x10108e90, 0x0, 0x3ff585a0,
0x3ff58c60, 0xfffffffd, 0x0) [
"/xlv23/patches/2420/work/irix/lib/libpthread/libpthread_n32_M3/sig.c":437,
0x3ff436ac]
   26 _sigtramp(0x0, 0x7f0f0220, 0x0, 0x0, 0x3ff585a0, 0x3ff58c60,
0xfffffffd, 0x0) [
"/xlv22/ficus-jan23/work/irix/lib/libc/libc_n32_M4/signal/sigtramp.s":61,
0xfaa1e60]
   27 _ksigaction(0x2, 0x7f0f0740, 0x10108e90, 0x0, 0x3ff585a0, 0x3ff58c60,
0xfffffffd, 0x0) [
"/xlv22/ficus-jan23/work/irix/lib/libc/libc_n32_M4/signal/ksigaction.s"
:23, 0xfaa1db8]

  [...keeps on going for a while more...]

It *may* be that readline was compiled with gcc instead of cc.  I've
removed the build directory.  Scanning the .a file it looks like it
was compiled with cc, since I see a line:

cc -DEFAULT:abi=n32:isa=mips4:proc=r10k -c -DHAVE_CONFIG_H -I. -I.
 -I/usr/local/include "-DRL_LIBRARY_VERSION=\"4.0\"" -g -n32 funmap.c

but nothing about gcc nor egcs.

The machine is an 'IRIX64 origin 6.4 IP27'.  Yes, it should be ungraded.
The compiler is 'MIPSpro Compilers: Version 7.2.1'

                    Andrew
                    dalke at acm.org







More information about the Python-list mailing list