home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / gnu / utils / bug / 1447 < prev    next >
Encoding:
Text File  |  1992-08-31  |  1.7 KB  |  57 lines

  1. Newsgroups: gnu.utils.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!dionysos.thphys.ox.ac.uk!trq
  3. From: trq@dionysos.thphys.ox.ac.uk
  4. Subject: bug in sed 1.09
  5. Message-ID: <9208310941.AA03256@thphys.ox.ac.uk>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Mon, 31 Aug 1992 09:41:23 GMT
  10. Approved: bug-gnu-utils@prep.ai.mit.edu
  11. Lines: 44
  12.  
  13. The following script will cause sed to abort in re_compile_fastmap()
  14. and dump core.  It appears that the 'on_failure_keep_string_jump'
  15. opcode is not handled by the switch in re_compile_fastmap().
  16.  
  17. This is GNU sed version 1.09 compiled with GCC version 2.2.2 on a
  18. Sparcstation ELC running SunOS 4.1.1.
  19.  
  20. The sed command:
  21.         ./sed -n                \
  22.         -e '/^\.c\.o:.*;/{'             \
  23.         -e    's/\$\*\.c//'             \
  24.         -e    's/^[^;]*;[        ]*//p' \
  25.         -e    q                         \
  26.         -e '}'                          \
  27.         -e '/^\.c\.o: *$/{'             \
  28.         -e    N                         \
  29.         -e    's/\$\*\.c//'             \
  30.         -e    's/^.*\n[  ]*//p'         \
  31.         -e    q                         \
  32.         -e '}' < mf
  33. and the file "mf" contains:
  34. .c.o:
  35.     $(CCCMD) $*.c
  36. The following is a suggested patch:
  37. ===================================================================
  38. RCS file: RCS/regex.c,v
  39. retrieving revision 1.1
  40. diff -c -r1.1 regex.c
  41. *** 1.1    1992/08/31 09:18:53
  42. --- regex.c    1992/08/31 09:20:38
  43. ***************
  44. *** 2436,2441 ****
  45. --- 2436,2442 ----
  46.       case notwordbound:
  47.       case wordbeg:
  48.       case wordend:
  49. +     case on_failure_keep_string_jump:
  50.             continue;
  51.   
  52. Tom Quinn        Theoretical Physics, University of Oxford
  53. Internet:      trq@dionysos.thphys.ox.ac.uk
  54. JANET:         trq@uk.ac.ox.astro
  55. Phone:         44-865-273956
  56.  
  57.