[Python-bugs-list] Bug in re module (PR#36)
Skip Montanaro
skip@mojam.com (Skip Montanaro)
Sat, 24 Jul 1999 00:21:49 -0500 (CDT)
Chenna> Hello I get
Chenna> Stack overflow: pid 14731, proc emparse1.py, addr 0x11fdfffd8, pc 0x120068cd8
Chenna> Segmentation fault
Chenna> when I run the following. The problem is re module unable to
Chenna> search for the pattern that is too large, but this is a
Chenna> requirement for my application in biology. I enclose the source
Chenna> code with this.
Chenna> Please email me the solution as soon as possible
Well, you could run it on a different machine, I suppose. I ran it on my
Linux P-II box and got a ton of lines that looked like
tcagtcagtg tcagtcagtg tcagtcagtg tcagtcagtg tcagtcagtg tcagtcagtg
followed by
==> cc
None
==> dr
None
==> ft
None
==> ac
None
My assumption is that since it didn't segfault, I got the right answer. ;-)
For future reference, when posting code that's giving you problems you
should also post the expected output. It will help others know if they are
getting expected or unexpected behavior. Also, distilling the problem down
to a simple example (less than 100 lines) is very helpful. I just glanced
at your regular expressions and didn't see anything particular heinous about
them. What makes you think they are the cause of the segfault?
Skip Montanaro | http://www.mojam.com/
skip@mojam.com | http://www.musi-cal.com/~skip/
847-475-3758