Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

37 tests failed on Ubuntu 18.04 #106

Open
glock42 opened this issue Aug 23, 2020 · 3 comments
Open

37 tests failed on Ubuntu 18.04 #106

glock42 opened this issue Aug 23, 2020 · 3 comments

Comments

@glock42
Copy link

glock42 commented Aug 23, 2020

Running tests...
      Start  1: asm_pattern_nosyscall
 1/40 Test  #1: asm_pattern_nosyscall ..................***Exception: SegFault  0.08 sec
      Start  2: asm_pattern_pattern1
 2/40 Test  #2: asm_pattern_pattern1 ...................***Exception: SegFault  0.08 sec
      Start  3: asm_pattern_pattern2
 3/40 Test  #3: asm_pattern_pattern2 ...................***Exception: SegFault  0.08 sec
      Start  4: asm_pattern_pattern3
 4/40 Test  #4: asm_pattern_pattern3 ...................***Exception: SegFault  0.08 sec
      Start  5: asm_pattern_pattern4
 5/40 Test  #5: asm_pattern_pattern4 ...................***Exception: SegFault  0.08 sec
      Start  6: asm_pattern_pattern_loop
 6/40 Test  #6: asm_pattern_pattern_loop ...............***Exception: SegFault  0.08 sec
      Start  7: asm_pattern_pattern_loop2
 7/40 Test  #7: asm_pattern_pattern_loop2 ..............***Exception: SegFault  0.08 sec
      Start  8: asm_pattern_pattern_symbol_boundary0
 8/40 Test  #8: asm_pattern_pattern_symbol_boundary0 ...***Exception: SegFault  0.08 sec
      Start  9: asm_pattern_pattern_symbol_boundary1
 9/40 Test  #9: asm_pattern_pattern_symbol_boundary1 ...***Exception: SegFault  0.08 sec
      Start 10: asm_pattern_pattern_symbol_boundary2
10/40 Test #10: asm_pattern_pattern_symbol_boundary2 ...***Exception: SegFault  0.08 sec
      Start 11: asm_pattern_pattern_symbol_boundary3
11/40 Test #11: asm_pattern_pattern_symbol_boundary3 ...***Exception: SegFault  0.08 sec
      Start 12: asm_pattern_pattern_nop_padding0
12/40 Test #12: asm_pattern_pattern_nop_padding0 .......***Exception: SegFault  0.08 sec
      Start 13: asm_pattern_pattern_nop_padding1
13/40 Test #13: asm_pattern_pattern_nop_padding1 .......***Exception: SegFault  0.08 sec
      Start 14: asm_pattern_pattern_nop_padding2
14/40 Test #14: asm_pattern_pattern_nop_padding2 .......***Exception: SegFault  0.08 sec
      Start 15: asm_pattern_pattern_nop_padding3
15/40 Test #15: asm_pattern_pattern_nop_padding3 .......***Exception: SegFault  0.08 sec
      Start 16: asm_pattern_pattern_nop_padding4
16/40 Test #16: asm_pattern_pattern_nop_padding4 .......***Exception: SegFault  0.08 sec
      Start 17: asm_pattern_pattern_nop_padding5
17/40 Test #17: asm_pattern_pattern_nop_padding5 .......***Exception: SegFault  0.08 sec
      Start 18: asm_pattern_pattern_nop_padding6
18/40 Test #18: asm_pattern_pattern_nop_padding6 .......***Exception: SegFault  0.08 sec
      Start 19: asm_pattern_pattern_nop_padding7
19/40 Test #19: asm_pattern_pattern_nop_padding7 .......***Exception: SegFault  0.08 sec
      Start 20: asm_pattern_pattern_nop_padding8
20/40 Test #20: asm_pattern_pattern_nop_padding8 .......***Exception: SegFault  0.08 sec
      Start 21: asm_pattern_pattern_nop_padding9
21/40 Test #21: asm_pattern_pattern_nop_padding9 .......***Exception: SegFault  0.08 sec
      Start 22: asm_pattern_pattern_double_syscall
22/40 Test #22: asm_pattern_pattern_double_syscall .....***Exception: SegFault  0.08 sec
      Start 23: asm_pattern_pattern_rets
23/40 Test #23: asm_pattern_pattern_rets ...............***Exception: SegFault  0.08 sec
      Start 24: asm_pattern_pattern_jmps
24/40 Test #24: asm_pattern_pattern_jmps ...............***Exception: SegFault  0.08 sec
      Start 25: fork_logging
25/40 Test #25: fork_logging ...........................***Failed    0.10 sec
      Start 26: hook_with_shared
26/40 Test #26: hook_with_shared .......................***Failed    0.10 sec
      Start 27: hook_with_static
27/40 Test #27: hook_with_static .......................***Failed    0.09 sec
      Start 28: hook_clone
28/40 Test #28: hook_clone .............................***Failed    0.10 sec
      Start 29: filter_none
29/40 Test #29: filter_none ............................***Failed  Required regular expression not found.Regex=[hooked - allowed
]  0.10 sec
      Start 30: filter_positive
30/40 Test #30: filter_positive ........................***Failed  Required regular expression not found.Regex=[hooked - allowed
]  0.09 sec
      Start 31: filter_negative
31/40 Test #31: filter_negative ........................   Passed    0.01 sec
      Start 32: filter_negative_substring0
32/40 Test #32: filter_negative_substring0 .............   Passed    0.01 sec
      Start 33: filter_negative_substring1
33/40 Test #33: filter_negative_substring1 .............   Passed    0.01 sec
      Start 34: clone_thread
34/40 Test #34: clone_thread ...........................***Failed  Required regular expression not found.Regex=[clone_hook_child called
]  0.09 sec
      Start 35: prog_pie_intercept_libc_only
35/40 Test #35: prog_pie_intercept_libc_only ...........***Failed  Required regular expression not found.Regex=[original_syscall
]  0.09 sec
      Start 36: prog_no_pie_intercept_libc_only
36/40 Test #36: prog_no_pie_intercept_libc_only ........***Failed  Required regular expression not found.Regex=[original_syscall
]  0.09 sec
      Start 37: prog_pie_intercept_all
37/40 Test #37: prog_pie_intercept_all .................***Failed  Required regular expression not found.Regex=[intercepted_call
]  0.09 sec
      Start 38: prog_no_pie_intercept_all
38/40 Test #38: prog_no_pie_intercept_all ..............***Failed  Required regular expression not found.Regex=[intercepted_call
]  0.09 sec
      Start 39: vfork_logging
39/40 Test #39: vfork_logging ..........................***Failed  Required regular expression not found.Regex=[in_child_created_using_vfork
]  0.09 sec
      Start 40: syscall_format_logging
40/40 Test #40: syscall_format_logging .................***Failed    0.09 sec

8% tests passed, 37 tests failed out of 40

Total Test time (real) =   3.19 sec
The following tests FAILED:
      1 - asm_pattern_nosyscall (SEGFAULT)
      2 - asm_pattern_pattern1 (SEGFAULT)
      3 - asm_pattern_pattern2 (SEGFAULT)
      4 - asm_pattern_pattern3 (SEGFAULT)
      5 - asm_pattern_pattern4 (SEGFAULT)
      6 - asm_pattern_pattern_loop (SEGFAULT)
      7 - asm_pattern_pattern_loop2 (SEGFAULT)
      8 - asm_pattern_pattern_symbol_boundary0 (SEGFAULT)
      9 - asm_pattern_pattern_symbol_boundary1 (SEGFAULT)
     10 - asm_pattern_pattern_symbol_boundary2 (SEGFAULT)
     11 - asm_pattern_pattern_symbol_boundary3 (SEGFAULT)
     12 - asm_pattern_pattern_nop_padding0 (SEGFAULT)
     13 - asm_pattern_pattern_nop_padding1 (SEGFAULT)
     14 - asm_pattern_pattern_nop_padding2 (SEGFAULT)
     15 - asm_pattern_pattern_nop_padding3 (SEGFAULT)
     16 - asm_pattern_pattern_nop_padding4 (SEGFAULT)
     17 - asm_pattern_pattern_nop_padding5 (SEGFAULT)
     18 - asm_pattern_pattern_nop_padding6 (SEGFAULT)
     19 - asm_pattern_pattern_nop_padding7 (SEGFAULT)
     20 - asm_pattern_pattern_nop_padding8 (SEGFAULT)
     21 - asm_pattern_pattern_nop_padding9 (SEGFAULT)
     22 - asm_pattern_pattern_double_syscall (SEGFAULT)
     23 - asm_pattern_pattern_rets (SEGFAULT)
     24 - asm_pattern_pattern_jmps (SEGFAULT)
     25 - fork_logging (Failed)
     26 - hook_with_shared (Failed)
     27 - hook_with_static (Failed)
     28 - hook_clone (Failed)
     29 - filter_none (Failed)
     30 - filter_positive (Failed)
     34 - clone_thread (Failed)
     35 - prog_pie_intercept_libc_only (Failed)
     36 - prog_no_pie_intercept_libc_only (Failed)
     37 - prog_pie_intercept_all (Failed)
     38 - prog_no_pie_intercept_all (Failed)
     39 - vfork_logging (Failed)
     40 - syscall_format_logging (Failed)
Makefile:129: recipe for target 'test' failed

Ubuntu 18.04 LTS, GCC 7.5.0, GLIBC 2.27

@glock42
Copy link
Author

glock42 commented Aug 25, 2020

@GBuella Can you take a look? Thanks!

@GBuella
Copy link
Contributor

GBuella commented Sep 1, 2020

@glock42 I am unable to reproduce this on Ubuntu 18.04, perhaps some coredumps, and/or more detailed build logs could help.

@sudarsunkannan
Copy link

sudarsunkannan commented Sep 27, 2020

I face the same problem. I tried in a generic 4.15.0-118-generic kernel as well as a 4.8.12 kernel without any success. It works fine in 16.04 versions of ubuntu. Here are the steps I did in ubuntu 18.04. Please let me know if I am missing something.

cd syscall_intercept
mkdir release
cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
make test
sudo make install 
make test

Output: (all tests failed)

Test project /localhome/sudarsun/aecross/libfs/libshim/syscall_intercept/release
      Start  1: asm_pattern_nosyscall
 1/43 Test  #1: asm_pattern_nosyscall ..................***Exception: SegFault  0.39 sec
      Start  2: asm_pattern_pattern1
 2/43 Test  #2: asm_pattern_pattern1 ...................***Exception: SegFault  0.38 sec
      Start  3: asm_pattern_pattern2
... More errors...
```
I also tried the example.c in the README without using a make test, which resulted in the same issue.

Here is the output with GDB. Please let me know if you need more info?
```
Reading symbols from /bin/ls...(no debugging symbols found)...done.
(gdb) set environment LD_PRELOAD ./example.so
(gdb) run
Starting program: /bin/ls
During startup program terminated with signal SIGSEGV, Segmentation fault.
(gdb) backtrace
No stack.
```

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

3 participants