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
Crash when saving figure with "special" text #4010
Comments
By following along in gdb, I've found that error is somewhat suppressed by the
(Note: |
One other thing to note is that ~50% of the time, the crash does not occur. Out of 100 runs, 54 crashed, but none of them triggered anything in valgrind. |
attn @mdboom |
The non-deterministic nature of this is rather worrying. That makes me suspect we have a buffer overflow someplace.... |
If this is being run in the context of the output handling code in #4018, this definitely could be a dupe (and thus outside of matplotlib). @QuLogic: Would you mind testing this in the context of the fixed output-redirecting handler, and reopen if that doesn't fix this issue as well. The unpredictable nature of this would be consistent with the file handle brokenness in #4018. |
Yep, you're right, #4018 is just a factored out version of this one with a different symptom. |
(This is possibly a continuation of #2635, but I am not 100% sure.)
I have not yet whittled down the problem to a simple test case, which is why I have called the text "special". If/when I can determine a smaller case, I will update the title, but I thought I'd post it here to get more eyes on the problem.
I'm sorry that the testing procedure is a bit complicated, but I hope I'll provide enough information to determine the problem. To test, you will need matplotlib 1.4.2 and the development version of ObsPy installed for Python 3 (it seem okay on Python 2). Then run the command
obspy3-runtests -d obspy.imaging.tests.test_scan.ScanTestCase.test_scan
(this runs only one test out of the testing framework).Here is the shortened backtrace (or see the full backtrace here):
PS, the reason I cannot shorten the example yet is that the test here runs another console script by calling its
main
function with the required arguments. However, if I run the console script directly, it does not crash.The text was updated successfully, but these errors were encountered: