[EXT] Re: Test failure on ARM: backtrace_append

Aki Tuomi aki.tuomi at open-xchange.com
Fri Feb 21 15:32:56 EET 2020


So the problem is that we got no backtrace at all, which means that your
system is not working as expected. If you have no libunwind installed
(with headers) then it will use libc backtrace get, which apparently on
your system is producing failure. You can try adding
-UHAVE_BACKTRACE_SYMBOLS and -UHAVE_WALKCONTEXT to EXTRA_CFLAGS, this
will disable backtrace_get in dovecot with no other side effects.

So basically, ./configure ... EXTRA_CFLAGS="-UHAVE_BACKTRACE_SYMBOLS
-UHAVE_WALKCONTEXT" or remove them from config.h before compiling.

Aki

On 21.2.2020 14.23, Julien Lepiller wrote:
> Le Fri, 21 Feb 2020 07:25:15 +0200 (EET),
> Aki Tuomi <aki.tuomi at open-xchange.com> a écrit :
>
>> Thank you,
>>
>> as I don't have arm at hand, can you provide
>>
>> gdb .test-lib core
>> bt full
>>
>> output?
>> ---
>> Aki Tuomi
>>
> There you are (sorry for the long file names, that's how guix works,
> it's expected):
>
> [New LWP 21501]
> Core was generated by `./test-lib'.
> Program terminated with signal SIGSEGV, Segmentation fault.
> #0  0xb6e24d30 in strchr () from
> /gnu/store/n7c20pjm6q1xq1gqjqzzys1yk9fy7n1k-glibc-2.29/lib/libc.so.6
> (gdb) bt full
> #0  0xb6e24d30 in strchr () from
> /gnu/store/n7c20pjm6q1xq1gqjqzzys1yk9fy7n1k-glibc-2.29/lib/libc.so.6
> No symbol table info available.
> #1  0xb6e26094 in strstr () from
> /gnu/store/n7c20pjm6q1xq1gqjqzzys1yk9fy7n1k-glibc-2.29/lib/libc.so.6
> No symbol table info available.
> #2  0x000144fe in test_backtrace_get () at test-backtrace.c:45
>         bt = 0x0
>         bt = <optimized out>
> #3  test_backtrace () at test-backtrace.c:56
> No locals.
> #4  0x000353a4 in test_run_named_funcs (tests=tests at entry=0x6608c
> <test_functions>, match=match at entry=0x6ddcc "") at test-common.c:288
>         _data_stack_cur_id = 2
>         i = <optimized out>
> #5  0x00035bf0 in test_run_named_with_fatals (match=0x6ddcc "",
> tests=0x6608c <test_functions>, fatals=0x6603c <fatal_functions>) at
> test-common.c:370
> No locals.
> #6  0xb6de6426 in __libc_start_main () from
> /gnu/store/n7c20pjm6q1xq1gqjqzzys1yk9fy7n1k-glibc-2.29/lib/libc.so.6
> No symbol table info available.
> #7  0x00013268 in _start ()
> No symbol table info available.
> Backtrace stopped: previous frame identical to this frame (corrupt
> stack?)
> (gdb) 
>



More information about the dovecot mailing list