bug-gnu-emacs
[Top][All Lists]
Advanced

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

infinite loop in terminal mode when catting a small perl script


From: John Palkovic
Subject: infinite loop in terminal mode when catting a small perl script
Date: 12 Jun 2002 14:56:38 -0000

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.2.1 (i686-pc-linux-gnu, X toolkit)
 of 2002-05-22 on coredump
configured using `configure  --prefix=/usr/local/stow/emacs-21.2'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: C
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

My home directory is mounted via NFS from this FreeBSD system:

meson:~> uname -a
FreeBSD meson.pcqt.com 4.6-RC FreeBSD 4.6-RC #0: Thu Jun  6 14:36:08 CDT 2002   
  root@meson.pcqt.com:/usr/obj/usr/src/sys/MESON  i386

In my home directory is a small perl script name "q.pl". Here it is:

  #!/usr/bin/perl

  while(<>)
  {
      if ($. == 1) {print "//\n//\t\$Id\$\n//\n";}
      print;
  }

If I do a M-x term<ret> to get a bash shell and then cd to my homedir
and issue the command 'cat q.pl' emacs (apparently) goes into an
infinite loop. I stopped emacs in gdb and generated the following
backtrace:

(gdb) bt
#0  gc_sweep () at /u/palkovic/bld/emacs-21.2/src/alloc.c:4921
#1  0x081114b7 in Fgarbage_collect () at 
/u/palkovic/bld/emacs-21.2/src/alloc.c:4189
#2  0x08122dd2 in Ffuncall (nargs=2, args=0xbfffe714)
    at /u/palkovic/bld/emacs-21.2/src/eval.c:2599
#3  0x0814948c in Fbyte_code (bytestr=942338516, vector=1214026240, maxdepth=6)
    at /u/palkovic/bld/emacs-21.2/src/bytecode.c:716
#4  0x08123547 in funcall_lambda (fun=1214026856, nargs=2, 
arg_vector=0xbfffe838)
    at /u/palkovic/bld/emacs-21.2/src/eval.c:2851
#5  0x081230b1 in Ffuncall (nargs=3, args=0xbfffe834)
    at /u/palkovic/bld/emacs-21.2/src/eval.c:2716
#6  0x08122995 in Fapply (nargs=2, args=0xbfffe8b4)
    at /u/palkovic/bld/emacs-21.2/src/eval.c:2169
#7  0x08122c91 in apply1 (fn=406221612, arg=1482604740)
    at /u/palkovic/bld/emacs-21.2/src/eval.c:2423
#8  0x0814d7e7 in read_process_output_call (fun_and_args=1482604748)
    at /u/palkovic/bld/emacs-21.2/src/process.c:2872
#9  0x081215f4 in internal_condition_case_1 (
    bfun=0x814d7cc <read_process_output_call>, arg=1482604748, 
handlers=405291324, 
    hfun=0x814d7ec <read_process_output_error_handler>)
    at /u/palkovic/bld/emacs-21.2/src/eval.c:1307
#10 0x0814db25 in read_process_output (proc=1212441136, channel=4)
    at /u/palkovic/bld/emacs-21.2/src/process.c:3053
#11 0x0814d668 in wait_reading_process_input (time_limit=30, microsecs=0, 
    read_kbd=268435455, do_display=1)
    at /u/palkovic/bld/emacs-21.2/src/process.c:2774
#12 0x08056ab3 in sit_for (sec=30, usec=0, reading=1, display=1, 
initial_display=0)
    at /u/palkovic/bld/emacs-21.2/src/dispnew.c:6247
#13 0x080d1ff3 in read_char (commandflag=1, nmaps=2, maps=0xbffff184, 
    prev_event=405195004, used_mouse_menu=0xbffff1cc)
    at /u/palkovic/bld/emacs-21.2/src/keyboard.c:2491
#14 0x080d84e3 in read_key_sequence (keybuf=0xbffff2d4, bufsize=30, 
    prompt=405195004, dont_downcase_last=0, can_return_switch_frame=1, 
    fix_current_buffer=1) at /u/palkovic/bld/emacs-21.2/src/keyboard.c:8180
#15 0x080d06c4 in command_loop_1 ()
    at /u/palkovic/bld/emacs-21.2/src/keyboard.c:1440
#16 0x081214f9 in internal_condition_case (bfun=0x80d03d0 <command_loop_1>, 
    handlers=405291324, hfun=0x80d0014 <cmd_error>)
    at /u/palkovic/bld/emacs-21.2/src/eval.c:1267
#17 0x080d02a8 in command_loop_2 ()
    at /u/palkovic/bld/emacs-21.2/src/keyboard.c:1245
#18 0x0812108d in internal_catch (tag=405252932, func=0x80d0284 
<command_loop_2>, 
    arg=405195004) at /u/palkovic/bld/emacs-21.2/src/eval.c:1030
#19 0x080d0257 in command_loop () at 
/u/palkovic/bld/emacs-21.2/src/keyboard.c:1224
#20 0x080cfdd1 in recursive_edit_1 ()
    at /u/palkovic/bld/emacs-21.2/src/keyboard.c:950
#21 0x080cff00 in Frecursive_edit ()
    at /u/palkovic/bld/emacs-21.2/src/keyboard.c:1006
#22 0x080cee6f in main (argc=3, argv=0xbffff894, envp=0xbffff8a4)
    at /u/palkovic/bld/emacs-21.2/src/emacs.c:1547
#23 0x402ff17f in __libc_start_main () from /lib/libc.so.6

If I put an strace on the looping emacs I see that it is
looping. 'top' shows emacs using 95% of the cpu (this is a 1 GHz
PIII). The strace output is at ftp://ftp.enteract.com/users/lepton/s.




Recent input:
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p <return> 
C-x 1 u C-x C-f C-a C-k / u / b l <tab> <backspace> 
<backspace> p a <tab> b l <tab> e m <tab> e t <tab> 
P R <tab> <return> C-s n f s C-s C-s C-s C-a M-< C-s 
f r e e b s d C-s C-s C-s C-s M-< C-x b <return> u 
M-x b u g <tab> <backspace> <backspace> <backspace> 
C-g C-h a b u g <return> <help-echo> q C-x 1 C-x k 
<return> M-x r e p o r t <tab> <return>

Recent messages:
Mark saved where search started
Mark set
Composing main Info directory...
Mark set
Composing main Info directory...done
call-interactively: Quit
Loading apropos...done
Loading view...done
Type C-x 1 to remove help window.  C-M-v to scroll the help.
Loading emacsbug...done



reply via email to

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