Re: PHP SIGSEGV with Mediawiki

2014-02-11 Thread Cyrus
On 02/11/2014 03:52 AM, Fred wrote:
 On 02/10/14 16:36, Fred wrote:
 On 02/10/14 14:47, Cyrus wrote:
 I never got a reply to this. I am still having issues with PHP crashing,
 in fact it seems to be happening for every new user. Old sites are
 working fine. I don't know why this is happening, as before there is
 very little information in /var/log/php-fpm.log about the crash. I need
 information on how to get more details from the system.


 kdump(1) might help you solve this issue.

 hth

 Fred

 /kdump/ktrace/ using kdump to inspect the file created by ktrace...
 
 

Thanks.

Well here is what kdump says happens when the index.php from Wordpress
is ran and PHP segfaults. I should probably submit this as a bug, but
I've never done that before. I'm not really sure if I'm the bug. Other
scripts, including wordpress run fine for other users. It seems to be
the latest users that can't run any scripts.

  8368 php-fpm-5.3 EMUL  native
  8368 php-fpm-5.3 STRU  struct sockaddr { AF_INET, 127.0.0.1:11108 }
  8368 php-fpm-5.3 RET   accept 3
  8368 php-fpm-5.3 CALL  clock_gettime(CLOCK_MONOTONIC,0x7f7d44a0)
  8368 php-fpm-5.3 STRU  struct timespec { 86638.942214588 }
  8368 php-fpm-5.3 RET   clock_gettime 0
  8368 php-fpm-5.3 CALL  gettimeofday(0x7f7d44a0,0)
  8368 php-fpm-5.3 STRU  struct timeval { 1392129901.926910 }
  8368 php-fpm-5.3 RET   gettimeofday 0
  8368 php-fpm-5.3 CALL  getrusage(RUSAGE_SELF,0x7f7d4400)
  8368 php-fpm-5.3 RET   getrusage 0
  8368 php-fpm-5.3 CALL  getrusage(RUSAGE_CHILDREN,0x7f7d4400)
  8368 php-fpm-5.3 RET   getrusage 0
  8368 php-fpm-5.3 CALL  gettimeofday(0x7f7d4490,0)
  8368 php-fpm-5.3 STRU  struct timeval { 1392129901.927026 }
  8368 php-fpm-5.3 RET   gettimeofday 0
  8368 php-fpm-5.3 CALL  poll(0x7f7d4590,0x1,0x1388)
  8368 php-fpm-5.3 RET   poll 1
  8368 php-fpm-5.3 CALL  read(0x3,0x7f7d4590,0x8)
  8368 php-fpm-5.3 GIO   fd 3 read 8 bytes
   \^A\^A\0\^A\0\b\0\0
  8368 php-fpm-5.3 RET   read 8
  8368 php-fpm-5.3 CALL  read(0x3,0x7f7d45a0,0x8)
  8368 php-fpm-5.3 GIO   fd 3 read 8 bytes
   \0\^A\0\0\0\0\0\0
  8368 php-fpm-5.3 RET   read 8
  8368 php-fpm-5.3 CALL  read(0x3,0x7f7d4590,0x8)
  8368 php-fpm-5.3 GIO   fd 3 read 8 bytes

   \^A\^D\0\^A\^C*\^F\0

  8368 php-fpm-5.3 RET   read 8

  8368 php-fpm-5.3 CALL  read(0x3,0x7f7d45a0,0x330)

  8368 php-fpm-5.3 GIO   fd 3 read 816 bytes


\^O#SCRIPT_FILENAME/var/www/sites/kval-nyhet/index.php\f\0QUERY_STRING\^N\^CREQUEST_METHODGET\f\0CONT\

ENT_TYPE\^N\0CONTENT_LENGTH


PATH_INFO/index.php\f\0QUERY_STRING\^N\^CREQUEST_METHODGET\f\0CONTENT_TYPE\^N\0CONTENT_LENGTH\v

SCRIPT_NAME/index.php\v\^AREQUEST_URI/\f


DOCUMENT_URI/index.php\r\^QDOCUMENT_ROOT/sites/kval-nyhet\^O\bSERVER_PROTOCOLHTTP/1.1\^Q\aGATEWAY_INT\


ERFACECGI/1.1\^O\vSERVER_SOFTWAREnginx/1.4.1\v\vREMOTE_ADDR192.168.0.3\v\^EREMOTE_PORT51449\v\vSERVER\


_ADDR192.168.0.2\v\^BSERVER_PORT80\v\^VSERVER_NAMEnyhethvbvg5gg66o.onion\^O\^CREDIRECT_STATUS200\

\^VHTTP_HOSTnyhethvbvg5gg66o.onion\^ODHTTP_USER_AGENTMozilla/5.0 (X11;
Linux x86_64; rv:27.0)\
 Gecko/20100101
Firefox/27.0\v?HTTP_ACCEPTtext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q\

=0.8\^T\^NHTTP_ACCEPT_LANGUAGEen-US,en;q=0.5\^T\rHTTP_ACCEPT_ENCODINGgzip,
deflate\b\^AHTTP_DNT1\^O
HTTP_CONNECTIONkeep-alive\0\0\0\0\0\0
  8368 php-fpm-5.3 RET   read 816/0x330
  8368 php-fpm-5.3 CALL  read(0x3,0x7f7d4590,0x8)
  8368 php-fpm-5.3 GIO   fd 3 read 8 bytes
   \^A\^D\0\^A\0\0\0\0
  8368 php-fpm-5.3 RET   read 8
  8368 php-fpm-5.3 CALL  gettimeofday(0x7f7e3b90,0)
  8368 php-fpm-5.3 STRU  struct timeval { 1392129901.927553 }
  8368 php-fpm-5.3 RET   gettimeofday 0
  8368 php-fpm-5.3 CALL  lstat(0x7f7e3d60,0x7f7e3c40)
  8368 php-fpm-5.3 NAMI  /var/www/sites/kval-nyhet/index.php
  8368 php-fpm-5.3 STRU  struct stat { dev=0, ino=11752572,
mode=-rw-r--r-- , nlink=1, uid=1042, gid=67, rdev=46973975,
atime=1392043543.479328112, mtime=1392042019.844487152,
ctime=1392042019.844487152, size=418, blocks=8, blksize=32768,
flags=0x0, gen=0x0 }
  8368 php-fpm-5.3 RET   lstat 0
  8368 php-fpm-5.3 CALL  lstat(0x7f7e3d60,0x7f7e3a90)
  8368 php-fpm-5.3 NAMI  /var/www/sites/kval-nyhet
  8368 php-fpm-5.3 STRU  struct stat { dev=0, ino=11754053,
mode=drwxrwxrwx , nlink=6, uid=1042, gid=67, rdev=46975478,
atime=1392082242.859385387, mtime=1392042028.289330592,
ctime=1392042824.605197430, size=1024, blocks=8, blksize=32768,
flags=0x0, gen=0x0 }
  8368 php-fpm-5.3 RET   lstat 0
  8368 php-fpm-5.3 CALL  lstat(0x7f7e3d60,0x7f7e38f0)
  8368 php-fpm-5.3 NAMI  /var/www/sites
  8368 php-fpm-5.3 STRU  struct stat { dev=0, ino=10862592,
mode=drwxr-xr-x , nlink=70, uid=0, gid=1, rdev=43406472,
atime=1392129604.122584194, mtime=1392042776.585950910,
ctime=1392042776.585950910, size=1536, blocks=8, blksize=32768,
flags=0x0, gen=0x0 }
  8368 php-fpm-5.3 RET   lstat 0
  8368 php-fpm-5.3 CALL  lstat(0x7f7e3d60,0x7f7e3760)
  8368 

Re: PHP SIGSEGV with Mediawiki

2014-02-10 Thread Cyrus
I never got a reply to this. I am still having issues with PHP crashing,
in fact it seems to be happening for every new user. Old sites are
working fine. I don't know why this is happening, as before there is
very little information in /var/log/php-fpm.log about the crash. I need
information on how to get more details from the system.

On 01/28/2014 05:05 PM, Cyrus wrote:
 I am having trouble with Mediawiki which started with the latest
 release, occurs for the long term stable, and the version under
 packages. When the install script is visited which comes with Mediawiki
 I get an error from FPM and a 503 bad gateway error. Unfortunately I've
 not been able to try much information from this, there are many people
 with similar problems but the answers are based on the same limited
 information. I have suhosin has been mentioned a few times, but I want
 to keep using it. I am not quite sure where to find the stack trace at
 this point.
 
 I have an OpenBSD 5.4 system using nginx and everything it uses comes
 out of packages. This is why to me it is largely an OpenBSD problem,
 though the stack trace might reveal how related it is to suhosin.
 
 [26-Jan-2014 00:17:37] NOTICE: [pool obfuscated] child 162 started
 [26-Jan-2014 00:17:44] WARNING: [pool obfuscated] child 28801 exited on
 signal 11 (SIGSEGV) after 963030.830741 seconds from start
 
 The time in seconds is in no way related to the script, where the
 response is actually quite quick in the browser. I am not sure what the
 actual meaning of that part of the error is supposed to be. I am used to
 this stuff just working.
 
 The fpm pool config is pretty standard and looks as follows...
 [obfuscated]
 user = obfuscated
 group = obfuscated
 
 listen = 127.0.0.1:9043
 listen.owner = www
 listen.group = www
 
 pm = dynamic
 pm.max_children = 5
 pm.start_servers = 2
 pm.min_spare_servers = 1
 pm.max_spare_servers = 3
 
 All the other pools are working fine with no such problems.
 
 There is no errors related to this failed request in messages or daemon
 logs so all I can leave you with is the dmesg. I hope someone can help
 and show me where to find more information such as the stack trace. That
 it happens even with the OpenBSD mediawiki package leads me to believe
 this would be the best place to mention the problem.
 
 OpenBSD 5.4 (GENERIC.MP) #41: Tue Jul 30 15:30:02 MDT 2013
 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
 real mem = 2130640896 (2031MB)
 avail mem = 2066255872 (1970MB)
 mainbus0 at root
 bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xe1000 (5 entries)
 bios0: vendor innotek GmbH version VirtualBox date 12/01/2006
 bios0: innotek GmbH VirtualBox
 acpi0 at bios0: rev 2
 acpi0: sleep states S0 S5
 acpi0: tables DSDT FACP APIC SSDT
 acpi0: wakeup devices
 acpitimer0 at acpi0: 3579545 Hz, 32 bits
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz, 2667.60 MHz
 cpu0:
 FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,SSSE3,NXE,LONG,LAHF
 cpu0: 2MB 64b/line 8-way L2 cache
 cpu0: smt 0, core 0, package 0
 cpu0: apic clock running at 1000MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz, 2667.22 MHz
 cpu1:
 FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,SSSE3,NXE,LONG,LAHF
 cpu1: 2MB 64b/line 8-way L2 cache
 cpu1: smt 0, core 1, package 0
 ioapic0 at mainbus0: apid 2 pa 0xfec0, version 11, 24 pins
 ioapic0: misconfigured as apic 0, remapped to apid 2
 acpiprt0 at acpi0: bus 0 (PCI0)
 acpicpu0 at acpi0
 acpicpu1 at acpi0
 acpibat0 at acpi0: BAT0 not present
 acpiac0 at acpi0: AC unit online
 pci0 at mainbus0 bus 0
 pchb0 at pci0 dev 0 function 0 Intel 82441FX rev 0x02
 pcib0 at pci0 dev 1 function 0 Intel 82371SB ISA rev 0x00
 pciide0 at pci0 dev 1 function 1 Intel 82371AB IDE rev 0x01: DMA,
 channel 0 configured to compatibility, channel 1 configured to compatibility
 wd0 at pciide0 channel 0 drive 0: VBOX HARDDISK
 wd0: 128-sector PIO, LBA48, 204800MB, 419430400 sectors
 wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
 atapiscsi0 at pciide0 channel 1 drive 0
 scsibus0 at atapiscsi0: 2 targets
 cd0 at scsibus0 targ 0 lun 0: VBOX, CD-ROM, 1.0 ATAPI 5/cdrom removable
 cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
 vga1 at pci0 dev 2 function 0 InnoTek VirtualBox Graphics Adapter rev 0x00
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 em0 at pci0 dev 3 function 0 Intel 82543GC rev 0x02: apic 2 int 19,
 address 08:00:27:85:37:f9
 InnoTek VirtualBox Guest Service rev 0x00 at pci0 dev 4 function 0 not
 configured
 piixpm0 at pci0 dev 7 function 0 Intel 82371AB Power rev 0x08: SMBus
 disabled
 isa0 at pcib0
 isadma0 at isa0
 pckbc0 at isa0 port 0x60/5
 pckbd0 at pckbc0 (kbd slot)
 pckbc0: 

Re: PHP SIGSEGV with Mediawiki

2014-02-10 Thread Fred

On 02/10/14 14:47, Cyrus wrote:

I never got a reply to this. I am still having issues with PHP crashing,
in fact it seems to be happening for every new user. Old sites are
working fine. I don't know why this is happening, as before there is
very little information in /var/log/php-fpm.log about the crash. I need
information on how to get more details from the system.



kdump(1) might help you solve this issue.

hth

Fred



Re: PHP SIGSEGV with Mediawiki

2014-02-10 Thread Fred

On 02/10/14 16:36, Fred wrote:

On 02/10/14 14:47, Cyrus wrote:

I never got a reply to this. I am still having issues with PHP crashing,
in fact it seems to be happening for every new user. Old sites are
working fine. I don't know why this is happening, as before there is
very little information in /var/log/php-fpm.log about the crash. I need
information on how to get more details from the system.



kdump(1) might help you solve this issue.

hth

Fred


/kdump/ktrace/ using kdump to inspect the file created by ktrace...



PHP SIGSEGV with Mediawiki

2014-01-27 Thread Cyrus
I am having trouble with Mediawiki which started with the latest
release, occurs for the long term stable, and the version under
packages. When the install script is visited which comes with Mediawiki
I get an error from FPM and a 503 bad gateway error. Unfortunately I've
not been able to try much information from this, there are many people
with similar problems but the answers are based on the same limited
information. I have suhosin has been mentioned a few times, but I want
to keep using it. I am not quite sure where to find the stack trace at
this point.

I have an OpenBSD 5.4 system using nginx and everything it uses comes
out of packages. This is why to me it is largely an OpenBSD problem,
though the stack trace might reveal how related it is to suhosin.

[26-Jan-2014 00:17:37] NOTICE: [pool obfuscated] child 162 started
[26-Jan-2014 00:17:44] WARNING: [pool obfuscated] child 28801 exited on
signal 11 (SIGSEGV) after 963030.830741 seconds from start

The time in seconds is in no way related to the script, where the
response is actually quite quick in the browser. I am not sure what the
actual meaning of that part of the error is supposed to be. I am used to
this stuff just working.

The fpm pool config is pretty standard and looks as follows...
[obfuscated]
user = obfuscated
group = obfuscated

listen = 127.0.0.1:9043
listen.owner = www
listen.group = www

pm = dynamic
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3

All the other pools are working fine with no such problems.

There is no errors related to this failed request in messages or daemon
logs so all I can leave you with is the dmesg. I hope someone can help
and show me where to find more information such as the stack trace. That
it happens even with the OpenBSD mediawiki package leads me to believe
this would be the best place to mention the problem.

OpenBSD 5.4 (GENERIC.MP) #41: Tue Jul 30 15:30:02 MDT 2013
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2130640896 (2031MB)
avail mem = 2066255872 (1970MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xe1000 (5 entries)
bios0: vendor innotek GmbH version VirtualBox date 12/01/2006
bios0: innotek GmbH VirtualBox
acpi0 at bios0: rev 2
acpi0: sleep states S0 S5
acpi0: tables DSDT FACP APIC SSDT
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz, 2667.60 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,SSSE3,NXE,LONG,LAHF
cpu0: 2MB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
cpu0: apic clock running at 1000MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz, 2667.22 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,SSSE3,NXE,LONG,LAHF
cpu1: 2MB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 11, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
acpicpu1 at acpi0
acpibat0 at acpi0: BAT0 not present
acpiac0 at acpi0: AC unit online
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel 82441FX rev 0x02
pcib0 at pci0 dev 1 function 0 Intel 82371SB ISA rev 0x00
pciide0 at pci0 dev 1 function 1 Intel 82371AB IDE rev 0x01: DMA,
channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: VBOX HARDDISK
wd0: 128-sector PIO, LBA48, 204800MB, 419430400 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: VBOX, CD-ROM, 1.0 ATAPI 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
vga1 at pci0 dev 2 function 0 InnoTek VirtualBox Graphics Adapter rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
em0 at pci0 dev 3 function 0 Intel 82543GC rev 0x02: apic 2 int 19,
address 08:00:27:85:37:f9
InnoTek VirtualBox Guest Service rev 0x00 at pci0 dev 4 function 0 not
configured
piixpm0 at pci0 dev 7 function 0 Intel 82371AB Power rev 0x08: SMBus
disabled
isa0 at pcib0
isadma0 at isa0
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
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
mtrr: CPU supports MTRRs but not enabled
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on wd0a (784d82c953376542.a) swap on wd0b dump on wd0b


-- 
CYRUSERV Onionland Hosting: http://cyruserv5hlagzhg.onion/
new email