Skip to content
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

flapigen crashes on ppc64le #343

Open
tasn opened this issue Aug 15, 2020 · 2 comments
Open

flapigen crashes on ppc64le #343

tasn opened this issue Aug 15, 2020 · 2 comments

Comments

@tasn
Copy link

tasn commented Aug 15, 2020

It crashes when trying to generate Python code, only on ppc64le, the rest of the arches work.
Here's the output I'm getting from Travis: https://travis-ci.com/github/etesync/etebase-py/jobs/372388374

Just thought I would share, no idea what it may be though.

@Dushistov
Copy link
Owner

*** Error in `/project/target/release/build/flapigen-60f41546697ced46/build-script-build': malloc(): memory corruption (fast): 0x00000cf4043257e0 ***

  ======= Backtrace: =========

  /lib64/libc.so.6(+0x91e04)[0x719c76b81e04]

  /lib64/libc.so.6(+0x96d50)[0x719c76b86d50]

  /lib64/libc.so.6(__libc_malloc+0x8c)[0x719c76b88efc]

Looks slightly similar to this rust-lang/rust#55861 (tests on arm/android fails, and
finally find out that this was problem in android's libc allocator, and as result Rust team
increase minimal version of android that rust stdlib supports rust-lang/rust#45580).

May be this is the case and problem with libc on ppc64le.
If you have free time, it would be interesting to switch flapigen-rs to jemalloc and tests would it fails or not.

@tasn
Copy link
Author

tasn commented Aug 16, 2020

Different error than last time when trying to use jemalloc.

 error: failed to run custom build command for `flapigen v0.6.0-pre5 (https://github.com/Dushistov/flapigen-rs#47277cb5)`

  Caused by:

    process didn't exit successfully: `/target/release/build/flapigen-60f41546697ced46/build-script-build` (signal: 11, SIGSEGV: invalid memory reference)

  --- stdout

  cargo:rerun-if-changed=src/java_jni/jni-include.rs

https://travis-ci.com/github/etesync/etebase-py/jobs/372488301

Anyhow, no worries if you would rather not check this further as I understand it's a bit of a niche and it's most likely not an issue with flapigen but with something else. I just wanted to flag this in case you weren't aware.

Please feel free to close this ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants