I am not sure I was clear enough that the problem is with php_fpm.  When it
is started the child processes seem to continually stop and are restarted.
In spite of what the log file says the processes seem to quit right away as
the system is tied up with running the processes and logging the stops.  The
php_fpm log file is 300MB.
I ran the debug command that you provided and it seems fine.  It runs
without php70_fpm started.  Output is below and attached. 
I have not been able to get phpinfo output from a web interface with httpd,
which I can and always do when testing a new setup.

>From log:
> [10-Aug-2018 23:40:26] WARNING: [pool www] child 79334 exited on 
> signal 10
> (SIGBUS) after 1098009296.000000 seconds from start


Top:
load averages:  2.98,  0.86,  0.39
op1bsdtest2.graf.lan 15:15:33
39 processes: 5 running, 33 idle, 1 on processor
up  3:06
CPU states:  5.9% user,  0.0% nice, 94.1% sys,  0.0% spin,  0.0% intr,  0.0%
idle
Memory: Real: 29M/206M act/tot Free: 286M Cache: 98M Swap: 0K/516M
kill
  PID USERNAME PRI NICE  SIZE   RES STATE     WAIT      TIME    CPU COMMAND
49704 root       2    0 7356K 2180K sleep     kqread    0:12 23.83%
php-fpm-7.0
38390 sysadmin   2    0 1008K 2364K sleep     select    0:03  0.00% sshd
    1 root      10    0  352K  272K idle      wait      0:01  0.00% init
57340 _ntp       2  -20  848K 1912K sleep     poll      0:00  0.00% ntpd
15502 _pflogd    4    0  704K  408K sleep     bpf       0:00  0.00% pflogd
 9764 root       2    0  988K 2796K idle      poll      0:00  0.00% sshd
49369 root      18    0  864K  640K sleep     pause     0:00  0.00% ksh
 6465 root      28    0 1372K 2280K onproc    -         0:00  0.00% top
  854 _ntp       2    0  668K 1812K idle      poll      0:00  0.00% ntpd
13645 _smtpd     2    0 1364K 3088K idle      kqread    0:00  0.00% smtpd
 4137 _smtpd     2    0 1220K 2900K idle      kqread    0:00  0.00% smtpd
14993 root       2    0  648K 1048K idle      poll      0:00  0.00% cron
28684 _smtpd     2    0 1224K 2880K idle      kqread    0:00  0.00% smtpd
88044 root       2  -20  732K 1432K idle      poll      0:00  0.00% ntpd
60226 _syslogd   2    0  952K 1284K sleep     kqread    0:00  0.00% syslogd
43604 _smtpq     2    0 1436K 3080K idle      kqread    0:00  0.00% smtpd
68739 _smtpd     2    0 1428K 3092K idle      kqread    0:00  0.00% smtpd
31473 _smtpd     2    0 1292K 2948K idle      kqread    0:00  0.00% smtpd
82986 root       2    0 1212K 2016K idle      kqread    0:00  0.00% httpd
16559 www        2    0  824K 2208K idle      kqread    0:00  0.00% httpd
76234 root       2    0  488K 1604K idle      netio     0:00  0.00% syslogd
 9789 www        2    0  860K 2204K idle      kqread    0:00  0.00% httpd
42976 www        2    0  736K 2076K idle      kqread    0:00  0.00% httpd
 1778 www        2    0  916K 2160K idle      kqread    0:00  0.00% httpd
37123 sysadmin  18    0  744K  620K idle      pause     0:00  0.00% ksh
55251 root       2    0 1560K 1856K idle      kqread    0:00  0.00% smtpd
65755 root       3    0  284K  988K idle      ttyin     0:00  0.00% getty
35561 _slaacd    2    0  680K  584K idle      kqread    0:00  0.00% slaacd
62789 root       2    0  660K  464K idle      netio     0:00  0.00% pflogd
79760 root       2    0  912K 1248K idle      select    0:00  0.00% sshd
51612 www       64    0 7356K 1860K run       -         0:00  0.00%
php-fpm-7.0
30336 _slaacd    2    0  660K  532K idle      kqread    0:00  0.00% slaacd
54175 root       2    0  664K  480K idle      kqread    0:00  0.00% slaacd
87941 _sndiop    2    0  364K  752K idle      poll      0:00  0.00% sndiod
29552 _sndio     2  -20  380K  648K idle      poll      0:00  0.00% sndiod
13091 root      64    0 7356K    0K run       -         0:00  0.00%
php-fpm-7.0
86065 root      64    0 7356K    0K run       -         0:00  0.00%
php-fpm-7.0
27417 root      64    0 7356K    0K run       -         0:00  0.00%
php-fpm-7.0
42827 root      64    0 7356K    0K run       -         0:00  0.00%
php-fpm-7.0




Running the debug command - output of console; output file is attached.

op1bsdtest2# LD_DEBUG=1 php-7.0 -r 'phpinfo();' > php_debug_rel_30p10,txt
ld.so loading: 'php-7.0'
exe load offset:  0x835b000
 flags php-7.0 = 0x0
head php-7.0
obj php-7.0 has php-7.0 as head
examining: 'php-7.0'
loading: libpthread.so.25.1 required by php-7.0
 flags /usr/lib/libpthread.so.25.1 = 0x8
obj /usr/lib/libpthread.so.25.1 has php-7.0 as head
loading: libxml2.so.16.1 required by php-7.0
 flags /usr/local/lib/libxml2.so.16.1 = 0x0
obj /usr/local/lib/libxml2.so.16.1 has php-7.0 as head
loading: libssl.so.45.1 required by php-7.0
 flags /usr/lib/libssl.so.45.1 = 0x0
obj /usr/lib/libssl.so.45.1 has php-7.0 as head
loading: libreadline.so.4.0 required by php-7.0
 flags /usr/lib/libreadline.so.4.0 = 0x0
obj /usr/lib/libreadline.so.4.0 has php-7.0 as head
loading: libiconv.so.6.0 required by php-7.0
 flags /usr/local/lib/libiconv.so.6.0 = 0x0
obj /usr/local/lib/libiconv.so.6.0 has php-7.0 as head
loading: liblzma.so.2.1 required by php-7.0
 flags /usr/local/lib/liblzma.so.2.1 = 0x0
obj /usr/local/lib/liblzma.so.2.1 has php-7.0 as head
loading: libintl.so.6.0 required by php-7.0
 flags /usr/local/lib/libintl.so.6.0 = 0x0
obj /usr/local/lib/libintl.so.6.0 has php-7.0 as head
loading: libc.so.92.4 required by php-7.0
 flags /usr/lib/libc.so.92.4 = 0x0
obj /usr/lib/libc.so.92.4 has php-7.0 as head
loading: libcurses.so.14.0 required by php-7.0
 flags /usr/lib/libcurses.so.14.0 = 0x0
obj /usr/lib/libcurses.so.14.0 has php-7.0 as head
loading: libm.so.10.1 required by php-7.0
 flags /usr/lib/libm.so.10.1 = 0x0
obj /usr/lib/libm.so.10.1 has php-7.0 as head
loading: libonig.so.3.0 required by php-7.0
 flags /usr/local/lib/libonig.so.3.0 = 0x0
obj /usr/local/lib/libonig.so.3.0 has php-7.0 as head
loading: libcrypto.so.43.1 required by php-7.0
 flags /usr/lib/libcrypto.so.43.1 = 0x0
obj /usr/lib/libcrypto.so.43.1 has php-7.0 as head
loading: libz.so.5.0 required by php-7.0
 flags /usr/lib/libz.so.5.0 = 0x0
obj /usr/lib/libz.so.5.0 has php-7.0 as head
linking dep /usr/lib/libreadline.so.4.0 as child of php-7.0
linking dep /usr/lib/libcurses.so.14.0 as child of php-7.0
linking dep /usr/local/lib/libonig.so.3.0 as child of php-7.0
linking dep /usr/local/lib/libiconv.so.6.0 as child of php-7.0
linking dep /usr/local/lib/libintl.so.6.0 as child of php-7.0
linking dep /usr/lib/libz.so.5.0 as child of php-7.0
linking dep /usr/lib/libm.so.10.1 as child of php-7.0
linking dep /usr/local/lib/libxml2.so.16.1 as child of php-7.0
linking dep /usr/local/lib/liblzma.so.2.1 as child of php-7.0
linking dep /usr/lib/libssl.so.45.1 as child of php-7.0
linking dep /usr/lib/libcrypto.so.43.1 as child of php-7.0
objname /usr/lib/libpthread.so.25.1 is nodelete
linking dep /usr/lib/libpthread.so.25.1 as child of php-7.0
linking dep /usr/lib/libc.so.92.4 as child of php-7.0
examining: '/usr/lib/libreadline.so.4.0'
examining: '/usr/lib/libcurses.so.14.0'
examining: '/usr/local/lib/libonig.so.3.0'
examining: '/usr/local/lib/libiconv.so.6.0'
examining: '/usr/local/lib/libintl.so.6.0'
loading: libiconv.so.6.0 required by /usr/local/lib/libintl.so.6.0
linking dep /usr/local/lib/libiconv.so.6.0 as child of
/usr/local/lib/libintl.so.6.0
examining: '/usr/lib/libz.so.5.0'
examining: '/usr/lib/libm.so.10.1'
examining: '/usr/local/lib/libxml2.so.16.1'
loading: libiconv.so.6.0 required by /usr/local/lib/libxml2.so.16.1
loading: libpthread.so.25.1 required by /usr/local/lib/libxml2.so.16.1
loading: libz.so.5.0 required by /usr/local/lib/libxml2.so.16.1
loading: libm.so.10.1 required by /usr/local/lib/libxml2.so.16.1
loading: liblzma.so.2.1 required by /usr/local/lib/libxml2.so.16.1
linking dep /usr/lib/libz.so.5.0 as child of /usr/local/lib/libxml2.so.16.1
linking dep /usr/local/lib/liblzma.so.2.1 as child of
/usr/local/lib/libxml2.so.16.1
linking dep /usr/local/lib/libiconv.so.6.0 as child of
/usr/local/lib/libxml2.so.16.1
linking dep /usr/lib/libm.so.10.1 as child of /usr/local/lib/libxml2.so.16.1
linking dep /usr/lib/libpthread.so.25.1 as child of
/usr/local/lib/libxml2.so.16.1
examining: '/usr/local/lib/liblzma.so.2.1'
loading: libpthread.so.25.1 required by /usr/local/lib/liblzma.so.2.1
linking dep /usr/lib/libpthread.so.25.1 as child of
/usr/local/lib/liblzma.so.2.1
examining: '/usr/lib/libssl.so.45.1'
loading: libcrypto.so.43.1 required by /usr/lib/libssl.so.45.1
linking dep /usr/lib/libcrypto.so.43.1 as child of /usr/lib/libssl.so.45.1
examining: '/usr/lib/libcrypto.so.43.1'
examining: '/usr/lib/libpthread.so.25.1'
examining: '/usr/lib/libc.so.92.4'
 flags /usr/libexec/ld.so = 0x0
obj /usr/libexec/ld.so has php-7.0 as head
static tls size=0 align=4 offset=0
protect start RELRO = 0x81d14000 in /usr/lib/libc.so.92.4
protect end RELRO = 0x81d16000 in /usr/lib/libc.so.92.4
protect start RELRO = 0x794ce000 in /usr/lib/libpthread.so.25.1
protect end RELRO = 0x794cf000 in /usr/lib/libpthread.so.25.1
protect start RELRO = 0x727c5000 in /usr/lib/libcrypto.so.43.1
protect end RELRO = 0x727d4000 in /usr/lib/libcrypto.so.43.1
protect start RELRO = 0x75f27000 in /usr/lib/libssl.so.45.1
protect end RELRO = 0x75f29000 in /usr/lib/libssl.so.45.1
protect start RELRO = 0x861e0000 in /usr/local/lib/liblzma.so.2.1
protect end RELRO = 0x861e1000 in /usr/local/lib/liblzma.so.2.1
protect start RELRO = 0x5d634000 in /usr/local/lib/libxml2.so.16.1
protect end RELRO = 0x5d639000 in /usr/local/lib/libxml2.so.16.1
protect start RELRO = 0x4a335000 in /usr/lib/libm.so.10.1
protect end RELRO = 0x4a336000 in /usr/lib/libm.so.10.1
protect start RELRO = 0x6d759000 in /usr/lib/libz.so.5.0
protect end RELRO = 0x6d75a000 in /usr/lib/libz.so.5.0
protect start RELRO = 0x5315b000 in /usr/local/lib/libintl.so.6.0
protect end RELRO = 0x5315c000 in /usr/local/lib/libintl.so.6.0
protect start RELRO = 0x4bcd3000 in /usr/local/lib/libiconv.so.6.0
protect end RELRO = 0x4bcd4000 in /usr/local/lib/libiconv.so.6.0
protect start RELRO = 0x7ff1a000 in /usr/local/lib/libonig.so.3.0
protect end RELRO = 0x7ff1b000 in /usr/local/lib/libonig.so.3.0
protect start RELRO = 0x888fe000 in /usr/lib/libcurses.so.14.0
protect end RELRO = 0x88900000 in /usr/lib/libcurses.so.14.0
protect start RELRO = 0x79934000 in /usr/lib/libreadline.so.4.0
protect end RELRO = 0x79935000 in /usr/lib/libreadline.so.4.0
protect start RELRO = 0x8c1c000 in php-7.0
protect end RELRO = 0x8c6b7f4 in php-7.0
        Start    End      Type  Open Ref GrpRef Name
        0835b000 08c85000 exe   2    0   0      php-7.0
        79906000 79936000 rlib  0    1   0      /usr/lib/libreadline.so.4.0
        888ba000 88901000 rlib  0    1   0      /usr/lib/libcurses.so.14.0
        7fea1000 7ff1c000 rlib  0    1   0
/usr/local/lib/libonig.so.3.0
        4bbda000 4bcd5000 rlib  0    3   0
/usr/local/lib/libiconv.so.6.0
        53150000 5315d000 rlib  0    1   0
/usr/local/lib/libintl.so.6.0
        6d745000 6d75b000 rlib  0    2   0      /usr/lib/libz.so.5.0
        4a31a000 4a337000 rlib  0    2   0      /usr/lib/libm.so.10.1
        5d4bb000 5d63a000 rlib  0    1   0
/usr/local/lib/libxml2.so.16.1
        861bc000 861e2000 rlib  0    2   0
/usr/local/lib/liblzma.so.2.1
        75ee5000 75f2a000 rlib  0    1   0      /usr/lib/libssl.so.45.1
        72663000 727d6000 rlib  0    2   0      /usr/lib/libcrypto.so.43.1
        794c6000 794d0000 rlib  0    3   0      /usr/lib/libpthread.so.25.1
        81c59000 81d25000 rlib  0    1   0      /usr/lib/libc.so.92.4
        60452000 60452000 ld.so 0    1   0      /usr/libexec/ld.so
symcache lookups 1157 hits 0 ratio 0% hits
dynamic loading done, success.
tib new=0x50ead280
setting environ 0x8c6c000@php-7.0[0x81de7000] from 0x60468004
setting __progname 0x8c6c004@php-7.0[0x81de7000] from 0x60468008
doing ctors obj 0x675e4e00 @0x7992f790: [/usr/lib/libreadline.so.4.0]
doing ctors obj 0x675e4200 @0x888fb960: [/usr/lib/libcurses.so.14.0]
doing ctors obj 0x4f411e00 @0x7fee7000: [/usr/local/lib/libonig.so.3.0]
doing ctors obj 0x5569b800 @0x4bcb6000: [/usr/local/lib/libiconv.so.6.0]
doing ctors obj 0x81de7200 @0x53152000: [/usr/local/lib/libintl.so.6.0]
doing ctors obj 0x5569b400 @0x6d757590: [/usr/lib/libz.so.5.0]
doing ctors obj 0x81de7400 @0x4a333d10: [/usr/lib/libm.so.10.1]
doing ctors obj 0x5569bc00 @0x794cc2f0: [/usr/lib/libpthread.so.25.1]
doing ctors obj 0x5569be00 @0x861c5000: [/usr/local/lib/liblzma.so.2.1]
doing ctors obj 0x4f411000 @0x5d4fb000: [/usr/local/lib/libxml2.so.16.1]
doing ctors obj 0x81de7c00 @0x727bad80: [/usr/lib/libcrypto.so.43.1]
doing initarray obj 0x81de7c00 @0x727d1e60: [/usr/lib/libcrypto.so.43.1]
doing ctors obj 0x675e4600 @0x75f22ab0: [/usr/lib/libssl.so.45.1]
entry point: 0x88a4000
dlsym: php_cli_get_shell_callbacks in php-7.0: 0x8c04fc0
op1bsdtest2#

-----Original Message-----
From: Stuart Henderson <s...@spacehopper.org> 
Sent: August 11, 2018 4:18 AM
To: tech@openbsd.org
Cc: s_g...@telus.net
Subject: Fwd from arm@: Re: problem with new php build on armv7

I just noticed (after replying) that this was originally on arm@.
Forwarding to a list with slightly more readers :)


----- Forwarded message from Stuart Henderson <s...@spacehopper.org> -----

From: Stuart Henderson <s...@spacehopper.org>
Date: Sat, 11 Aug 2018 12:16:50 +0100
To: s_g...@telus.net
Cc: a...@openbsd.org
User-Agent: NeoMutt/20180716
Subject: Re: problem with new php build on armv7
Mail-Followup-To: s_g...@telus.net, a...@openbsd.org

On 2018/08/10 23:54, s_g...@telus.net wrote:
> I just tried to use php70 from the recent package build for armv7, on 
> a fresh install of current Aug 9.
> 
>  
> 
> When started, php runs constantly with the following log entries:
> 
>  
> 
> op1bsdtest2# tail /var/log/php-fpm.log
> 
> [10-Aug-2018 23:40:26] WARNING: [pool www] child 45495 exited on 
> signal 10
> (SIGBUS) after 1098009296.000000 seconds from start
> 
> [10-Aug-2018 23:40:26] NOTICE: [pool www] child 59471 started
> 
> [10-Aug-2018 23:40:26] WARNING: [pool www] child 79334 exited on 
> signal 10
> (SIGBUS) after 1098009296.000000 seconds from start
> 
> [10-Aug-2018 23:40:26] NOTICE: [pool www] child 89082 started
> 
> [10-Aug-2018 23:40:26] WARNING: [pool www] child 22475 exited on 
> signal 10
> (SIGBUS) after 1098009296.000000 seconds from start
> 
> [10-Aug-2018 23:40:26] NOTICE: [pool www] child 39523 started
> 
> [10-Aug-2018 23:40:26] WARNING: [pool www] child 84388 exited on 
> signal 10
> (SIGBUS) after 1098009296.000000 seconds from start
> 
> [10-Aug-2018 23:40:26] NOTICE: [pool www] child 79891 started
> 
> [10-Aug-2018 23:40:26] WARNING: [pool www] child 45004 exited on 
> signal 10
> (SIGBUS) after 1098009296.000000 seconds from start
> 
> [10-Aug-2018 23:40:26] NOTICE: [pool www] child 23439 started
> 
>  
> 
> I tried php56 and got similar results.
> 
> Has anyone had any success with the latest php package on armv7?
> 
>  
> 
> I am currently using php70 from a package I build in mid May (release 
> 7.0.29).
> 

armv7 recently switched from the gnu linker to the clang one (lld), which
might be involved. Can you get some more information?

- Try running php at the command-line:

$ php-7.0 -r 'phpinfo();'

- Try the above with LD_DEBUG set in the environment, there is likely to be
a lot of output so run it under script(1). Look for errors, or even better
do the same with an older working binary and compare output between the two:

$ LD_DEBUG=1 php-7.0 -r 'phpinfo();'

- Try running it under gdb and see if you can get a backtrace.

$ gdb `which php-7.0`
set args -r 'phpinfo();'
r

If command-line php doesn't crash, try the various things above with
php-fpm-7.0 and -F to run in the foreground instead of -r 'phpinfo();'.


----- End forwarded message -----

Attachment: php_debug_rel_30p10,txt
Description: Binary data

Reply via email to