zpool history coredump

Dmitry Morozovsky marck at rinet.ru
Wed Apr 8 18:17:26 UTC 2009


another one (though minor, I suppose) bug report: while playing with my poor 
pool, I tried to interact with it on -current, thus importing it with -f 
(without upgrading, of course).

After reverting to RELENG_7, I found I no more can access history:

root at moose:~# /usr/obj/usr/src/cddl/sbin/zpool/zpool  history
History for 'm':
2008-10-14.23:04:28 zpool create m raidz ad4h ad6h ad8h ad10h ad12h
2008-10-14.23:04:57 zfs set mountpoint=/mnt m
2008-10-14.23:05:27 zfs create m/usr
2008-10-14.23:05:29 zfs create m/usr/local
2008-10-14.23:05:32 zfs create m/usr/ports
2008-10-14.23:05:34 zfs create m/usr/src
2008-10-14.23:05:37 zfs create m/usr/obj
2008-10-14.23:05:48 zfs create m/usr/ports/distfiles
2008-10-14.23:05:53 zfs create m/home
2008-10-14.23:05:55 zfs create m/var
2008-10-14.23:05:58 zfs create m/ar
2008-10-14.23:20:13 zfs set mountpoint=legacy m
2008-10-14.23:20:27 zfs set mountpoint=/var m/var
2008-10-14.23:30:41 zpool import -f m
2008-10-14.23:57:57 zpool import -f m
2008-10-15.00:03:08 zpool import -f m
2008-10-15.00:03:47 zfs set atime=off m
2008-10-15.00:04:00 zfs set compression=gzip m/usr/ports
2008-10-15.00:04:15 zfs set compression=off m/usr/ports/distfiles
2008-10-15.00:13:30 zfs set compression=gzip m/home
2008-10-15.02:08:33 zfs create m/usr/compat
2008-12-11.14:22:22 zfs snapshot m/ar at 20081211
2009-01-16.11:19:32 zfs destroy m/ar at 20081211
2009-03-30.19:19:07 zpool clear m
2009-04-06.20:59:09 zpool replace m ad6h ad14h
2009-04-07.13:55:42 zpool import -f m
Assertion failed: (*), function nvlist_lookup_string(records[i], 
ZPOOL_HIST_CMD, &cmdstr) == 0, file 
line 3338.
Abort (core dumped)

(gdb) bt #0  0x481dfff7 in kill () from /lib/libc.so.7
#1  0x481dff56 in raise () from /lib/libc.so.7
#2  0x481deb8a in abort () from /lib/libc.so.7
#3  0x481c6546 in __assert () from /lib/libc.so.7
#4  0x0804aca7 in get_history_one (zhp=0x4831a100, data=0xbfbfac40) at 
#5  0x0805293f in pool_list_iter (zlp=0x4830e030, unavail=0, func=0x804ab30 
<get_history_one>, data=0xbfbfac40)
#6  0x08052bc6 in for_each_pool (argc=0, argv=0xbfbfecc8, unavail=B_FALSE, 
proplist=0x0, func=0x804ab30 <get_history_one>, data=0xbfbfac40)
#7  0x0804a94a in zpool_do_history (argc=0, argv=0xbfbfecc4) at 
#8  0x0804da4b in main (argc=2, argv=0xbfbfecc0) at 

D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
[ FreeBSD committer:                                 marck at FreeBSD.org ]
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck at rinet.ru ***

More information about the freebsd-stable mailing list