[Python-Dev] pdb segfaults in 2.5 trunk?
Jeremy Hylton
jeremy at alum.mit.edu
Mon Apr 10 21:39:44 CEST 2006
On 4/10/06, Phillip J. Eby <pje at telecommunity.com> wrote:
> Is anybody else getting this?
Neal had originally reported that test_trace failed with a segfault,
and it's essentially exercising the same code. I don't see a failure
there or here at the moment. If there is a bug, though, it's likely
to be in the line number table that the new compiler generates.
>
> Python 2.5a1 (trunk:45237, Apr 10 2006, 15:25:33)
> [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import pdb
> >>> def x():
> ... if 'a' in 'b':
> ... pass
> ...
> >>> pdb.run("x()")
> > <string>(1)<module>()
> (Pdb) s
> --Call--
> > <stdin>(1)x()
> (Pdb) s
> > <stdin>(2)x()
> (Pdb) s
> Segmentation fault
>
> It usually happens within a few 's' operations in pdb.
>>> def x():
... if 'a' in 'b':
... pass
...
[34945 refs]
>>> pdb.run('x()')
> <string>(1)<module>()->None
(Pdb) s
--Call--
> <stdin>(1)x()
(Pdb) s
--Return--
> <stdin>(1)x()->None
(Pdb) s
--Return--
> <string>(1)<module>()->None
(Pdb) s
[35023 refs]
>>>
[35023 refs]
[11168 refs]
Will try with a non-debug build soon.
Jeremy
More information about the Python-Dev
mailing list