dune icon indicating copy to clipboard operation
dune copied to clipboard

Bus error: 10

Open OxMarco opened this issue 7 years ago • 8 comments

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

OxMarco avatar May 15 '18 09:05 OxMarco

Hi,

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

  • are you running master hash https://github.com/LSTS/dune/commit/213b32f4742467ed7d56743848c991bd0b41503f ?
  • which configuration?
  • which OS
  • was that a one-off, or does it happen persistently ?

can you describe the steps?

Thanks

josebraga avatar May 18 '18 16:05 josebraga

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

OxMarco avatar May 19 '18 09:05 OxMarco

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

josebraga avatar May 21 '18 09:05 josebraga

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

OxMarco avatar May 29 '18 22:05 OxMarco

Any updates on this @grcasanova ?

zepinto avatar Jul 12 '18 10:07 zepinto

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.

OxMarco avatar Jul 21 '18 10:07 OxMarco

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

adallolio avatar Aug 06 '18 10:08 adallolio

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.

OxMarco avatar Aug 15 '18 21:08 OxMarco