Bug 145234 - [zfs] zvol with org.freebsd:swap=on crashes zfs list
Summary: [zfs] zvol with org.freebsd:swap=on crashes zfs list
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 9.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-fs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-31 10:00 UTC by Dmitry Afanasiev
Modified: 2010-04-07 23:03 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Afanasiev 2010-03-31 10:00:14 UTC
Only on fresh current:
# zfs create -V 128m rpool/test
# zfs list rpool/test
NAME           USED  AVAIL  REFER  MOUNTPOINT
rpool/test     128M  55.9G    16K  -
# zfs set org.freebsd:swap=on rpool/test
# zfs list rpool/test
Segmentation fault (core dumped)
# zfs list
Segmentation fault (core dumped)
# zfs inherit org.freebsd:swap rpool/test
# zfs list rpool/test
NAME           USED  AVAIL  REFER  MOUNTPOINT
rpool/test   128M  55.9G    16K  -

backtrace looks like this:
(gdb) bt
#0  0x0000000800662730 in zfs_prune_proplist () from /lib/libzfs.so.2
#1  0x000000000040abf2 in ?? ()
#2  0x0000000800664694 in zfs_iter_filesystems () from /lib/libzfs.so.2
#3  0x000000000040abe1 in ?? ()
#4  0x000000080065718c in zfs_iter_root () from /lib/libzfs.so.2
#5  0x000000000040ae7f in ?? ()
#6  0x0000000000406a70 in ?? ()
#7  0x0000000000408639 in ?? ()
#8  0x0000000000403bfe in ?? ()
#9  0x000000080053b000 in ?? ()
#10 0x0000000000000000 in ?? ()
#11 0x0000000000000000 in ?? ()
#12 0x0000000000000002 in ?? ()
#13 0x00007fffffffeeb0 in ?? ()
#14 0x00007fffffffeeb4 in ?? ()
#15 0x0000000000000000 in ?? ()
#16 0x00007fffffffeeb9 in ?? ()
..

I have this problem on fresh amd64 and sparc64 systems.
zfs get all rpool/test works without problems.

Also this fails automatic swap setup in /etc/rc.d/zfs.
Comment 1 Dmitry Afanasiev 2010-03-31 11:16:53 UTC
I'm sorry, /etc/rc.d/zvol is a correct script name, that fails to 
configure swap area.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2010-04-06 06:21:32 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-fs

Even though the bug shows up in a binary, I'm going out on a limb 
and assigning it to the fs@ mailing list, where most of the other 
zfs bugs have been assigned.
Comment 3 Andriy Gapon 2010-04-06 07:54:06 UTC
This should be resolved in head now.
See r206199 (http://svn.freebsd.org/changeset/base/206199)
And kern/145377.

-- 
Andriy Gapon
Comment 4 Dmitry Afanasiev 2010-04-07 14:16:32 UTC
On 06.04.2010 10:54, Andriy Gapon wrote:
> This should be resolved in head now.
Yes, after update "zfs list" is working properly.
Please close PR.
Comment 5 Andriy Gapon freebsd_committer freebsd_triage 2010-04-07 22:59:08 UTC
State Changed
From-To: open->closed

The issue is resolved in head (the only branch where 
the problem existed).