Created attachment 11740 [details] test logs The exelib.exp testcase regressed comparing rhel-7 and rhel-8. The test only runs with -O3 by default. Re-running it with -O0 showed some failures, and with -O0 the test passed. The first failure I see (with the default -O3) is: ======= 8.0 Server x86_64 # gcc /usr/share/systemtap/testsuite/systemtap.exelib/uprobes_lib.c -isystem/usr/share/systemtap/testsuite -isystem/usr/include -g -m32 -O3 -fPIC -shared -lm -o ./libuprobeslibgcc-O3-m32-debug.so 8.0 Server x86_64 # gcc /usr/share/systemtap/testsuite/systemtap.exelib/uprobes_exe.c -isystem/usr/share/systemtap/testsuite -isystem/usr/include -g -m32 -O3 -L. -luprobeslibgcc-O3-m32-debug -Wl,-rpath,. -lm -o ./uprobesgcc-O3-m32-debug-uprobeslibgcc-O3-m32-debug_exe 8.0 Server x86_64 # stap -w --ldd /usr/share/systemtap/testsuite/systemtap.exelib/libmarkunamestack.stp ./uprobesgcc-O3-m32-debug-uprobeslibgcc-O3-m32-debug_exe ./libuprobeslibgcc-O3-m32-debug.so -c ./uprobesgcc-O3-m32-debug-uprobeslibgcc-O3-m32-debug_exe main exe: main=main main_func: 3 exe: main_func=main_func print_ubacktrace exe 0 0x8048580 : main_func+0x0/0x50 [...yeyJV/uprobesgcc-O3-m32-debug-uprobeslibgcc-O3-m32-debug_exe] 0x8048422 : main+0x22/0x40 [...yeyJV/uprobesgcc-O3-m32-debug-uprobeslibgcc-O3-m32-debug_exe] main_count: 3 main_func: 2 exe: main_func=main_func print_usyms exe 1 0x8048580 : main_func+0x0/0x50 [...yeyJV/uprobesgcc-O3-m32-debug-uprobeslibgcc-O3-m32-debug_exe] 0x80485a7 : main_func+0x27/0x50 [...yeyJV/uprobesgcc-O3-m32-debug-uprobeslibgcc-O3-m32-debug_exe] 0x8048422 : main+0x22/0x40 [...yeyJV/uprobesgcc-O3-m32-debug-uprobeslibgcc-O3-m32-debug_exe] main_count: 2 main_func: 1 exe: main_func=main_func main_count: 1 lib_main lib: lib_main=lib_main lib_func: 3 lib: lib_func=lib_func print_ubacktrace lib 2 0xf7fc1480 : lib_func+0x0/0x50 [/tmp/tmp.98qTgyeyJV/libuprobeslibgcc-O3-m32-debug.so] 0xf7fc14f0 : lib_main+0x20/0x2c [/tmp/tmp.98qTgyeyJV/libuprobeslibgcc-O3-m32-debug.so] func_count: 5360 ^^^^^^^^^^^^^^^^^^ HERE the hitcount should be 3 Pass 5: run failed. [man error::pass5] (1) 8.0 Server x86_64 # =======
(In reply to Martin Cermak from comment #0) > Re-running it with -O0 showed some failures, and with -O0 the test passed. Should have read: Re-running with -O2 showed some (less) failures, and with -O0 the test passed. See attached test logs.