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

Bus error: 10 #128

Open
OxMarco opened this issue May 15, 2018 · 8 comments
Open

Bus error: 10 #128

OxMarco opened this issue May 15, 2018 · 8 comments

Comments

@OxMarco
Copy link

OxMarco commented May 15, 2018

Hello,
when trying to execute a UAV simulation, upon connecting to the HTTP host, I encounter the following error:
Bus error: 10 (core dumped)
What could be the reason for a Bus failure and set. fault?
Thanks

@josebraga
Copy link
Member

Hi,

I have no idea what may be causing it, so can you please provide more information?

  • are you running master hash 213b32f ?
  • which configuration?
  • which OS
  • was that a one-off, or does it happen persistently ?

can you describe the steps?

Thanks

@OxMarco
Copy link
Author

OxMarco commented May 19, 2018

I am on Mac high Sierra, whenever I try running the simulator and then connecting via browser/curl the bus error comes in. I tried with other configurations, the error seem to be there
./dune -c ../etc/x8-02 -p Simulation

@josebraga
Copy link
Member

I do not have a mac available and I am do not get that error in my linux.

Any chance you have the time to run it using valgrind or similar tool?

Thanks

@OxMarco
Copy link
Author

OxMarco commented May 29, 2018

I can try with lldb on Mac and see if there is a seg fault or similar

@zepinto
Copy link
Member

zepinto commented Jul 12, 2018

Any updates on this @grcasanova ?

@OxMarco
Copy link
Author

OxMarco commented Jul 21, 2018

Here is the output of lldb

Process 1090 stopped
* thread #2, stop reason = EXC_BAD_ACCESS (code=2, address=0x700000722000)
    frame #0: 0x00007fff5b8e604f libsystem_platform.dylib`_platform_memmove$VARIANT$Haswell + 303
libsystem_platform.dylib`_platform_memmove$VARIANT$Haswell:
->  0x7fff5b8e604f <+303>: vmovaps %ymm1, (%rdi)
    0x7fff5b8e6053 <+307>: vmovaps %ymm2, 0x20(%rdi)
    0x7fff5b8e6058 <+312>: addq   $0x40, %rdi
    0x7fff5b8e605c <+316>: vmovups (%rsi), %ymm1
Target 0: (dune) stopped.

@adallolio
Copy link

Hi,
you can go for a Docker solution, easy and plug&play:
https://github.com/adallolio/LSTS-toolchain-macOS
This will allow to run the toolchain from Mac in few steps, you may just want to modify the Dockerfile with the clone of the repository you actually need (by default is the public LSTS repository).

Cheers
Alberto

@OxMarco
Copy link
Author

OxMarco commented Aug 15, 2018

I believe using a Docker workaround is just detrimental to the project development, since this error is surely a symptom that shouldn't be neglected; if it were to happen on a real model, it could cause a crash.

Apparently it's a bad pointer allocation (raises a BAD_ACCESS exception), I will try to debug further.
I also suggest to reach out ArduPilot developers, it would be nice to add DUNE to the suggested companion computer setups.

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

No branches or pull requests

4 participants