tests/backtrace-dwarf.c failure due to -freorder-blocks-and-partition

Martin Liška mliska@suse.cz
Fri Aug 3 07:41:00 GMT 2018


Hello.

As slightly discussed with Mark, there are tests that expect 'main'
will be present in backtrace. That's not always true on x86_64 because
-freorder-blocks-and-partition option is on by default. Then one can see:

[   88s] FAIL: run-backtrace-dwarf.sh
[   88s] ============================
[   88s] 
[   88s] 0x7f1fd49800cb	raise
[   88s] 0x7f1fd49694e9	abort
[   88s] 0x5627fddd0188	callme
[   88s] 0x5627fddd0192	doit
[   88s] 0x5627fddd01a3	main.cold.1
[   88s] 0x7f1fd496afeb	__libc_start_main
[   88s] 0x5627fddd04aa	_start
[   88s] /home/abuild/rpmbuild/BUILD/elfutils-0.173/tests/backtrace-dwarf: dwfl_thread_getframes: no error
[   88s] 0x5627fddd01a3	main.cold.1

Thus I'm suggesting to disable the option for tests?
Thoughts?
Martin



More information about the Elfutils-devel mailing list