[Bug: 21.5-b28] Crash while searching

Pete Forman pete.forman at westerngeco.com
Wed Feb 20 04:41:42 EST 2008


At 2008-02-20 08:45 +0000, Pete Forman wrote:
>I don't know what circumstances might reproduce the error.  The
>buffer this time was a Python file,

I've had success at reproducing the error.  Here is a cut down
version of the file that was giving me grief.  It uses UNIX line
endings though I'm running on XP.

To show the error, put the cursor at the beginning of "plus_pi".
Press C-s C-w
Then the crash happens

=== unwrap5.py ===
import numpy

def unwrap(phase, minFreqIndex):
     """Unwrap phase by adding multiples of 2*pi.
     """
   # pi is approximately 3.141592653589793238462643383279502884197
   #
   # In single precision, 3.1415925 < pi < 3.1415927
   # The nearest representation to pi (3.1415927) is greater than pi and >=
   # is the appropriate test for diff.
   #
   # In double precision, 3.1415926535897931 < pi < 3.1415926535897936
   # The nearest representation to pi (3.1415926535897931) is less 
than pi and >
   # would have been the appropriate test for diff.
   plus_pi = 3.1415927
   minus_pi = -3.1415927
   two_pi_dbl = 6.283185307179586
=== end of unwrap5.py ===

The problem is the same starting XEmacs with -q.

The problem is similar opening the raw file **1.  Then I see the crash
after C-s C-w C-w, probably because of the different mode syntax.


**1 I used this snippet to visit the raw file.
;; from Erik Naggum <erik at naggum.no>
(defun find-file-raw (filename)
   "Edit file FILENAME without the usual magic.
Switch to a buffer visiting file FILENAME,
creating one if none already exists."
   (interactive "FFind file: ")
   (switch-to-buffer (find-file-noselect filename nil t)))

-- 
Pete Forman                -./\.-  Disclaimer: This post is originated
WesternGeco                  -./\.-   by myself and does not represent
pete.forman at westerngeco.com    -./\.-   the opinion of Schlumberger or
http://petef.port5.com           -./\.-   WesternGeco.



More information about the XEmacs-Beta mailing list