-
Notifications
You must be signed in to change notification settings - Fork 675
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 on powerpc #1746
Comments
I've now tried it with
Weirdly, gdb doesn't see any arguments/parameters for any of the stack frames when i run this version of Suggestions welcome! |
That's interesting because we know of people building Firefox for powerpc, and that requires using bindgen... It seems off-hand it may be an issue with clang... But anyhow I do have access to https://cfarm.tetaneutral.net/machines/list/ so can take a look, though not this week at least. |
any word on this? It'd be nice to figure this out. |
nudging here |
@dkg it's a bit of a stretch but, are you building for 32-bit powerpc on 64-bit something? i wonder if this is a similar issue to paho.mqtt.rust#62 |
I too have access to the GCC compile farm. I tested on gcc112, a ppc64le machine.
I got some initially promising test failures and even a consistent segfault on I will try to test with a newer libclang. It appears that @dkg is using clang 9.0.1, so I will try to install that. In any case, it is perhaps a long shot that the error will appear on ppc64le since it was originally a ppc32 issue. Theoretically I could test with I will see what I can do in the next week or so. |
I have made some progress in getting infrastructure in place -- I got LLVM 9.0.0 and LLVM 10.0.0 on a ppc64le machine and |
Unfortunately I am not as close to getting a 32-bit PowerPC (especially big-endian) build environment ready as I thought. I am not actively planning on working on this for now. @dkg, if you are able to reproduce this inside a QEMU image, I could take another look. I know that is a lot of work, though. |
@kulp thanks for having taken a look at this. i don't have a qemu image handy -- my tests were done on perotto.debian.net, a 64-bit machine with a 32-bit chroot. so it might be related to eclipse/paho.mqtt.rust#62 but i'm not sure. I don't really understand that issue well. @ryankurte do you have any suggestions for ways i could try to do further debugging? |
On powerpc, bindgen crashes during the build. This is a known bug in bindgen. rust-lang/rust-bindgen#1746 PR: 270246 Sponsored by: Axcient Approved by: fernape (ports)
(see also https://bugs.debian.org/953648, on bindgen 0.51.1)
Input C/C++ Header
Bindgen Invocation
Actual Results
Expected Results
no segfault 😛
Weirdly, i note that i see no arguments for
strlen
at all in the backtrace here :/I don't know where to get the debug symbols for
std::ffi::c_str::CStr::from_ptr
either.I haven't tried this on the latest version of bindgen because debian hasn't moved to
clang_sys
0.29 yet.I recognize that not a lot of people have access to this platform, but I'm game to try any kind of debugging that you recommend, or to help an interested person get an account on the debian porterbox so you can experiment for yourself.
The text was updated successfully, but these errors were encountered: