Skip to content

Instantly share code, notes, and snippets.

@rincebrain
Created January 8, 2018 02:10
Show Gist options
  • Save rincebrain/b811097361db0110df48a3c1b3e670ab to your computer and use it in GitHub Desktop.
Save rincebrain/b811097361db0110df48a3c1b3e670ab to your computer and use it in GitHub Desktop.
#6981 raidz_test segfault at ab9f4b0b824ab4cc64a4fa382c037f4154de12d6
(gdb) bt
#0 umem_cache_alloc (flags=256, cp=0x0) at ../../lib/libspl/include/umem.h:173
#1 zio_data_buf_alloc (size=<optimized out>) at ../../module/zfs/zio.c:253
#2 0x00011f84 in init_raidz_golden_map (opts=opts@entry=0x1dfbd40, parity=3) at raidz_test.c:282
#3 0x0001225c in run_gen_check (opts=0x1dfbd40) at raidz_test.c:350
#4 run_test (opts=opts@entry=0x1dfbd40) at raidz_test.c:568
#5 0x00012b64 in sweep_thread (arg=0x1dfbd40) at raidz_test.c:594
#6 0x76cad9dc in zk_thread_helper (arg=0x1dfbc88) at kernel.c:139
#7 0x76ba6e90 in start_thread (arg=0x6fa70420) at pthread_create.c:311
#8 0x76b30598 in ?? () at ../ports/sysdeps/unix/sysv/linux/arm/nptl/../clone.S:92 from /lib/arm-linux-gnueabihf/libc.so.6
(gdb) list
168 static inline void *
169 umem_cache_alloc(umem_cache_t *cp, int flags)
170 {
171 void *ptr = NULL;
172
173 if (cp->cache_align != 0)
174 ptr = umem_alloc_aligned(
175 cp->cache_bufsize, cp->cache_align, flags);
176 else
177 ptr = umem_alloc(cp->cache_bufsize, flags);
(gdb) p cp
$1 = (umem_cache_t *) 0x0
(gdb) up
#1 zio_data_buf_alloc (size=<optimized out>) at ../../module/zfs/zio.c:253
253 return (kmem_cache_alloc(zio_data_buf_cache[c], KM_PUSHPAGE));
(gdb) p zio_data_buf_cache
$2 = {0x1def2a8, 0x1def338, 0x1def3c8, 0x1def458, 0x1def4e8, 0x1def578, 0x1def608, 0x1def698, 0x1def728, 0x1def728, 0x1def7b8, 0x1def7b8, 0x1def848, 0x1def848, 0x1def8d8, 0x1def8d8, 0x1def968,
0x1def968, 0x1def968, 0x1def968, 0x1def9f8, 0x1def9f8, 0x1def9f8, 0x1def9f8, 0x1defa88, 0x1defa88, 0x1defa88, 0x1defa88, 0x1defb18, 0x1defb18, 0x1defb18, 0x1defb18, 0x1defba8, 0x1defba8,
0x1defba8, 0x1defba8, 0x1defba8, 0x1defba8, 0x1defba8, 0x1defba8, 0x1defc38, 0x1defc38, 0x1defc38, 0x1defc38, 0x1defc38, 0x1defc38, 0x1defc38, 0x1defc38, 0x1defcc8, 0x1defcc8, 0x1defcc8,
0x1defcc8, 0x1defcc8, 0x1defcc8, 0x1defcc8, 0x1defcc8, 0x1defd58, 0x1defd58, 0x1defd58, 0x1defd58, 0x1defd58, 0x1defd58, 0x1defd58, 0x1defd58, 0x1defde8 <repeats 16 times>,
0x1defe78 <repeats 16 times>, 0x1deff08 <repeats 16 times>, 0x1deff98 <repeats 16 times>, 0x1df0028 <repeats 32 times>, 0x1df00b8 <repeats 32 times>, 0x1df0148 <repeats 32 times>,
0x1df01d8 <repeats 32 times>, 0x1df0268 <repeats 64 times>, 0x1df02f8 <repeats 64 times>, 0x1df0388 <repeats 64 times>, 0x1df0418 <repeats 64 times>, 0x1df04a8 <repeats 128 times>,
0x1df0538 <repeats 128 times>...}
(gdb) p c
$3 = 32767
(gdb) p zio_data_buf_cache[c]
$4 = (kmem_cache_t *) 0x0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment