Bug 152543

Summary: listing color format cause kernel panic in .zfs dir
Product: Base System Reporter: Chris Collins <chrysalis>
Component: miscAssignee: Marcelo Araujo <araujo>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 8.1-RELEASE   
Hardware: Any   
OS: Any   

Description Chris Collins 2010-11-24 12:00:24 UTC
This machine is patched up to zfsv15 which may be very relevant.

If I change to a .zfs dir on any fileset eg. I have tank/home mounted on /usr/home so cd /usr/home/.zfs, and then run ls with colors it causes a kernel panic.

gnuls -a --color=always = panic
ls -aG = panic
ls = no panic

not tested gnuls with no colors and not tested 'ls -a', is a production server so I will need to wait until night for further testing.

no kernel dumps yet as no dumpdev configured, if using a zfs swap partition is safe (used in fstab) as a dumpdev I will configure it and repeat.

Fix: 

a workaround is just run plain ls, of course this means if usually alias ls then it needs to be unaliased.
How-To-Repeat: cd /usr/home/.zfs (edit to path to .zfs dir)
ls -aG
Comment 1 Marcelo Araujo freebsd_committer freebsd_triage 2012-04-16 05:18:55 UTC
Responsible Changed
From-To: freebsd-bugs->araujo

I'm doing a bunch of tests over this problem, I'm gonna figure out if it 
was solved and will address this PR to the right person once again.
Comment 2 Marcelo Araujo freebsd_committer freebsd_triage 2012-04-16 07:27:29 UTC
State Changed
From-To: open->closed

It was solved on PR number 150544.