[Zope-dev] Confusing segfault for Zope2 head on RH7.3

Barry A. Warsaw barry@zope.com
Wed, 17 Jul 2002 18:22:25 -0400


>>>>> "MTK" == Matthew T Kromer <matt@zope.com> writes:

    MTK> On *my* RedHat 7.3 system, I cannot reproduce your problem.

    MTK> However, you do note that exception 0x6e727574 is ASCII for
    MTK> 'nrut' or 'turn' backwards.  I dont know if that's meaningful
    MTK> or not.  I usally watch out for ASCII in things that should
    MTK> otherwise be addresses.

Ah, backwards masking C heaps!  If you look at the whole thing, it
says:

    'natas fo rial eht retne ton ot dna dnuora nrut'

Actually the tale gets weirder.  With a Python 2.2.1 --with-pydebug
build there is no crash at all.  With a Python 2.1.3 built w/ gcc 3.1
and -g and -O2 I get no crash but this exception:

Traceback (most recent call last):
  File "crash.py", line 8, in ?
    list(x)
SystemError: error return without exception set

With a Python 2.1.3 built w/gcc 3.1 and just -g (no -O2) I get some
weird worst-of-both-worlds:

Traceback (most recent call last):
  File "crash.py", line 8, in ?
    list(x)
Segmentation fault (core dumped)

So I'm totally confuzzled and am sick of wasting time on this, so I
think I'll just trust Python 2.2.1.

;)

-Barry