Dear Maintainer,
the given backtrace should look like below with debug symbols installed.

For some reason it looks like the strchr at line 281 returns a null pointer.

Kind regards,
Bernhard


(gdb) bt no-filter
#0  __strlen_sse2 () at ../sysdeps/x86_64/multiarch/../strlen.S:120
#1  0x00007ffff6fc4dae in __GI___strdup (s=0x1 <error: Cannot access memory at 
address 0x1>) at strdup.c:41
#2  0x00007ffff471f5b4 in bench_result_benchmarkconf (section, key, values) at 
./modules/benchmark/bench_results.c:281
#3  0x00007ffff471fa4d in __benchmark_include_results (r, benchmark, 
order_type) at ./modules/benchmark.c:373
#4  0x00007ffff471fd8a in benchmark_include_results (benchmark, result) at 
./modules/benchmark.c:408
#5  callback_bfsh () at ./modules/benchmark/benches.c:33
...
(gdb) display/i $pc
1: x/i $pc
=> 0x7ffff6fd5206 <__strlen_sse2+38>:   movdqu (%rax),%xmm4

(gdb) list bench_results.c:281
276                 b->legacy = 1;
277
278                 /* old old format has prefix before cpu name (ex: 4x 
Pentium...) */
279                 nx = nx_prefix(key);
280                 if (nx > 0) {
281                     b->machine->cpu_name = strdup(strchr(key, 'x') + 1);
282                     b->machine->threads = nx;
283                 } else {
284                     b->machine->cpu_name = strdup(key);
285                     b->machine->threads = 1;

Reply via email to