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
Segfault in datetime.time.strftime("%z") #49273
Comments
Execution of "make test" for Python 2.6.1 halts with a segmentation PyOS_snprintf(buf, buflen, "%c%02d%s%02d", sign, hours, sep, minutes); Compiled with GCC 3.4.3 with Smashing Stack Protector on LFS 5.1.1 I have not yet compiled gdb, but I can if requested. |
Update: Undefining HAVE_SNPRINTF does not correct the problem. |
Can you debug this problem any further? What is the C call stack? Does |
I can reproduce this problem with Gentoo Hardened and when gdb-ing through the datetimemodule.c, and displaying the "tuple" |
@belopolsky: unittest exists, |
Philipp, Why do you think you see the same problem as Eric? Can you set a trace on &tuple and see when it gets modified? Do you see the crash with zone_failure.py, test_datetime.py or both? |
Unfortunately, I'm no longer able to reproduce this issue as I upgraded to gcc 4.3 sometime within the last nine months... |
Since this does not seem to be reproducible anymore, I am going to close this soon. |
Reproduced again in version 2.7rc2; I had thought that it went away, but it turns out that --with-pydebug hides the problem. Compiling GDB now. |
Since no one is able to reproduce this crash, I am going to close this issue. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: