Skip to content
This repository has been archived by the owner on Jun 9, 2020. It is now read-only.

Segmentation fault on MacOS Sierra #76

Open
vladandreiturtoi opened this issue Sep 5, 2018 · 1 comment
Open

Segmentation fault on MacOS Sierra #76

vladandreiturtoi opened this issue Sep 5, 2018 · 1 comment

Comments

@vladandreiturtoi
Copy link

On MacOS Sierra version 10.13.6

Trying to run bitcoin-cli

./bitcoin-cli -testnet
Segmentation fault

Have no tried any other executable, but the executable works on ubuntu docker containers running ubuntu:17.10

@jmgc
Copy link

jmgc commented Nov 10, 2018

I have build noah from scratch:

mkdir build
cmake ..
make
make test

The resulting log is:

Start testing: Nov 10 14:23 CET
----------------------------------------------------------
1/1 Testing: all
1/1 Test: all
Command: "/Workspace/noah/test/test.rb" "/Workspace/noah/build/noah"
Directory: /Workspace/noah/test
"all" start time: Nov 10 14:23 CET
Output:
----------------------------------------------------------

===============
Test Starts
===============

XXXXXXXXXXXFXXXFFFFF

0) test_execve
Assertion failed: (!tmp), function check_vm_entry, file /Workspace/noah/src/main.c, line 150.
test_execve stopped prematurely!!
1) test_sigpending
Assertion failed: (!tmp), function check_vm_entry, file /Workspace/noah/src/main.c, line 150.
test_sigpending stopped prematurely!!
2) test_sigaltstack
Assertion failed: (!tmp), function check_vm_entry, file /Workspace/noah/src/main.c, line 150.
test_sigaltstack stopped prematurely!!
3) test_sigaction
Assertion failed: (!tmp), function check_vm_entry, file /Workspace/noah/src/main.c, line 150.
test_sigaction stopped prematurely!!
4) test_fork
Assertion failed: (!tmp), function check_vm_entry, file /Workspace/noah/src/main.c, line 150.
test_fork stopped prematurely!!
5) test_execve2
Assertion failed: (!tmp), function check_vm_entry, file /Workspace/noah/src/main.c, line 150.
test_execve2 stopped prematurely!!
6) test_thread
Assertion failed: (!tmp), function check_vm_entry, file /Workspace/noah/src/main.c, line 150.
test_thread stopped prematurely!!
7) fib
Assertion failed: (!tmp), function check_vm_entry, file /Workspace/noah/src/main.c, line 150.
fib stopped prematurely!!
8) test_sigprocmask
Assertion failed: (!tmp), function check_vm_entry, file /Workspace/noah/src/main.c, line 150.
test_sigprocmask stopped prematurely!!
9) cat
Assertion failed: (!tmp), function check_vm_entry, file /Workspace/noah/src/main.c, line 150.
sh: line 1:  4838 Abort trap: 6           /Workspace/noah/build/noah --mnt="/Workspace/noah/test/testing_root" test_stdout/build/cat < /Workspace/noah/test/test_stdout/cat.stdin
== Expected
hello,
hello,
world!
== Actual

==
cat stopped prematurely!!
10) sendmmsg
Assertion failed: (!tmp), function check_vm_entry, file /Workspace/noah/src/main.c, line 150.
sh: line 1:  4840 Abort trap: 6           /Workspace/noah/build/noah --mnt="/Workspace/noah/test/testing_root" test_stdout/build/sendmmsg < /dev/null
== Expected
2 messages sent
== Actual

==
sendmmsg stopped prematurely!!
11) echo
Assertion failed: (!tmp), function check_vm_entry, file /Workspace/noah/src/main.c, line 150.
sh: line 1:  4842 Abort trap: 6           /Workspace/noah/build/noah --mnt="/Workspace/noah/test/testing_root" test_stdout/build/echo hello, world!
== Expected
hello, world!
== Actual

==
12) sigreturn_bug
Assertion failed: (!tmp), function check_vm_entry, file /Workspace/noah/src/main.c, line 150.
sh: line 1:  4844 Abort trap: 6           /Workspace/noah/build/noah --mnt="/Workspace/noah/test/testing_root" test_stdout/build/sigreturn_bug < /dev/null
== Expected
child pid
sigchld arrived
dead pid equals pid!
== Actual

==
sigreturn_bug stopped prematurely!!
13) hello
Assertion failed: (!tmp), function check_vm_entry, file /Workspace/noah/src/main.c, line 150.
sh: line 1:  4846 Abort trap: 6           /Workspace/noah/build/noah --mnt="/Workspace/noah/test/testing_root" test_stdout/build/hello < /dev/null
== Expected
hello, world!
== Actual

==
hello stopped prematurely!!
14) sigsuspend
Assertion failed: (!tmp), function check_vm_entry, file /Workspace/noah/src/main.c, line 150.
sh: line 1:  4848 Abort trap: 6           /Workspace/noah/build/noah --mnt="/Workspace/noah/test/testing_root" test_stdout/build/sigsuspend < /dev/null
== Expected
waiting for a signal...
14
== Actual

==
sigsuspend stopped prematurely!!
15) gcc
Assertion failed: (!tmp), function check_vm_entry, file /Workspace/noah/src/main.c, line 150.
test_shell/gcc.sh: line 10:  4853 Abort trap: 6           $NOAH /usr/bin/gcc $HELLO.c -o $BIN
Error: Permission denied
16) gcc_pic
Assertion failed: (!tmp), function check_vm_entry, file /Workspace/noah/src/main.c, line 150.
test_shell/gcc_pic.sh: line 10:  4860 Abort trap: 6           $NOAH /usr/bin/gcc -fPIC -pie $HELLO.c -o $BIN
Error: Permission denied
17) env
Assertion failed: (!tmp), function check_vm_entry, file /Workspace/noah/src/main.c, line 150.
test_shell/env.sh: line 1:  4864 Abort trap: 6           NOAH=OK $NOAH $TARGET
18) nc
Assertion failed: (!tmp), function check_vm_entry, file /Workspace/noah/src/main.c, line 150.
Assertion failed: (!tmp), function check_vm_entry, file /Workspace/noah/src/main.c, line 150.
test_shell/nc.sh: line 5:  4866 Abort trap: 6           $NOAH $TARGET -l 8082 <<< "hello"
19) mv
Assertion failed: (!tmp), function check_vm_entry, file /Workspace/noah/src/main.c, line 150.
test_shell/mv.sh: line 4:  4871 Abort trap: 6           $NOAH $TARGET $TEMP1 $TEMP2

===============
Assertion Test:
  Pass: 0, Fail: 0
  Premature Test Programs: 9
  Total Assertions: 0
Output Test:
  Pass: 0, Fail: 1
  Premature Test Programs: 5
  Total Test Programs: 6
Shell Test:
  Pass: 0, Fail: 5
  Total Test Programs: 5
<end of output>
Test time =   0.38 sec
----------------------------------------------------------
Test Failed.
"all" end time: Nov 10 14:23 CET
"all" time elapsed: 00:00:00
----------------------------------------------------------

End testing: Nov 10 14:23 CET

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

No branches or pull requests

2 participants