-
Notifications
You must be signed in to change notification settings - Fork 16
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
Build mongo 3.2.x on ARM (armv7l/arm64/aarch64) - segmentation fault #57
Comments
Hello Tom Please can you post the output of the segmentation fault by typing Regards |
Attached you find also the core dump from running This was done on linaro cluster / arm64 (aarch64) |
Thanks Tom much appreciated. Just another thing if you could. Would you mind running the same command with If it's too much to copy paste then just run it like this... |
Hopefully output of |
Yes it does but mongo still seg fault. New trace attached. |
Yeah I see it's still dying out at the same place unable to get any of those threads going. Perhaps repeat that command but pass --64bit on to it. In case it is not detecting it correctly since it's an Arm64 processor.
|
Hi Keith @cyphernix there is no option I do now a fresh 3.3.9 build while replacing most of the included 3rdparty libraries by system ones. I will post an update when compile is done. |
Sounds like a plan. Hard to diagnose this as I don't have any device with that Architecture near me at the moment so working blind. Sorry for the back and fourth mate. |
Well after running a number of builds and checks, I switched into mongo release branch r3.3.9. Doing the same build as always, this release seems to work on (at least) arm64. I will run a check if this is ok for armv7 as well. Attention: Target needs to be |
Hi @benjamn will it be possible to change the mongo release to at least r3.3.9 instead of r3.2.6 https://github.com/meteor/meteor/blob/release-1.4/scripts/build-dev-bundle-common.sh#L8 r3.2.6 seems not to work (mongo shell) for ARM but >r3.3.9 Thanks for a short note |
@benjamn - sorry for silly question - r3.3.9 is still development - so I am trying to check r3.2.8 |
OMG 👎 r3.2.8 has still Seg Fault I will check from r3.3.0 up to r3.3.9 if possible to locate the fix Update: r3.3.0 up to r3.3.4 still Seg Fault Hopefully the issue is addressed by a small changset |
Hey Tom have you read this MongoDB ticket... |
If you issue ./mongo --help the binary works but the connection has issues dealing with a non existant database. Seg Faulting instead of failing gracefully at the non existant database. The offending code is in
|
Hey @cyphernix I have checked the hash but all is already applied to r3.2.8. Still Seg Fault - it seems that just r3.3.9 is running - see comment before, up to r3.3.8 none works. |
Ah yes I see what you mean so it's affected from r3.2.8 until 3.3.8. Just check that and see they have added this to it.
|
Hey @cyphernix Keith As you can read above, r3.3.9 is the one is running - all releases before have seg fault issue. I will do a compare but maybe this is a huge changeset :-( |
Perhaps just including the fix from 3.3.9 in mongo_uri_connect.cpp and apply it to one of the older versions will be easier? That I will leave up to you to decide. Although I'm glad we both finally managed to get to the bottom of this issue... :-) |
Can you post the lines please - which fix do mean? This is the complete changeset - mongodb/mongo@r3.3.8...r3.3.9 |
On the server run this command.
|
While the mongod (DB) is running well after build without seen issues yet, it is not possible to get a running mongo shell [with or without javascript (mozjs) support enabled] after build.
Simple build:
Even that this build will be run on all tested platforms and architectures (Linux on armv7l, aarch64, amd64) without issues during compiling, the results in case of running programs differs.
Running mongo command after build on amd64:
Just run mongo shell and try to connect to a non existing instance
this will give this output:
Running mongo command after build on aarch64/armv7l:
Instead of this, the output on ARMs is just:
It seems to me that the TCP connection part might bring up that "SEGMENTATION FAULT" but I can't debug this.
I would be happy about any help to get this run.
The text was updated successfully, but these errors were encountered: