sdb icon indicating copy to clipboard operation
sdb copied to clipboard

blkptr command fails for some block pointers

Open sdimitro opened this issue 2 years ago • 0 comments

sdb> echo 0xffff8912dbbf44d8 | zio -r | filter 'obj.io_done != 0xffffffffc03a5d60' | member io_private | cast lwb_t * | member lwb_blk | blkptr
DVA[0]=<2:0x88620000:0x20000>
[L0 ZIL intent log] zilog2 uncompressed layer=0 unencrypted LE contiguous unique single
size=0x20000L/0x20000P birth=467L/467P fill=0
cksum=0x708763c140cc65ff:0xfbeadd23f45504da:0xbc:0xe55
DVA[0]=<2:0x88560000:0x20000>
[L0 ZIL intent log] zilog2 uncompressed layer=0 unencrypted LE contiguous unique double
size=0x20000L/0x20000P birth=467L/467P fill=0
cksum=0x708763c140cc65ff:0xfbeadd23f45504da:0xbc:0xe54
DVA[0]=<2:0x884c0000:0x20000>
[L0 ZIL intent log] zilog2 uncompressed layer=0 unencrypted LE contiguous unique triple
size=0x20000L/0x20000P birth=467L/467P fill=0
cksum=0x708763c140cc65ff:0xfbeadd23f45504da:0xbc:0xe53
DVA[0]=<2:0x88460000:0x20000>
[L0 ZIL intent log] zilog2 uncompressed layer=0 unencrypted LE contiguous unique sdb encountered an internal error due to a bug. Here's the
information you need to file the bug:
----------------------------------------------------------
Target Info:
	ProgramFlags.IS_LIVE|IS_LINUX_KERNEL
	Platform(<Architecture.X86_64: 1>, <PlatformFlags.IS_LITTLE_ENDIAN|IS_64_BIT: 3>)

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/sdb/internal/repl.py", line 107, in eval_cmd
    for obj in invoke([], input_):
  File "/usr/lib/python3/dist-packages/sdb/pipeline.py", line 152, in invoke
    yield from execute_pipeline(first_input, pipeline)
  File "/usr/lib/python3/dist-packages/sdb/pipeline.py", line 84, in execute_pipeline
    yield from massage_input_and_call(pipeline[-1], this_input)
  File "/usr/lib/python3/dist-packages/sdb/pipeline.py", line 64, in massage_input_and_call
    yield from execute_pipeline(objs, [Address(), cmd])
  File "/usr/lib/python3/dist-packages/sdb/pipeline.py", line 84, in execute_pipeline
    yield from massage_input_and_call(pipeline[-1], this_input)
  File "/usr/lib/python3/dist-packages/sdb/pipeline.py", line 67, in massage_input_and_call
    yield from cmd.call(objs)
  File "/usr/lib/python3/dist-packages/sdb/command.py", line 403, in call
    result = self._call(objs)
  File "/usr/lib/python3/dist-packages/sdb/command.py", line 549, in _call
    self.pretty_print(self.check_input_type(objs))
  File "/usr/lib/python3/dist-packages/sdb/commands/zfs/blkptr.py", line 153, in pretty_print
    print(f"{copyname[copies]}")
IndexError: list index out of range
----------------------------------------------------------

sdimitro avatar Jul 17 '23 22:07 sdimitro