From owner-freebsd-stable@FreeBSD.ORG Sun Dec 17 17:30:38 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0CEA216A417 for ; Sun, 17 Dec 2006 17:30:38 +0000 (UTC) (envelope-from mikhail.manuilov@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6114E43CA2 for ; Sun, 17 Dec 2006 17:30:37 +0000 (GMT) (envelope-from mikhail.manuilov@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so1137377uge for ; Sun, 17 Dec 2006 09:30:36 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=PHIhF2WZEfPQJgdZMui57xgdhmhDcyxBfprDQVSZQJS0i6IzD2tVerXegFMjFpDuV9uM1bIReA0Oe/aikSOBfBsL0NFQYSDTJHZKknI6+L1BpxEdqkoCV+hXaBm3ijny+i6Ar6xsY6a720Rx4YoLPmp1rPoUY1MGmwJYkpbcPPo= Received: by 10.78.204.1 with SMTP id b1mr1350839hug.1166376635000; Sun, 17 Dec 2006 09:30:35 -0800 (PST) Received: by 10.78.153.16 with HTTP; Sun, 17 Dec 2006 09:30:34 -0800 (PST) Message-ID: <7ec6def90612170930o14704c85nebd7faadafea1abc@mail.gmail.com> Date: Sun, 17 Dec 2006 20:30:34 +0300 From: "Mikhail Manuylov" To: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: copying data from ata disk to sata disk makes my box panic X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Dec 2006 17:30:38 -0000 Hello folks, My dmesg can be seen below after text. It's Pentium MMX with 128MB Promise SATA controller with 250GB SATA disk -> ad4 and 40GB IDE disk -> ad0 (with freebsd installed) Here's long time problem that I discontinued to solve, but now i can go further, cause I really want my strorage. Here's brief problem description: I've recently cvsuped sources to 6_RELENG, rebuild world and kernel. Base system lives on ad0. And when I don't touch ad4 everything is fine, uptime is long and life is a peachy. I can fdisk ad4, I can bsdlabel and newfs it. I can dd /dev/zero to it. I can even copy file one by one from ad0. But if I starting copying or dding something heavy (#dd if=/dev/ad0 of=/dev/ad4 bs=8m or #cp -R /usr/ports /mnt/ad4_mount) I got 2 ways of behaviour: 1) Restart 2) db> prompt At this moment I do not have a serial cable near debugged box, so I'm retyping trace from screen: [thread pid 10 tid 100006] Stopped at cpu_idle_default+0x5: popl %ebp db> trace Tracing pid 10 tid 100006 td 0xc1538600 cpu_idle_default (c1537c90, c7b4fd24, c0476218, 0, c7b4fd38, ....) at cpu_idle_default + 0x5 idle_proc (0, c7b4fd38, 0, c047640d, 0, ....) at idle_proc + 0x11 fork_exit (c047640d, 0, c7b4fd38) at fork_exit + 0x6a fork_trampoline () at fork_trampoline + 0x8 --- trap 0x1, eip=0. esp=0x7b4fd6c, ebp=0 --- Dump is not working: sytem hangs deadly, but IS configured via dumpdev variable and /etc/rc.d/dumpon start. db> panic HANG Hope this helps problem debugged, I can reproduce it and support additional info from db>. Maybe next week i'll figure out how to o I have a custom kernel: # # Kernel config file for Print Server and Default Gateway # machine i386 cpu I586_CPU cpu I686_CPU ident FOORY # To statically compile in device wiring instead of /boot/device.hints #hints "FOORY.hints" # Default places to look for devices. makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols options KDB options DDB #options SCHED_ULE # ULE scheduler options SCHED_4BSD # 4BSD scheduler options PREEMPTION # Enable kernel thread preemption options INET # InterNETworking #options INET6 # IPv6 communications protocols options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories #options NFSCLIENT # Network Filesystem Client #options NFSSERVER # Network Filesystem Server #options NFS_ROOT # NFS usable as /, requires NFSCLIENT #options MD_ROOT # MD is a potential root device #options MSDOSFS # MSDOS Filesystem #options CD9660 # ISO 9660 Filesystem #options PROCFS # Process filesystem (requires PSEUDOFS) #options PSEUDOFS # Pseudo-filesystem framework options GEOM_GPT # GUID Partition Tables. options COMPAT_43 # Compatible with BSD 4.3 [KEEP THIS!] options COMPAT_FREEBSD4 # Compatible with FreeBSD4 #options KTRACE # ktrace(1) support #options SYSVSHM # SYSV-style shared memory #options SYSVMSG # SYSV-style message queues #options SYSVSEM # SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions #options KBD_INSTALL_CDEV # install a CDEV entry in /dev options ADAPTIVE_GIANT # Giant mutex is adaptivei. # Security #options IPSEC #options IPSEC_ESP options TCP_DROP_SYNFIN #Drop TCP packets with SYN+FIN enabled # ipfw2 #Firewall and NAT support options IPFIREWALL #firewall options IPFIREWALL_VERBOSE #enable logging to syslogd(8) options IPFIREWALL_VERBOSE_LIMIT=10 #limit verbosity options IPFIREWALL_FORWARD #enable transparent proxy support #options IPFIREWALL_FORWARD_EXTENDED # see /usr/src/UPDATING options IPDIVERT #divert sockets options IPSTEALTH #support for stealth forwarding #options DUMMYNET # traffic shaper, see ipfw(8) options HZ=1000 # for dummynet # The real QoS options ALTQ options ALTQ_CBQ options ALTQ_RED options ALTQ_RIO options ALTQ_HFSC #options ALTQ_CDNR options ALTQ_PRIQ #options ALTQ_NOPCC #options ALTQ_DEBUG #options NO_LKM #options NO_KLD #http://people.freebsd.org/~cjc/kld_stable.patch # #device apic # I/O APIC # Bus support. Do not remove isa, even if you have no isa slots device isa #device eisa device pci # Floppy drives #device fdc # ATA and ATAPI devices device ata device atadisk # ATA disk drives device atapicd # ATAPI CDROM drives options ATA_STATIC_ID # Static device numbering # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc # AT keyboard controller device atkbd # AT keyboard #device psm # PS/2 mouse device vga # VGA video card driver # To include support for VESA video modes #options VESA device splash # Splash screen and screen saver support # syscons is the default console driver, resembling an SCO console device sc options SC_DISABLE_REBOOT #Don't restart when Ctrl+Alt+Del pressed options SC_NO_SYSMOUSE # moused(8) will suck options SC_DISABLE_KDBKEY options SC_PIXEL_MODE options SC_DFLT_FONT #makeoptions SC_DFLT_FONT=koi8-r makeoptions SC_DFLT_FONT=cp866 options SC_NORM_ATTR=(FG_GREEN|BG_BLACK) options SC_NORM_REV_ATTR=(FG_YELLOW|BG_GREEN) options SC_KERNEL_CONS_ATTR=(FG_LIGHTRED|BG_BLACK) options SC_KERNEL_CONS_REV_ATTR=(FG_BLACK|BG_RED) options SC_HISTORY_SIZE=2000 #options SC_NO_HISTORY # I'm secure or just paranoid ? # see src/sys/i386/include/pc/display.h for more colors # Enable this for the pcvt (VT220 compatible) console driver #device vt #options XSERVER # support for X server on a vt console #options FAT_CURSOR # start with block cursor #device agp # support several AGP chipsets # Floating point support - do not disable. device npx # Power management support (see NOTES for more options) #device apm # Add suspend/resume support for the i8254. device pmtimer # Serial (COM) ports device sio # 8250, 16[45]50 based serial ports # Parallel port device ppc device ppbus # Parallel port bus (required) #device lpt # Printer #device plip # TCP/IP over parallel #device ppi # Parallel port interface device #device vpo # Requires scbus and da # If you've got a "dumb" serial or parallel PCI card that is # supported by the puc(4) glue driver, uncomment the following # line to enable it (connects to the sio and/or ppc drivers): #device puc # PCI Ethernet NICs. # PCI Ethernet NICs that use the common MII bus controller code. # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs! #device miibus # MII bus support #device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'') #device fxp # Intel EtherExpress PRO/100B (82557, 82558) options DEVICE_POLLING # Don't forget to enable kern.polling.enable # Pseudo devices - the number indicates how many units to allocate. #device random # Entropy device device loop # Network loopback device ether # Ethernet support #device sl # Kernel SLIP #device ppp # Kernel PPP # PPP software compression #options PPP_BSDCOMP #PPP BSD-compress support #options PPP_DEFLATE #PPP zlib/deflate/gzip support #options PPP_FILTER #enable PPP filtering via bpf (needs bpf) #device tun # Packet tunnel. device pty # Pseudo-ttys (telnet etc) #device md # Memory "disks" #device gif # IPv6 and IPv4 tunneling #device faith # IPv6-to-IPv4 relaying (translation) # The `bpf' device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! device bpf # Berkeley packet filter # USB support #device uhci # UHCI PCI->USB interface #device ohci # OHCI PCI->USB interface #device usb # USB Bus (required) #device udbp # USB Double Bulk Pipe devices #device ugen # Generic #device uhid # "Human Interface Devices" #device ukbd # Keyboard #device ulpt # Printer #device umass # Disks/Mass storage - Requires scbus and da #device ums # Mouse # NETSMB enables support for SMB protocol, it requires LIBMCHAIN and LIBICONV #options NETSMB #SMB/CIFS requester #options NETSMBCRYPTO #encrypted password support for SMB #options SMBFS #SMB/CIFS filesystem #options LIBMCHAIN #mbuf management library #options LIBICONV #end 4SMB #options USERCONFIG #boot -c editor #options VISUAL_USERCONFIG #visual boot -c editor #options UCONSOLE #Allow users to grab the console # System Management Bus support #device smbus # Bus support, required for smb below. #device intpm # Intel PIIX4 (82371AB, 82443MX) Power Management Unit options ENABLE_ALART # control alarm #device smb # standard io through ## I2C Bus Support #device iicbus # Bus support, required for ic/iic/iicsmb below. #device iicbb # generic bit-banging master-only driver # for lpbb (parallel port specific bit-banging interface) # and bktr (Brooktree848 video chipset, hardware and software # master-only interface) #device ic # network IP interface #device iic # general i/o operation #device iicsmb # smb over i2c bridge #device pcf # Philips PCF8584 master/slave interface dmesg: Copyright (c) 1992-2006 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 6.2-PRERELEASE #1: Sun Dec 17 02:26:38 MSK 2006 root@XXXX.XXXXX.XXX:/usr/obj/usr/src/sys/FOORY WARNING: MPSAFE network stack disabled, expect reduced performance. link_elf: symbol iicbus_intr undefined KLD file pcf.ko - could not finalize loading Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Pentium/P55C (233.87-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x543 Stepping = 3 Features=0x8001bf real memory = 134217728 (128 MB) avail memory = 125751296 (119 MB) Intel Pentium detected, installing workaround for F00F bug cpu0 on motherboard apm0: on motherboard apm0: found APM BIOS v1.2, connected at v1.2 pcib0: pcibus 0 on motherboard pir0: on motherboard pci0: on pcib0 isab0: at device 1.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x37 6,0xf000-0xf00f at device 1.1 on pci0 ata0: on atapci0 ata1: on atapci0 uhci0: port 0x6000-0x601f irq 11 at de vice 1.2 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered intpm0: port 0x5c00-0x5c0f irq 9 at device 1.3 on pci0 intpm0: I/O mapped 5c00 intpm0: intr IRQ 9 enabled revision 0 intpm0: [GIANT-LOCKED] intsmb0: on intpm0 smbus1: on intsmb0 smb0: on smbus1 intpm0: PM I/O mapped 5800 pci0: at device 9.0 (no driver attached) fxp0: port 0x6800-0x683f mem 0xe1221000-0xe1221ff f,0xe1000000-0xe10fffff irq 12 at device 10.0 on pci0 miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:04:ac:13:ae:e6 fxp0: [GIANT-LOCKED] fxp1: port 0x6c00-0x6c1f mem 0xe1220000-0xe1220ff f,0xe1100000-0xe11fffff irq 9 at device 11.0 on pci0 miibus1: on fxp1 inphy1: on miibus1 inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp1: Ethernet address: 00:04:ac:25:54:a4 fxp1: [GIANT-LOCKED] atapci1: port 0x7000-0x707f,0x7400-0x74ff mem 0xe1222000-0xe1222fff,0xe1200000-0xe121ffff irq 10 at device 12.0 on pci0 ata2: on atapci1 ata3: on atapci1 ata4: on atapci1 ata5: on atapci1 pmtimer0 on isa0 orm0: at iomem 0xc0000-0xc7fff,0xc8000-0xc8fff,0xc9000-0xcdfff on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: flags 0x1 irq 1 on atkbdc0 atkbd0: [GIANT-LOCKED] ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/16 bytes threshold ppbus0: on ppc0 lpt0: on ppbus0 lpt0: Interrupt-driven port pcfclock0: on ppbus0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A speaker0: at port 0x61 on isa0 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 unknown: can't assign resources (port) speaker1: at port 0x61 on isa0 speaker1: Already attached! device_attach: speaker1 attach returned 6 unknown: can't assign resources (memory) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) ugen0: American Power Conversion Smart-UPS 750 FW:651.12.I USB FW:4.2, rev 1.10/ 0.06, addr 2 Timecounters tick every 1.000 msec ipfw2 (+ipv6) initialized, divert loadable, rule-based forwarding enabled, defau lt to deny, logging limited to 10 packets/entry by default ad0: 32253MB at ata0-master UDMA33 ad4: 238475MB at ata2-master SATA300 Trying to mount root from ufs:/dev/ad0s1a WARNING: / was not properly dismounted WARNING: /tmp was not properly dismounted WARNING: /usr was not properly dismounted WARNING: /var was not properly dismounted WARNING: /var/log was not properly dismounted WARNING: /data was not properly dismounted fxp0: Microcode loaded, int_delay: 1000 usec bundle_max: 6 fxp0: Microcode loaded, int_delay: 1000 usec bundle_max: 6 fxp1: Microcode loaded, int_delay: 1000 usec bundle_max: 0 fxp1: Microcode loaded, int_delay: 1000 usec bundle_max: 0 -- Truly yours, Mikhail Manuilov