Hi 

I've just upgraded a couple of (old-ish) servers to 4.6 and now Apache has 
started throwing intermittent segfaults on both. (dmesgs appended below)
I previously upgraded from 4.4 to 4.5 without incident.

Both of these machines have been running faultlessly for months without issue 
so something has gone wrong following the upgrade. Both machines are serving 
different web-sites so I don't believe there is anything specific to the 
php/html code on the sites.


I have the following PHP5 modules loaded in /var/www/conf/php5/*.ini 

Server 1
extension=gd.so
extension=mbstring.so
extension=mcrypt.so
extension=mysql.so
extension=pdo_mysql.so

Server2
extension=mcrypt.so
extension=mysql.so
extension=snmp.so


Assuming this is a fault in a loaded module it has to be either mcrypt or 
mysql. I suspect this is mysql as one of the sites served is basically static 
HTML without mysql and this site does not appear to cause a segfault. 


Any ideas how I can track down what is causing the problem and more 
importantly, how to fix it. 

Thanks in advance
Jeremy


=============Excerpt from /var/www/logs/error_log=================
[Sun Nov  1 16:45:30 2009] [notice] SIGHUP received.  Attempting to restart
[Sun Nov  1 16:45:30 2009] [notice] Initializing etag from /var/www/logs/etag-
state
[Sun Nov  1 16:45:30 2009] [notice] Apache configured -- resuming normal 
operations
[Sun Nov  1 16:45:30 2009] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Sun Nov  1 16:45:51 2009] [notice] child pid 10330 exit signal Segmentation 
fault (11)
[Sun Nov  1 16:45:59 2009] [notice] child pid 9658 exit signal Segmentation 
fault (11)
[Sun Nov  1 16:46:42 2009] [notice] child pid 1604 exit signal Segmentation 
fault (11)
[Sun Nov  1 16:47:24 2009] [notice] child pid 32289 exit signal Segmentation 
fault (11)
[Sun Nov  1 16:50:34 2009] [notice] child pid 31089 exit signal Segmentation 
fault (11)



== dmesg 1 ============================================================
OpenBSD 4.6 (GENERIC) #58: Thu Jul  9 21:24:42 MDT 2009
    dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III ("GenuineIntel" 686-class, 512KB L2 cache) 502 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,SER,MMX,FXSR,SSE
real mem  = 267939840 (255MB)
avail mem = 250265600 (238MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 04/01/98, BIOS32 rev. 0 @ 0xf0210, 
SMBIOS rev. 2.1 @ 0xf88b0 (22 entries)
bios0: vendor ACER version "V3.2 R03-B3       EN" date 04/06/1999
bios0: Acer AcerPower_4100_series
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xf0200/0xb00
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf9e00/144 (7 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371AB PIIX4 ISA" rev 
0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x1000
cpu0 at mainbus0: (uniprocessor)
cpu0: disabling processor serial number
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x03
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0xe0000000, size 0x4000000
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Rage Pro" rev 0x5c
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
piixpcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 
wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <Maxtor 90432D2>
wd0: 16-sector PIO, LBA, 4121MB, 8440992 sectors
wd1 at pciide0 channel 0 drive 1: <ST34342A>
wd1: 16-sector PIO, LBA, 4103MB, 8404830 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <ASUS, CRW-4012A, 1.0> ATAPI 5/cdrom removable
cd0(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 11
piixpm0 at pci0 dev 7 function 3 "Intel 82371AB Power" rev 0x02: polling
iic0 at piixpm0
lm1 at iic0 addr 0x2d: W83781D
spdmem0 at iic0 addr 0x50: 64MB SDRAM non-parity PC100CL3
spdmem1 at iic0 addr 0x51: 64MB SDRAM non-parity PC100CL3
spdmem2 at iic0 addr 0x52: 128MB SDRAM non-parity PC100CL3
"DPT SmartCache/Raid" rev 0x02 at pci0 dev 18 function 0 not configured
xl0 at pci0 dev 19 function 0 "3Com 3c905B 100Base-TX" rev 0x30: irq 10, 
address 00:00:e2:15:ae:59
exphy0 at xl0 phy 24: 3Com internal media interface
sv0 at pci0 dev 20 function 0 "S3 SonicVibes" rev 0x00: irq 11
audio0 at sv0
isa0 at piixpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
lm0 at isa0 port 0x290/8: W83781D
lm1 detached
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
biomask fb65 netmask ff65 ttymask ffff
mtrr: Pentium Pro MTRR support
softraid0 at root
root on wd0a swap on wd0b dump on wd0b



===  dmesg 2 =======================================================
OpenBSD 4.6 (GENERIC) #58: Thu Jul  9 21:24:42 MDT 2009
    dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Athlon(tm) Processor ("AuthenticAMD" 686-class, 512KB L2 cache) 802 
MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real mem  = 536375296 (511MB)
avail mem = 509837312 (486MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 07/26/00, BIOS32 rev. 0 @ 0xfdb50, 
SMBIOS rev. 2.3 @ 0xf04f0 (30 entries)
bios0: vendor American Megatrends Inc. version "62710" date 07/15/97
bios0: Gigabyte Technology Co. Ltd. 7VX
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf7800/160 (8 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("VIA VT82C686 ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x10000
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA VT8371 Host" rev 0x02
viaagp0 at pchb0: v2
agp0 at viaagp0: aperture at 0xe0000000, size 0x10000000
ppb0 at pci0 dev 1 function 0 "VIA VT8371 PCI-PCI" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "NVIDIA Vanta" rev 0x15
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0 "VIA VT82C686 ISA" rev 0x22
pciide0 at pci0 dev 7 function 1 "VIA VT82C571 IDE" rev 0x10: ATA66, channel 0 
configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <ST330630A>
wd0: 16-sector PIO, LBA, 29188MB, 59777640 sectors
wd1 at pciide0 channel 0 drive 1: <ST320414A>
wd1: 16-sector PIO, LBA, 19092MB, 39102336 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 4
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <ASUS, CD-S500/A, 1.3C> ATAPI 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 7 function 2 "VIA VT83C572 USB" rev 0x10: irq 11
uhci1 at pci0 dev 7 function 3 "VIA VT83C572 USB" rev 0x10: irq 11
viaenv0 at pci0 dev 7 function 4 "VIA VT82C686 SMBus" rev 0x30: 24-bit timer 
at 3579545Hz
rl0 at pci0 dev 10 function 0 "Realtek 8139" rev 0x10: irq 9, address 
00:e0:4c:30:61:22
rlphy0 at rl0 phy 0: RTL internal PHY
eap0 at pci0 dev 14 function 0 "Ensoniq AudioPCI97" rev 0x07: irq 9
ac97: codec id 0x83847608 (SigmaTel STAC9708/11)
ac97: codec features 18 bit DAC, 18 bit ADC, SigmaTel 3D
audio0 at eap0
midi0 at eap0: <AudioPCI MIDI UART>
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi1 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 "VIA UHCI root hub" rev 1.00/1.00 addr 1
usb1 at uhci1: USB revision 1.0
uhub1 at usb1 "VIA UHCI root hub" rev 1.00/1.00 addr 1
biomask fd65 netmask ff65 ttymask ffff
mtrr: Pentium Pro MTRR support
softraid0 at root
root on wd0a swap on wd0b dump on wd0b

Reply via email to