-
-
Notifications
You must be signed in to change notification settings - Fork 19k
mingw32 build / test failures in ujson #1399
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
Conversation
Merged in. Build passes on mingw32 gcc 4.5.2 in EPD 7.1 but still segfaults; will check a newer mingw32 |
I was going to push more commits for ujson onto this branch / pull-request as I fix the various issues. Saves creating multiple branches / pull requests? |
Got it, got a bit carried away. I'll leave the PR open, sorry about the inconvenience |
Apologies for this getting a bit messy. I needed to cherry pick some commits from master to make the build succeed. |
Latest commit prevents segmentation faults if ujson runs out of memory (or malloc fails for some other reason). Still need to look into mingw segmentation faults but I can confirm reproducing them for EPD 7.1. My first guess is that it might be related to Python being built with VS 2008 and the extension built with mingw... |
Cool. I'm going to check EPD 7.3 and see if it's better. Still haven't gotten anything definitive from the ujson folks re: licensing-- if we haven't been able to resolve the segfaults within a few days will probably just factor out the extension so the release isn't held up. A bunch of other issues to close between now and then + lots of line test coverage to do |
I merged all these commits. I'll separate out the ujson extension today or tomorrow into a separate installable project (probably called pandasjson or something uninspiring) under pydata on GitHub so this doesn't hold up the release. |
Ok np. These last few fixes were motivated by testing on Yaroslav's SPARC box. Note I've tested with EPD 7.2 & 7.3 on Windows. No joy, still seeing the same problems, and my attempts at getting a Python debug build in windows have so far only ended in frustration.... With my own mingw the tests pass but I've seen a very occasional segmentation fault with an MSVC compilation. Happened twice during about 20 test runs, I haven't been able to reproduce it since but the one time it happened while running nose in verbose the segmentation fault occurred in I had some relevant valgrind output but my VM's just crashed. Will append it here once I get it back. Edit: |
valgrind on Ubuntu 32bit VM
|
Fixes for ujson #1387
First commit fixes mingw build issues. Builds ok and tests pass on my mingw and VS 2008, also tested on OSX. Needs testing on enthought mingw though.
More commits to come.