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

Segmentation Fault in Sandbox #10

Open
gatoWololo opened this issue Sep 28, 2017 · 2 comments
Open

Segmentation Fault in Sandbox #10

gatoWololo opened this issue Sep 28, 2017 · 2 comments

Comments

@gatoWololo
Copy link

gatoWololo commented Sep 28, 2017

Hello, I'm trying to use the sandbox. When running it on a very simple bash script it seems to segfault once in a while, but not every time. ./sandbox /lib64/ld-linux-x86-64.so.2 /bin/bash breakWithShell.sh

breakWithShell.sh:

#!/bin/bash
/bin/bash ./breakWithShell2.sh
wait

breakWithShell2.sh:

#!/bin/bash
echo "Hello from child shell!"

Error: ./sandbox /lib64/ld-linux-x86-6…” terminated by signal SIGSEGV (Address boundary error).

From /var/log/kern.log:

kernel: [ 1437.685581] sandbox[2215]: segfault at ffffffffffffff78 ip 0000000070005a0e sp ffffffffffffff80 error 7 in sandbox[70000000+f000]

The instruction pointer points to __dune_retry as expected.

Running it multiple times under gdb I can eventually cause an ever worse error that creates an unkillable process. The OS refuses to restart and a hard reset on the computer is required.

The /var/long/kern.log output is pretty long (attached).

This is a minimal example of this bug that I have witnessed in other places as well. Any feedback on what might be causing the bug is greatly appreciated.

kernelBug.txt

@kkaffes
Copy link
Contributor

kkaffes commented Oct 2, 2017

Unfortunately, I haven't been able to reproduce your error on my machine. What do you mean by once in a while?

@gatoWololo
Copy link
Author

The command won't always segfault, it segfaults about half the time? The half it runs just fine. I'm using Kernel Version 4.4.1

I'll keep digging into it. I'll post anything I find.

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

2 participants