Setting followups to matplotlib-devel
> I get segfaults with ipython -pylab (and without the
> flag) quite a bit as well. They usually seem pretty
> random and frequent, but I found one way to reproduce.
> gentoo-linux ipython-0.6.15 matplotlib-cvs
> plot(rand(10)) a = gca() a.bbox<return> Segmentation
> fault
> This may not be a practical example, but it is the only
> consistent one I can find right now.
Hey Charles,
Thanks for reporting this. I'm not sure this is related to Steve's
bug, but it's good to know about.
I can reproduce your crash on ubuntu, and only in ipython. This is
independent of backends and can be reproduced with this minimal script
peds-pc311:~> python
Python 2.4.1 (#2, Mar 30 2005, 21:51:10)
[GCC 3.3.5 (Debian 1:3.3.5-8ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from matplotlib.transforms import unit_bbox
>>> b = unit_bbox()
>>> b
<Bbox object at 0x81e3a6c>
>>>
but in ipython I get the segfault
peds-pc311:~> ipython
Python 2.4.1 (#2, Mar 30 2005, 21:51:10)
Type "copyright", "credits" or "license" for more information.
IPython 0.6.16_cvs -- An enhanced Interactive Python.
? -> Introduction to IPython's features.
%magic -> Information about IPython's 'magic' % functions.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]: from matplotlib.transforms import unit_bbox
In [2]: b = unit_bbox()
In [3]: b
Segmentation fault
bbox is a pycxx extension object defined in src/_transforms.cpp
Something ipython is doing to represent the object is causing the
crash. I can do the following in ipython
In [1]: from matplotlib.transforms import unit_bbox
In [2]: b = unit_bbox()
In [3]: print b
<Bbox object at 0x82601c4>
In [4]: str(b)
Out[4]: '<Bbox object at 0x82601c4>'
Fernando, what kind of whacky magic are you doing when I type
In [5]: b
Segmentation fault
We've seen segfault's before when doing type inspection in pycxx; I've
reported this but haven't gotten any resolution
http://sourceforge.net/tracker/index.php?func=detail&aid=1210007&group_id=3180&atid=103180
JDH