From nobody@FreeBSD.org  Wed Nov 24 11:58:53 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 3B5A11065675
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Nov 2010 11:58:53 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 00C508FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Nov 2010 11:58:53 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id oAOBwqJF051099
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Nov 2010 11:58:52 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id oAOBwqqQ051098;
	Wed, 24 Nov 2010 11:58:52 GMT
	(envelope-from nobody)
Message-Id: <201011241158.oAOBwqqQ051098@red.freebsd.org>
Date: Wed, 24 Nov 2010 11:58:52 GMT
From: Chris <chrysalis@chrysalisnet.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: listing color format cause kernel panic in .zfs dir
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         152543
>Category:       misc
>Synopsis:       listing color format cause kernel panic in .zfs dir
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    araujo
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 24 12:00:24 UTC 2010
>Closed-Date:    Mon Apr 16 06:27:30 UTC 2012
>Last-Modified:  Mon Apr 16 06:27:30 UTC 2012
>Originator:     Chris
>Release:        8.1-RELEASE-p1
>Organization:
>Environment:
FreeBSD web1.xxx.net 8.1-RELEASE-p1 FreeBSD 8.1-RELEASE-p1 #1: Thu Nov  4 20:52:19 EET 2010     root@web1.hostexpert.net:/usr/obj/usr/src/sys/XXX  amd64
>Description:
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.

>How-To-Repeat:
cd /usr/home/.zfs (edit to path to .zfs dir)
ls -aG
>Fix:
a workaround is just run plain ls, of course this means if usually alias ls then it needs to be unaliased.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->araujo 
Responsible-Changed-By: araujo 
Responsible-Changed-When: Mon Apr 16 04:18:55 UTC 2012 
Responsible-Changed-Why:  
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. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=152543 
State-Changed-From-To: open->closed 
State-Changed-By: araujo 
State-Changed-When: Mon Apr 16 06:27:29 UTC 2012 
State-Changed-Why:  
It was solved on PR number 150544. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=152543 
>Unformatted:
