Le jeudi 03 mai, Simon King a écrit:
> Hi Martin,
> 
> On 2012-05-03, Martin Albrecht <martinralbre...@googlemail.com> wrote:
> >> Anyway. What tools are recommended for tracking the problem down? I
> >> tried valgrind, but when I interrupted the test with Ctrl-c (which
> >> is necessary because it hangs after reporting the double free),
> >> there seems to be no output from valgrind.
> >
> > I'd try to find a way to reproduce it outside of the doctest
> > framework and then try to make it crash with sage -gdb. 
> 
> I did try. I ran the test in --verbose mode, and it turned out that
> the crash already occurs after 6 commands (including
> change_warning_output(sys.stdout)).
> 
> However, when I give the same commands in an interactive session
> (without change_warning_output(sys.stdout), since I don't know where
> to import that from), there is no crash. That's not good for
> debugging. I could try to control garbage collection, though. Perhaps
> that's triggering the crash.

I suggest to modify the .py by commenting out that line, then run
the non-interactive test -- to see if it's indeed the culprit.

Snark on #sagemath

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to