SENDBUG: -*- sendbug -*-
SENDBUG: Lines starting with `SENDBUG' will be removed automatically.
SENDBUG:
SENDBUG: Choose from the following categories:
SENDBUG:
SENDBUG: system user library documentation ports kernel alpha amd64 arm
i386 m68k m88k mips ppc sgi sparc sparc64 vax
SENDBUG:
SENDBUG:
To:
gnats@...
Subject:
From: root
Cc: root
Reply-To: root
X-sendbug-version: 4.2
>Submitter-Id: net
>Originator: Daniel Polak
>Organization:
net
>Synopsis: web server running Gallery (using httpd and php5)
crashes several times a day
>Severity: critical
>Priority: medium
>Category: kernel
>Class: sw-bug
>Release: 4.3 stable
>Environment:
<machine, os, target, libraries (multiple lines)>
System : OpenBSD 4.3
Details : OpenBSD 4.3-stable (GENERIC) #4: Wed Jul 2
10:58:49 CEST 2008
root@...:/usr/src/sys/arch/i386/compile/GENERIC
Architecture: OpenBSD.i386
Machine : i386
>Description:
<precise description of the problem (multiple lines)>
About a month ago a web server that provides a PHP based photo
gallery started crashing
multiple times per day.
At that time it was running OpenBSD 4.1.
I installed everything from scratch on a different machine with
OpenBSD 4.3 (updated to stable)
and copied the data from the old machine. The problem keeps
occuring and the Gallery application
is becoming unusable as a result.
The Gallery software is from
http://gallery.menalto.com/ The following packages are installed to support the Gallery
software:
gettext-0.16.1 GNU gettext
jasper-1.900.1 reference implementation of JPEG-2000
jbigkit-1.6p1 lossless image compression library
jhead-2.6 Exif Jpeg camera setting parser and
thumbnail remover
jpeg-6bp3 IJG's JPEG compression utilities
libiconv-1.9.2p5 character set conversion library
libxml-2.6.30 XML parsing library
mysql-client-5.0.51a multithreaded SQL database (client)
mysql-server-5.0.51a multithreaded SQL database (server)
netpbm-10.26.46 toolkit for converting images between
different formats
p5-DBD-mysql-4.005 MySQL drivers for the Perl DBI
p5-DBI-1.59 unified perl interface for database access
p5-Net-Daemon-0.43 extension for portable daemons
p5-PlRPC-0.2018p0 module for writing rpc servers and clients
php5-core-5.2.5p2 server-side HTML-embedded scripting language
php5-mysql-5.2.5 mysql database access extensions for php5
png-1.2.22 library for manipulating PNG images
tiff-3.8.2p0 tools and library routines for working with
TIFF images
# uvm_fault(0xd07e9980, 0x1000d000, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at pmap_alloc_pv+0x46: movl 0(%ebx),%eax
ddb> trace
pmap_alloc_pv(d0809260,0,d95b1cec,d0447a99) at pmap_alloc_pv+0x46
pmap_enter(d0809260,d4f89000,af44000,1,11) at pmap_enter+0x339
uvm_pagermapin(d95b1ea4,1,0,1,d0202251) at uvm_pagermapin+0x110
uvm_swap_get(d95b1ea4,815,1,4,815) at uvm_swap_get+0xcf
uvm_pager_put(0,d0c2a7c0,d95b1e98,d95b1e9c,90) at uvm_pager_put+0x1d1
uvm_aiodone_daemon(d0803a08,12e2b,d95b1f6c,d044f2e5) at
uvm_aiodone_daemon+0x44
1
uvm_aiodone_daemon(c972,64b9,d092ceb8,d6667c18,d044e7f8) at
uvm_aiodone_daemon+
0x9f6
uvm_pageout(d6667c18) at uvm_pageout+0xae
Bad frame pointer: 0xd092ceb8
ddb> ps
PID PPID PGRP UID S FLAGS WAIT COMMAND
30848 9884 9884 67 3 0x180 netcon httpd
3531 9884 9884 67 3 0x180 netcon httpd
7432 9884 9884 67 3 0x180 netcon httpd
26653 9884 9884 67 3 0x100 biowait httpd
4049 9884 9884 67 3 0x100 biowait httpd
27911 9884 9884 67 2 0x100 httpd
13493 9884 9884 67 3 0x100 biowait httpd
18003 9884 9884 67 2 0x100 httpd
30944 9884 9884 67 3 0x100 biowait httpd
13923 9884 9884 67 2 0x100 httpd
29308 9884 9884 67 3 0x100 biowait httpd
19822 9884 9884 67 3 0x180 lockf httpd
10177 9884 9884 67 3 0x180 lockf httpd
24966 9884 9884 67 3 0x180 lockf httpd
153 9884 9884 67 3 0x100 biowait httpd
26105 9884 9884 67 3 0x100 biowait httpd
24618 9884 9884 67 3 0x100 biowait httpd
20807 9884 9884 67 2 0x100 httpd
23931 9884 9884 67 3 0x100 biowait httpd
7828 1 7828 0 3 0x4082 ttyin ksh
24771 1 24771 0 3 0x4082 ttyin getty
27908 1 27908 0 3 0x4082 ttyin getty
14189 1 14189 0 3 0x4082 ttyin getty
1508 1 1508 0 3 0x4082 ttyin getty
9152 1 9152 0 3 0x4082 ttyin getty
16294 1 16294 0 3 0x80 select cron
17553 1 17553 0 3 0x80 select sshd
22309 9884 9884 67 3 0x100 biowait httpd
23716 9884 9884 67 3 0x100 biowait httpd
12991 9884 9884 67 3 0x100 biowait httpd
14180 9884 9884 67 3 0x100 biowait httpd
13365 9884 9884 67 3 0x100 biowait httpd
27347 1 27347 71 3 0x180 kqread ftp-proxy
9884 1 9884 67 3 0x180 select httpd
29185 1 29185 0 3 0x80 poll ntpd
762 1 762 83 3 0x180 poll ntpd
16217 23190 23190 74 3 0x180 bpf pflogd
23190 1 23190 0 3 0x80 netio pflogd
5088 3917 3917 73 2 0x180 syslogd
3917 1 3917 0 3 0x88 netio syslogd
15 0 0 0 3 0x100200 bored crypto
14 0 0 0 2 0x100200 aiodoned
13 0 0 0 3 0x100200 syncer update
12 0 0 0 3 0x100200 cleaner cleaner
11 0 0 0 3 0x100200 reaper reaper
* 10 0 0 0 7 0x100200 pagedaemon
9 0 0 0 3 0x100200 pftm pfpurge
8 0 0 0 3 0x100200 usbevt usb1
7 0 0 0 3 0x100200 usbtsk usbtask
6 0 0 0 3 0x100200 usbevt usb0
5 0 0 0 3 0x100200 apmev apm0
4 0 0 0 3 0x100200 bored syswq
3 0 0 0 3 0x100200 idle0
2 0 0 0 3 0x100200 kmalloc kmthread
1 0 1 0 3 0x4080 wait init
0 -1 0 0 3 0x80200 scheduler swapper
>How-To-Repeat:
<code/input/activities to reproduce the problem (multiple lines)>
Problem occurs with current contents of photo gallery but the
application has run properly for several years.
I have no idea what sequence of events leads to the crash.
>Fix:
<how to correct or work around the problem, if known (multiple
lines)>