New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sage crashes printing copy of symbolic option inside Pynac. #10099
Comments
Attachment: trac_10099.patch.gz |
Author: Mike Hansen |
comment:2
The patch seems to work for me on my Sun Ultra 27 with OpenSolaris 06/2009 on a quad core Intel Xeon W3580 (clock speed of 3.33 GHz).
but I'm unable to give it positive review, as I don't understand the problem, or what this does. Dave |
Reviewer: Karl-Dieter Crisman, David Kirkby, Leif Leonhardy, Francois Bissey |
comment:3
This is fine.
No segfaults anymore, and the reason makes perfect sense for a failure, though I am surprised it was that dramatic :) |
comment:4
WHY you would do |
comment:5
Replying to @kcrisman:
True, but a program should not crash with invalid user input. In fact generating invalid input is a common way of testing software, to improve quality. Sometimes it's called Fuzz testing - see http://en.wikipedia.org/wiki/Fuzz_testing. http://www.ibm.com/developerworks/java/library/j-fuzztest.html IEEE 610.12:1990. Standard Glossary of Software Engineering Terminology. defines:
It's actually a common way for hackers to hack software. Developing some code to feed Sage invalid input to try to crash Sage, or otherwise leave it in a poor state, would make a very useful student project! Dave |
comment:6
Okay, and this also fixes things on Macintel 10.6. Even more positive review.
Agreed. Incidentally, (unrelated to this ticket, but inspired by reviewing it) I was noticing that a whole slew of the compiler warnings while building Sage are like this
Is it possible that a simple change to whatever flags are passed to Sage while compiling C++ (as opposed to C) in the core Sage library would remove all those warnings? Apparently gcc just ignores this option, but it's all over. I have no idea which Sage .pyx files become C and which become C++, of course. |
Changed reviewer from Karl-Dieter Crisman, David Kirkby, Leif Leonhardy, Francois Bissey to Karl-Dieter Crisman, David Kirkby, Leif Leonhardy, Francois Bissey, Jean-Pierre Flori |
comment:7
Replying to @kcrisman:
Don't ask me how I got to do that... |
Changed reviewer from Karl-Dieter Crisman, David Kirkby, Leif Leonhardy, Francois Bissey, Jean-Pierre Flori to Karl-Dieter Crisman, David Kirkby, Jean-Pierre Flori |
comment:8
I accidentally put in too many reviewers. Darn automatic completion and Trac boxes being tiny... |
Merged: sage-4.6.alpha3 |
This bug has been seen on several systems. See:
http://groups.google.com/group/sage-support/browse_thread/thread/ea1de9abbd6ca23d
Here on an OpenSolaris x86 machine, but also seen on Linux x86 and PPC OS X 10.4.
The bug appears to be in Pynac, as running GDB shows:
The relevent line in the file
./sage-4.6.alpha2/pynac-0.2.0.p5/src/ginac/ex.cpp
on line 58, which is here:CC: @burcin
Component: algebra
Author: Mike Hansen
Reviewer: Karl-Dieter Crisman, David Kirkby, Jean-Pierre Flori
Merged: sage-4.6.alpha3
Issue created by migration from https://trac.sagemath.org/ticket/10099
The text was updated successfully, but these errors were encountered: