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 while compiling Python 3000 in OpenBSD 4.4 #47935
Comments
I tried to compile Python 3000 under OpenBSD and the compilation fails Fatal Python error: can't create sys.path Stop in /home/henry/compile/py3k (line 410 of Makefile). The command which fail is: Here is the backtrace: (gdb) r -E ./setup.py build Program received signal SIGABRT, Aborted. I also have core file. If you are interested mail me. |
I forgot to mention, I made to following modification to configure.in so --- configure.in (revision 66037)
+++ configure.in (working copy)
@@ -250,7 +250,7 @@
# On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
# even though select is a POSIX function. Reported by J. Ribbens.
# Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
- OpenBSD/2.* | OpenBSD/3.@<:@0123456789@:>@ | OpenBSD/4.@<:@0123@:>@)
+ OpenBSD*)
define_xopen_source=no
# OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
# also defined. This can be overridden by defining _BSD_SOURCE |
This problem is due to OpenBSD's libc bug. |
Indeed it looks like it is the source of the problem. I created a patch to fix it. But it looks like there is another problem, instead of crashing the I don't think it is related, I have checked the result of ws = ws + I will investigate the problem and create another entry if it is unrelated. |
Looks like my other issue is unrelated. It is caused by a buggy mbstowcs. |
Here is a better patch which use the workaround only if wcschr is broken. I was able to build the python interpreter and to run regrtest.py with |
Is there any problem with always computing the end of the string as "s + Here is a patch that does that. It doesn't change PC/getpathp.c, since Henry, can you confirm that this patch still fixes the problem? |
I just tested the patch and it fixes the problem. |
r66948 |
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: