From akanwar@digitarchy.com  Mon Aug  4 12:40:47 2003
Return-Path: <akanwar@digitarchy.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7E19237B401
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  4 Aug 2003 12:40:47 -0700 (PDT)
Received: from relay3.softcomca.com (relay3.softcomca.com [168.144.1.70])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 900E943FAF
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  4 Aug 2003 12:40:46 -0700 (PDT)
	(envelope-from akanwar@digitarchy.com)
Received: from M2W072.mail2web.com ([168.144.251.182]) by relay3.softcomca.com with Microsoft SMTPSVC(5.0.2195.6713);
	 Mon, 4 Aug 2003 15:40:45 -0400
Message-Id: <157240-22003814194045637@M2W072.mail2web.com>
Date: Mon, 4 Aug 2003 15:40:45 -0400
From: "akanwar@digitarchy.com" <akanwar@digitarchy.com>
Reply-To: akanwar@digitarchy.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: databases/db4: Berkley DB crashes on Serverworks based chipsets.

>Number:         55252
>Category:       ports
>Synopsis:       databases/db4: Berkley DB crashes on Serverworks based chipsets.
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    sergei
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 04 12:50:15 PDT 2003
>Closed-Date:    Thu Dec 04 12:57:07 PST 2003
>Last-Modified:  Thu Dec 04 12:57:07 PST 2003
>Originator:     Jie Song <jie@expertcity.com>
>Release:        FreeBSD 4.6.2-RELEASE-p2 i386, also on FreeBSD 4.8-RELEASE i386
>Organization:
Expertcity.com
>Environment:
 System: FreeBSD laguna 4=2E6=2E2-RELEASE-p2 FreeBSD 4=2E6=2E2-RELEASE-p2 #=
 2: Tue
 Jan 21 16:14:03 PST 2003 root@laguna=2Ecorp:/usr/obj/usr/src/sys/ EC-RACK-=
 04
 i386
 
 #----------------------------------
 
 # strings -n 3 /kernel | sed -n 's/^___//p'
 
 machine         i386
 cpu             I686_CPU
 ident           EC-RACK-04
 
 #makeoptions    DEBUG=3D-g                #Build kernel with gdb(1) debug
 symbols
 
 options         MATH_EMULATE            #Support for x87 emulation
 options         INET                    #InterNETworking
 options         FFS                     #Berkeley Fast Filesystem
 options         FFS_ROOT                #FFS usable as root device [keep
 this!]
 options         SOFTUPDATES             #Enable FFS soft updates support
 options         UFS_DIRHASH             #Improve performance on big
 directories
 options         MFS                     #Memory Filesystem
 options         MD_ROOT                 #MD is a potential root device
 options         NFS                     #Network Filesystem
 options         NFS_ROOT                #NFS usable as root device, NFS
 required
 options         MSDOSFS                 #MSDOS Filesystem
 options         CD9660                  #ISO 9660 Filesystem
 options         CD9660_ROOT             #CD-ROM usable as root, CD9660
 required
 options         PROCFS                  #Process filesystem
 options         COMPAT_43               #Compatible with BSD 4=2E3 [KEEP
 THIS!]
 options         SCSI_DELAY=3D15000        #Delay (in ms) before probing SC=
 SI
 options         UCONSOLE                #Allow users to grab the console
 options         USERCONFIG              #boot -c editor
 options         VISUAL_USERCONFIG       #visual boot -c editor
 options         KTRACE                  #ktrace(1) support
 options         SYSVSHM                 #SYSV-style shared memory
 options         SYSVMSG                 #SYSV-style message queues
 options         SYSVSEM                 #SYSV-style semaphores
 options         P1003_1B                #Posix P1003_1B real-time extensio=
 ns
 options         _KPOSIX_PRIORITY_SCHEDULING
 options         ICMP_BANDLIM            #Rate limit bad replies
 options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
 
 
 # increase max (and default) datafile size
 #options         MAXDSIZ=3D"(2047*1024*1024)"
 #options         DFLDSIZ=3D"(2047*1024*1024)"
 
 options         INCLUDE_CONFIG_FILE          # Include this file in kernel=
 
 options         IPFIREWALL                   #firewall
 options         IPFIREWALL_VERBOSE           #print information about
 dropped packets
 options         IPFIREWALL_VERBOSE_LIMIT=3D100    #limit verbosity
 options         IPFIREWALL_DEFAULT_TO_ACCEPT    #allow everything by defau=
 lt
 options         IPFIREWALL_FORWARD              #
 options         MAXUSERS=3D0
 options         DEVICE_POLLING
 pseudo-device   vlan
 
 
 
 device          isa
 device          eisa
 device          pci
 
 # Floppy drives
 device          fdc0    at isa? port IO_FD1 irq 6 drq 2
 device          fd0     at fdc0 drive 0
 
 # ATA and ATAPI devices
 device          ata0    at isa? port IO_WD1 irq 14
 device          ata1    at isa? port IO_WD2 irq 15
 device          ata
 device          atadisk                 # ATA disk drives
 device          atapicd                 # ATAPI CDROM drives
 device          atapifd                 # ATAPI floppy drives
 options         ATA_STATIC_ID           #Static device numbering
 
 # atkbdc0 controls both the keyboard and the PS/2 mouse
 device          atkbdc0 at isa? port IO_KBD
 device          atkbd0  at atkbdc? irq 1 flags 0x1
 device          psm0    at atkbdc? irq 12
 
 device          vga0    at isa?
 
 # splash screen/screen saver
 pseudo-device   splash
 
 # syscons is the default console driver, resembling an SCO console
 device          sc0     at isa? flags 0x100
 
 device          agp             # support several AGP chipsets
 
 # Floating point support - do not disable=2E
 device          npx0    at nexus? port IO_NPX irq 13
 
 
 # Serial (COM) ports
 device          sio0    at isa? port IO_COM1 irq 4
 device          sio1    at isa? port IO_COM2 flags 0x10 irq 3
 device          sio2    at isa? disable port IO_COM3 irq 5
 device          sio3    at isa? disable port IO_COM4 irq 9
 
 
 # PCI Ethernet NICs=2E
 device          de              # DEC/Intel DC21x4x (``Tulip'')
 device          em              # Intel PRO/1000 adapter Gigabit Ethernet
 Card (``Wiseman'')
 
 # PCI Ethernet NICs that use the common MII bus controller code=2E
 # NOTE: Be sure to keep the 'device miibus' line in order to use these NIC=
 s!
 device          miibus          # MII bus support
 device          fxp             # Intel EtherExpress PRO/100B (82557, 8255=
 8)
 
 
 # Pseudo devices - the number indicates how many units to allocate=2E
 pseudo-device   loop            # Network loopback
 pseudo-device   ether           # Ethernet support
 #pseudo-device  sl      1       # Kernel SLIP
 #pseudo-device  ppp     1       # Kernel PPP
 #pseudo-device  tun             # Packet tunnel=2E
 pseudo-device   pty             # Pseudo-ttys (telnet etc)
 pseudo-device   md              # Memory "disks"
 #pseudo-device  gif             # IPv6 and IPv4 tunneling
 #pseudo-device  faith   1       # IPv6-to-IPv4 relaying (translation)
 
 # The `bpf' pseudo-device enables the Berkeley Packet Filter=2E
 # Be aware of the administrative consequences of enabling this!
 pseudo-device   bpf             #Berkeley packet filter
 
 #----------------------------------
 
 
 
>Description:
 
 We got a corrupted database when we ran an application of BerkeleyDB on
 FreeBSD boxes with ServerWorks PCI chipset=2E There is neither core dumps =
 nor
 system error messages=2E We just got error messages from BerkeleyDB librar=
 y
 functions=2E
 
 We tested our application on different version of FreeBSD (4=2E6, 4=2E6=2E=
 2, 4=2E8)
 with different kernel configurations (GENERIC and customized), and got sam=
 e
 results=2E
 
 We tested our application on 10 different boxes, four of them configured
 ServerWorks PCI chipset=2E All of those four failed to pass our test=2E Ot=
 her 6
 boxes worked fine=2E
 
 Our application is straightforward=2E It reads data in, aggregates them, a=
 nd
 inserts them into a disk file organized as a btree=2E All system calls iss=
 ued
 by our application just are open(), close(), pread() and pwrite()=2E No
 multi-thread, no multi-process issues is here=2E
 
 
 
 
 
>How-To-Repeat:
 
 I can send you 2 files:
    * dbrestore - it is a perl script
    * data=2Etar=2Egz - it contains 170 raw data files dbrestore will handl=
 e
 
 Please create a director for raw data files into which you need to unpack
 data=2Etar=2Egz=2E You need to create another director to store the b-tree=
 
 database file created by dbrestore=2E Then please modify $RTTDBDIR and
 $DATADIR in the dbrestore to point to these 2 directories=2E
 
 Now, you need to install the latest BerkeleyDB (you can download it from
 www=2Esleepycat=2Ecom) and its perl wrapper (in the same package)=2E
 
 Then execute '=2E/dbrestore'=2E
 
 How can I send you / Whom to send  -- the big data file data=2Etar=2Egz ?
 
 
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-ports-bugs 
Responsible-Changed-By: ceri 
Responsible-Changed-When: Sun Aug 10 09:59:41 PDT 2003 
Responsible-Changed-Why:  
Reassign misfiled PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=55252 
State-Changed-From-To: feedback->closed 
State-Changed-By: edwin 
State-Changed-When: Sat Sep 27 18:35:21 PDT 2003 
State-Changed-Why:  
If this is still a problem with the latest (3.23.58) one, please 
resubmit the problem. Most likely it was caused by the not running 
of ldconfig by the port. If it still occures, please add the output 
of "ldconfig -r" to the PR. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=44799 
State-Changed-From-To: open->open 
State-Changed-By: edwin 
State-Changed-When: Sat Sep 27 18:35:21 PDT 2003 
State-Changed-Why:  
euhmm.. I'll redit this PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45210 
State-Changed-From-To: open->open 
State-Changed-By: edwin 
State-Changed-When: Sat Sep 27 18:35:21 PDT 2003 
State-Changed-Why:  


http://www.freebsd.org/cgi/query-pr.cgi?pr=46024 
State-Changed-From-To: open->open 
State-Changed-By: edwin 
State-Changed-When: Sat Sep 27 18:35:21 PDT 2003 
State-Changed-Why:  


http://www.freebsd.org/cgi/query-pr.cgi?pr=46338 
State-Changed-From-To: open->open 
State-Changed-By: edwin 
State-Changed-When: Sat Sep 27 18:35:21 PDT 2003 
State-Changed-Why:  
Fix synopses. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=46510 
State-Changed-From-To: open->open 
State-Changed-By: edwin 
State-Changed-When: Sat Sep 27 18:35:21 PDT 2003 
State-Changed-Why:  
Fix synopses 

http://www.freebsd.org/cgi/query-pr.cgi?pr=46530 
State-Changed-From-To: open->open 
State-Changed-By: edwin 
State-Changed-When: Sat Sep 27 18:35:21 PDT 2003 
State-Changed-Why:  
Fix synopses 

http://www.freebsd.org/cgi/query-pr.cgi?pr=48097 
State-Changed-From-To: open->open 
State-Changed-By: edwin 
State-Changed-When: Sat Sep 27 18:35:21 PDT 2003 
State-Changed-Why:  
Fix synopses 

http://www.freebsd.org/cgi/query-pr.cgi?pr=50140 
State-Changed-From-To: open->open 
State-Changed-By: edwin 
State-Changed-When: Sat Sep 27 18:35:21 PDT 2003 
State-Changed-Why:  
Fix synopses 

http://www.freebsd.org/cgi/query-pr.cgi?pr=50195 
State-Changed-From-To: open->open 
State-Changed-By: edwin 
State-Changed-When: Sat Sep 27 18:35:21 PDT 2003 
State-Changed-Why:  
Fix synopses 

http://www.freebsd.org/cgi/query-pr.cgi?pr=50417 
State-Changed-From-To: open->open 
State-Changed-By: edwin 
State-Changed-When: Sat Sep 27 18:35:21 PDT 2003 
State-Changed-Why:  
Fix synopses 

http://www.freebsd.org/cgi/query-pr.cgi?pr=50418 
State-Changed-From-To: open->open 
State-Changed-By: edwin 
State-Changed-When: Sat Sep 27 18:35:21 PDT 2003 
State-Changed-Why:  
Fix synopses 

http://www.freebsd.org/cgi/query-pr.cgi?pr=50586 
State-Changed-From-To: open->open 
State-Changed-By: edwin 
State-Changed-When: Sat Sep 27 18:35:21 PDT 2003 
State-Changed-Why:  
Fix category 

http://www.freebsd.org/cgi/query-pr.cgi?pr=50724 
State-Changed-From-To: open->open 
State-Changed-By: edwin 
State-Changed-When: Sat Sep 27 18:35:21 PDT 2003 
State-Changed-Why:  
Fix synopsesFix synopsesFix synopses 

http://www.freebsd.org/cgi/query-pr.cgi?pr=50999 
State-Changed-From-To: open->open 
State-Changed-By: edwin 
State-Changed-When: Sat Sep 27 18:35:21 PDT 2003 
State-Changed-Why:  
Fix synopses 

http://www.freebsd.org/cgi/query-pr.cgi?pr=51007 
State-Changed-From-To: open->open 
State-Changed-By: edwin 
State-Changed-When: Sat Sep 27 18:35:21 PDT 2003 
State-Changed-Why:  
Fix synopses 

http://www.freebsd.org/cgi/query-pr.cgi?pr=51536 
State-Changed-From-To: open->open 
State-Changed-By: edwin 
State-Changed-When: Sat Sep 27 18:35:21 PDT 2003 
State-Changed-Why:  
Fix synopses 

http://www.freebsd.org/cgi/query-pr.cgi?pr=51610 
State-Changed-From-To: open->open 
State-Changed-By: edwin 
State-Changed-When: Sat Sep 27 18:35:21 PDT 2003 
State-Changed-Why:  
Fix synopses 

http://www.freebsd.org/cgi/query-pr.cgi?pr=51807 
State-Changed-From-To: analyzed->analyzed 
State-Changed-By: edwin 
State-Changed-When: Sat Sep 27 18:35:21 PDT 2003 
State-Changed-Why:  
Fix synopses 

http://www.freebsd.org/cgi/query-pr.cgi?pr=52068 
State-Changed-From-To: open->open 
State-Changed-By: edwin 
State-Changed-When: Sat Sep 27 18:35:21 PDT 2003 
State-Changed-Why:  
Fix synopses 

http://www.freebsd.org/cgi/query-pr.cgi?pr=52447 
State-Changed-From-To: open->open 
State-Changed-By: edwin 
State-Changed-When: Sat Sep 27 18:35:21 PDT 2003 
State-Changed-Why:  
Fix synopses 

http://www.freebsd.org/cgi/query-pr.cgi?pr=52727 
State-Changed-From-To: open->open 
State-Changed-By: edwin 
State-Changed-When: Sat Sep 27 18:35:21 PDT 2003 
State-Changed-Why:  
Fix synopses 

http://www.freebsd.org/cgi/query-pr.cgi?pr=53843 
State-Changed-From-To: open->open 
State-Changed-By: edwin 
State-Changed-When: Sat Sep 27 18:35:21 PDT 2003 
State-Changed-Why:  
FIx category 

http://www.freebsd.org/cgi/query-pr.cgi?pr=53862 
State-Changed-From-To: open->open 
State-Changed-By: edwin 
State-Changed-When: Sat Sep 27 18:35:21 PDT 2003 
State-Changed-Why:  
Fix synopses 

http://www.freebsd.org/cgi/query-pr.cgi?pr=53248 
State-Changed-From-To: open->open 
State-Changed-By: edwin 
State-Changed-When: Sat Sep 27 18:35:21 PDT 2003 
State-Changed-Why:  
Fix synopses 

http://www.freebsd.org/cgi/query-pr.cgi?pr=54092 
State-Changed-From-To: open->open 
State-Changed-By: edwin 
State-Changed-When: Sat Sep 27 18:35:21 PDT 2003 
State-Changed-Why:  
Fix synopses 

http://www.freebsd.org/cgi/query-pr.cgi?pr=54209 
State-Changed-From-To: open->open 
State-Changed-By: edwin 
State-Changed-When: Sat Sep 27 18:35:21 PDT 2003 
State-Changed-Why:  
Fix synopses 

http://www.freebsd.org/cgi/query-pr.cgi?pr=55252 

From: Matthias Andree <matthias.andree@gmx.de>
To: freebsd-gnats-submit@FreeBSD.org, akanwar@digitarchy.com,
	jie@expertcity.com
Cc:  
Subject: Re: ports/55252: databases/db4: Berkley DB crashes on Serverworks based chipsets.
Date: Sun, 02 Nov 2003 11:46:35 +0100

 Apologize for the late response, I wasn't aware there was a PR. If you want quicker response, remember to Cc: the port maintainer on problem reports.
 
 I don't have a ServerWorks based board here, so I won't be able to reproduce the problem if it's SW specific.
 
 Does your problem persist with FreeBSD 4.9, a current 4-STABLE or 5-CURRENT system?
 
 Can the memory or bus timing on ServerWorks chipsets be adjusted from BIOS configuration or something, if so, does it work with more conservative settings? (Are there BIOS updates addressing stability perhaps?)
 
 What are the exact problems the BerkeleyDB library reports?
 
 -- 
 Matthias Andree
State-Changed-From-To: open->feedback 
State-Changed-By: sergei 
State-Changed-When: Sat Nov 22 16:26:06 PST 2003 
State-Changed-Why:  
Awaiting submitter's feedback. 


Responsible-Changed-From-To: freebsd-ports-bugs->sergei 
Responsible-Changed-By: sergei 
Responsible-Changed-When: Sat Nov 22 16:26:06 PST 2003 
Responsible-Changed-Why:  
I'll track the feedback. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=55252 
State-Changed-From-To: feedback->closed 
State-Changed-By: sergei 
State-Changed-When: Thu Dec 4 12:55:27 PST 2003 
State-Changed-Why:  
Feedback timeout. 
In case the problem still exists, please submit a new PR  
and CC: the port maintainer (Matthias Andree) directly. 

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