Subject: kern/24743: LFS doesnt work with large copies
To: None <>
From: Claudio M.Camacho <>
List: netbsd-bugs
Date: 03/11/2004 13:55:05
>Number:         24743
>Category:       kern
>Synopsis:       LFS doesnt work with large copies
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 11 12:56:00 UTC 2004
>Originator:     mkd
>Release:        NetBSD 1.6ZK
System: NetBSD Insomnia 1.6ZK NetBSD 1.6ZK (MYKERNEL) #5: Wed Mar 10 23:55:29 CET 2004 root@Insomnia:/usr/src/sys/arch/i386/compile/MYKERNEL i386
Architecture: i386
Machine: i386 (MULTIPROCESSOR, 2 Logical CPUs HTT)
	Doing tests again using LFS filesystem, I observed that sometimes,
	LFS doesnt work, most of all when I'm trying to copy enough MBs/GBs.
	I was copying a 1GB directory into an LFS partition (in /home) and
	the copy was stopped with the next message from the LFS:

	# cp -fRP /foo /home/foo
	ino 909 bytes == 0 offset 5373952

	The syste was not stopped, not halted, just that console was
	died. I broke into the kernel DDB to see what's happening, I
	did Ctrl+Alt+Esc (i386) to see any crash but DDB didn't tell
	me about a crash, it showed:

	Stopped at netbsd:cpu_Debugger+0x4: pop %ebp
	internal_command(...) at netbsd:internal_command+0x15c
	wskbd_translate(...) at netbsd:....
	wskbd_input(...) at netbsd:...
	pckbd_input(...) at ....
	pckbcintr(...) at...
	Xintr_ioapic_edge1() at ...
	--- interrupt ---

	I gess that above means that nothing wrong is happening, so
	I typed *continue* in the DDB and I could continue using
	my system but the console where 'cp' command was; I pressed
	again Ctrl+Alt+Esc and tried with *sync* and I got this:

	db{0}> sync
	syncing disks... kernel: page fault trap, code=0
	stopped at netbsd:lfs_seglock+0x46: movl 0x34(%ecx),%eax

	Make a LFS partition, mount it, try to copy a directory
	with near 1GB or so, and you'll get the 'ino ...' message.
	Dont know.