Bug#1033656: bt full with dbgsym

2023-07-23 Thread Uwe Kleine-König
Control: affects -1 + minidlna

The same bug affects minidlna:

uwe@crater:~$ gdb /usr/sbin/minidlnad
GNU gdb (Debian 13.1-3) 13.1
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/minidlnad...
Reading symbols from 
/usr/lib/debug/.build-id/8d/c7b6b6d717dcb1c814fff9a3e5a4dba526.debug...
(gdb) run
Starting program: /usr/sbin/minidlnad
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".

Program received signal SIGILL, Illegal instruction.
hwy::(anonymous namespace)::robust_statistics::CountingSort 
(values=0xbeffecb8, num_values=256)
at ./hwy/nanobenchmark.cc:214
214 ./hwy/nanobenchmark.cc: No such file or directory.
(gdb) disassemble
Dump of assembler code for function hwy::(anonymous 
namespace)::robust_statistics::CountingSort(unsigned long 
long*, size_t):
   0xb546afb0 <+0>: stmdb   sp!, {r4, r5, r6, r7, r8, r9, r10, r11, lr}
   0xb546afb4 <+4>: mov r9, r1
   0xb546afb6 <+6>: ldr r1, [pc, #492]  @ (0xb546b1a4 (unsigned long 
long*, size_t)+500>)
   0xb546afb8 <+8>: sub sp, #52 @ 0x34
   0xb546afba <+10>:ldr r2, [pc, #492]  @ (0xb546b1a8 (unsigned long 
long*, size_t)+504>)
   0xb546afbc <+12>:add r1, pc
=> 0xb546afbe <+14>:vmov.i32d16, #0 @ 0x
   0xb546afc2 <+18>:movsr6, #0
   0xb546afc4 <+20>:str r6, [sp, #16]
   0xb546afc6 <+22>:ldr r2, [r1, r2]
   0xb546afc8 <+24>:ldr r2, [r2, #0]
   0xb546afca <+26>:str r2, [sp, #44]   @ 0x2c
   0xb546afcc <+28>:mov.w   r2, #0
   0xb546afd0 <+32>:vstrd16, [sp, #8]
   0xb546afd4 <+36>:cmp.w   r9, #0
   0xb546afd8 <+40>:beq.w   0xb546b180 (unsigned long 
long*, size_t)+464>
   0xb546afdc <+44>:mov r4, r0
   0xb546afde <+46>:mov r5, r6
   0xb546afe0 <+48>:mov r8, r6
   0xb546afe2 <+50>:mov.w   r10, #1
   0xb546afe6 <+54>:add.w   r11, sp, #24
   0xb546afea <+58>:sub.w   r3, r0, #8
   0xb546afee <+62>:str r3, [sp, #4]
   0xb546aff0 <+64>:ldr r2, [sp, #4]
   0xb546aff2 <+66>:subsr3, r5, r6
   0xb546aff4 <+68>:mov.w   r12, r3, asr #6
   0xb546aff8 <+72>:asrsr0, r3, #4
   0xb546affa <+74>:ldr.w   r1, [r2, #8]!
   0xb546affe <+78>:cmp.w   r12, #0
   0xb546b002 <+82>:str r2, [sp, #4]
   0xb546b004 <+84>:ldr r2, [r2, #4]
   0xb546b006 <+86>:ble.w   0xb546b19a (unsigned long 
long*, size_t)+490>
   0xb546b00a <+90>:add.w   r12, r6, r12, lsl #6
   0xb546b00e <+94>:mov r3, r6
   0xb546b010 <+96>:b.n 0xb546b03c (unsigned long 
long*, size_t)+140>
   0xb546b012 <+98>:ldrdr0, r7, [r3, #16]
--Type  for more, q to quit, c to continue without paging--q
Quit
(gdb) bt
#0  hwy::(anonymous namespace)::robust_statistics::CountingSort (values=0xbeffecb8, num_values=256)
at ./hwy/nanobenchmark.cc:214
#1  0xb546b256 in hwy::(anonymous namespace)::robust_statistics::Mode (num_values=256, values=0xbeffecb8)
at ./hwy/nanobenchmark.cc:286
#2  hwy::(anonymous namespace)::robust_statistics::Mode (values=...) at ./hwy/nanobenchmark.cc:292
#3  hwy::platform::TimerResolution () at ./hwy/nanobenchmark.cc:480
#4  0xb5469e0e in __static_initialization_and_destruction_0 (__priority=65535, 
__initialize_p=1) at ./hwy/nanobenchmark.cc:488
#5  _GLOBAL__sub_I_nanobenchmark.cc(void) () at ./hwy/nanobenchmark.cc:763
#6  0xb6fe444c in call_init (env=0xbefff53c, argv=0xbefff534, argc=1, 
l=) at dl-init.c:70
#7  call_init (l=, argc=1, argv=0xbefff534, env=0xbefff53c) at 
dl-init.c:26
#8  0xb6fe44f2 in _dl_init (main_map=0xb6fffa68, argc=1, argv=0xbefff534, 
env=0xbefff53c) at dl-init.c:117
#9  0xb6ff17cc in _dl_start_user () from /lib/ld-linux-armhf.so.3
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)

I installed 1.0.5~git20230620.ed184dc-3 from expermental, that doesn't
fix the problem.

Best regards
Uwe

-- 
Pengutronix e.K.   | Uwe Kleine-König|
Industrial Linux Solutions | https://www.pengutronix.de/ |


signature.asc
Description: PGP signature


Bug#1033656: bt full with dbgsym

2023-03-29 Thread Mathieu Malaterre
% gdb cjxl
GNU gdb (Debian 13.1-2) 13.1
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from cjxl...
Reading symbols from
/usr/lib/debug/.build-id/ab/48fb952e2934f68e4c2a25c9f41febf3647a3a.debug...
(gdb) r
Starting program: /usr/bin/cjxl
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".

Program received signal SIGILL, Illegal instruction.
hwy::(anonymous namespace)::robust_statistics::CountingSort (values=0xbeffeda8, num_values=256) at
./hwy/nanobenchmark.cc:214
214   std::vector unique;
(gdb) bt full
#0  hwy::(anonymous
namespace)::robust_statistics::CountingSort
(values=0xbeffeda8, num_values=256) at ./hwy/nanobenchmark.cc:214
unique = std::vector of length 0, capacity 200277594
p = 
#1  0xb6e32256 in hwy::(anonymous
namespace)::robust_statistics::Mode
(num_values=256, values=0xbeffeda8) at ./hwy/nanobenchmark.cc:286
No locals.
#2  hwy::(anonymous namespace)::robust_statistics::Mode (values=...) at ./hwy/nanobenchmark.cc:292
No locals.
#3  hwy::platform::TimerResolution () at ./hwy/nanobenchmark.cc:480
samples = {1760, 680, 760, 720, 720, 760, 720, 640, 600, 680,
720, 720, 720, 720, 720, 640, 600, 680, 720, 720, 720, 720, 720, 640,
600, 680, 760, 720, 720, 720, 720, 680, 640, 680, 720, 760, 720,
  760, 720, 680, 640, 639, 720, 720, 720, 760, 720, 680, 600,
680, 720, 720, 760, 720, 720, 680, 640, 680, 720, 760, 720, 760, 720,
680, 600, 640, 720, 720, 720, 760, 720, 640, 600, 680, 760, 720,
  720, 720, 760, 680, 640, 680, 720, 720, 720, 720, 720, 680,
640, 680, 720, 720, 720, 760, 720, 680, 600, 680, 720, 720, 720, 760,
720, 680, 600, 640, 720, 760, 720, 720, 720, 680, 600, 640, 720,
  720, 760, 720, 720, 680, 600, 640, 720, 720, 720, 720, 720,
680, 640, 680, 720, 720, 760, 720, 720, 680, 600, 680, 760, 760, 720,
720, 720, 680, 600, 680, 760, 720, 720, 720, 720, 680, 600, 640,
  720, 760, 720, 720, 760, 680, 640, 680, 760, 720, 720, 720,
760, 680, 640, 680, 720, 720, 720, 720, 720, 680, 640, 680, 720, 720,
720, 760, 720, 680, 600, 680, 720, 720, 720, 760, 720, 680, 600,
  640, 720, 760, 720, 720, 720, 680...}
i = 
t0 = 
t1 = 
rep = 
can_use_stop = true
repetitions = {0 , 13186041144842129408, 1,
17592186044416, 15272538, 142541998690477, 17592186048511, 0, 1,
142541374619648, 5777693, 132592, 264, 2164, 1680014893, 15272538,
  1680014820, 620070873, 1680014820, 624070829, 1675175164, 0,
0, 4294967550, 0, 13762973729367785472, 13186241022805295247,
13185760231415605028, 545357767376899, 0, 0, 0, 0, 562949953421312,
  550391469175956, 4096, 562949953421317, 580748298035200,
17592186179636, 12885028864, 0, 204933623896, 13185811011904471040,
214748364800, 13186241019735179264, 13155823755177423432, 16089343920,
  13762973007813279746, 13185765720249593216, 0,
13185765720249593216, 0, 13185765720249593216, 0, 17595256270208,
16089343880, 13186532544935362560, 0, 13762975155296927744,
8309530817697147188,
  25769934848, 17595254339061, 580765477765120, 8589934595,
580768540979252, 65025, 5777693, 65025, 5777693, 4295000484, 0, 0,
132592, 4096, 264, 1680014893, 15272538, 1675175164, 0, 1680014820,
  13155827655007724148, 13186223049592012800,
13155827651937566720, 13185775014558756952, 13762975106961762556,
13185776139974469871, 13186226454276272160, 1, 3204442356, 1, 0,
4294967317,
  7365196392, 4294967306, 13762989606637072416, 2199023255566,
282579962709375, 0, 4297588739, 223338299392, 360292368236282336,
11259024840327220, 4296605722, 0, 550391469047808, 21474964628,
  4294971392, 578600814378556, 2147483782716, 25769804280,
8589938688, 579545707183896, 996432547608, 25769804008, 17179869188,
1047972020468, 154618822900, 17179869220, 7238662637146341380, 0, 0,
  25769803776, 7238662641441308688, 578600814378556,
1941325352508, 17179869636, 17179869185, 12884901908,
4116180958662970951, 6298471032490531664, 11912611826552620581,
38654705667, 25769803778,
  9799869300677419416, 42949672969, 17050484449554202637,
14311808551372633164, 16948032204727468581, 2814546232200178528,
215689415, 0, 0, 1136, 589827, 135212, 300649021443, 0, 68719476770,
0,
  100072738, 0, 876173328402, 0,