LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > [solved] lsphp-5.2 Crashing for Missing Deps

Reply
 
Thread Tools Display Modes
  #1  
Old 03-14-2012, 07:19 PM
Atticus Atticus is offline
Member
 
Join Date: Nov 2010
Posts: 31
Default [solved] lsphp-5.2 Crashing for Missing Deps

Hi there,

I have setup a small VM with a Litespeed enterprise license on it. The VM runs Fedora 15 x86_64.

PHP and Lsws compiled and installed properly. When I call PHP, however, I get no response at all. Running the lsapi process thru strace ends in:

Quote:
2517 0.000260 [ 7f00257b0557] open("/usr/lib/mysql/libGeoIP.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
2517 0.000242 [ 7f00257b0557] open("/usr/lib64/mysql/libGeoIP.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
2517 0.000251 [ 7f00257b0557] open("/usr/lib64/tls/libGeoIP.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
2517 0.000236 [ 7f00257b0557] open("/usr/lib64/libGeoIP.so.1", O_RDONLY) = 3
2517 0.000231 [ 7f00257b05b7] read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@_\ 0\0\0\0\0\0"..., 832) = 832
2517 0.000225 [ 7f00257b04e4] fstat(3, {st_dev=makedev(8, 2), st_ino=404257, st_mode=S_IFREG|0755, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=424, st_size=216664, st_atime=2012/03/14-18:30:05, st_mtime=2011/09/05-20:56:57, st_ctime=2012/03/14-18:30:05}) = 0
2517 0.000284 [ 7f00257b06da] mmap(NULL, 2311792, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f001e7a3000
2517 0.000231 [ 7f00257b0737] mprotect(0x7f001e7d7000, 2093056, PROT_NONE) = 0
2517 0.000228 [ 7f00257b06da] mmap(0x7f001e9d6000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x33000) = 0x7f001e9d6000
2517 0.000251 [ 7f00257b0587] close(3) = 0
2517 0.000558 [ 7f00213e49a9] futex(0x7f00231b3ea8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
2517 0.000371 [ 7f002229f050] open("/proc/sys/crypto/fips_enabled", O_RDONLY) = -1 ENOENT (No such file or directory)
2517 0.001064 [ 7f00222a4b2a] brk(0) = 0x2528000
2517 0.000368 [ 7f00222a4b2a] brk(0x2549000) = 0x2549000
2517 0.002200 [ 7f00222a4b2a] brk(0) = 0x2549000
2517 0.000856 [ 7f00222a4b2a] brk(0x256a000) = 0x256a000
2517 0.000590 [ 7f00222a4b2a] brk(0) = 0x256a000
2517 0.000258 [ 7f00222a4b2a] brk(0x258b000) = 0x258b000
2517 0.000714 [ 7f002229f050] open("", O_RDONLY) = -1 ENOENT (No such file or directory)
2517 0.000418 [ 7f00222a877a] mmap(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f001dfa2000
2517 0.000284 [ 7f00222a87d7] mprotect(0x7f001dfa2000, 4096, PROT_NONE) = 0
2517 0.000235 [ 7f00222abe31] clone(child_stack=0x7f001e7a1ef0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND| CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARE NT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f001e7a29d0, tls=0x7f001e7a2700, child_tidptr=0x7f001e7a29d0) = 2518
2518 0.000302 [ 7f00213dfaca] set_robust_list(0x7f001e7a29e0, 0x18 <unfinished ...>
2517 0.000091 [ 7f00213e0cc0] futex(0x7f001e7a29d0, FUTEX_WAIT, 2518, NULL <unfinished ...>
2518 0.000051 [ 7f00213dfaca] <... set_robust_list resumed> ) = 0
2518 0.000268 [ 7f00222a877a] mmap(NULL, 134217728, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = -1 ENOMEM (Cannot allocate memory)
2518 0.000282 [ 7f00222a877a] mmap(NULL, 67108864, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x7f0011fa2000
2518 0.000274 [ 7f00222a87a7] munmap(0x7f0011fa2000, 67108864) = 0
2518 0.000332 [ 7f00222a877a] mmap(NULL, 134217728, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = -1 ENOMEM (Cannot allocate memory)
2518 0.000325 [ 7f00222a877a] mmap(NULL, 67108864, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x7f0011fa2000
2518 0.000281 [ 7f00222a87a7] munmap(0x7f0011fa2000, 67108864) = 0
2518 0.000326 [ 7f00222a877a] mmap(NULL, 134217728, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = -1 ENOMEM (Cannot allocate memory)
2518 0.000284 [ 7f00222a877a] mmap(NULL, 67108864, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x7f0011fa2000
2518 0.000271 [ 7f00222a87a7] munmap(0x7f0011fa2000, 67108864) = 0
2518 0.000295 [ 7f00222a877a] mmap(NULL, 134217728, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = -1 ENOMEM (Cannot allocate memory)
2518 0.000276 [ 7f00222a877a] mmap(NULL, 67108864, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x7f0011fa2000
2518 0.000287 [ 7f00222a87a7] munmap(0x7f0011fa2000, 67108864) = 0
2518 0.000277 [ 7f00222a877a] mmap(NULL, 134217728, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = -1 ENOMEM (Cannot allocate memory)
2518 0.000280 [ 7f00222a877a] mmap(NULL, 67108864, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x7f0011fa2000
2518 0.000289 [ 7f00222a87a7] munmap(0x7f0011fa2000, 67108864) = 0
2518 0.000375 [ 7f00222a877a] mmap(NULL, 134217728, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = -1 ENOMEM (Cannot allocate memory)
2518 0.000336 [ 7f00222a877a] mmap(NULL, 67108864, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x7f0011fa2000
2518 0.000365 [ 7f00222a87a7] munmap(0x7f0011fa2000, 67108864) = 0
2518 0.000308 [ 7f002229f050] open("/dev/tty", O_RDWR|O_NOCTTY|O_NONBLOCK) = -1 ENXIO (No such device or address)
2518 0.000375 [ 7f002223cfae] writev(2, [{"libgcc_s.so.1 must be installed "..., 59}], 1) = 59
2518 0.000401 [ 7f00222a877a] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f00259b6000
2518 0.000316 [ 7f00222004d0] rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
2518 0.000276 [ 7f0022200215] tgkill(2517, 2518, SIGABRT) = 0
2518 0.000280 [ 7f0022200215] --- {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=2517, si_uid=1001, si_value={int=3128074072, ptr=0xffff8800ba729f58}} (Aborted) ---
2517 0.002160 [????????????????] +++ killed by SIGABRT +++
It references libgcc_s.so.1 needing to be installed. I have the i686 version installed to /lib and the x86_64 version installed to /lib64. This being the cause of the problem is also present thru log lines appended to stdout.err --

Quote:
libgcc_s.so.1 must be installed for pthread_cancel to work
Kind of at a loss. It's most definitely there. Any help is appreciated. Thank you!

Last edited by NiteWave; 03-24-2012 at 07:42 PM..
Reply With Quote
  #2  
Old 03-15-2012, 01:50 AM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
has you enabled ZendGuard extension in php.ini ? is command line "lsphp5 -i" able to run ?
Reply With Quote
  #3  
Old 03-15-2012, 07:55 AM
Atticus Atticus is offline
Member
 
Join Date: Nov 2010
Posts: 31
ZendGuard is not enabled. Running lsphp-5.2 -i works without error. Executing fcgi-bin/lsphp-5.2 /home/www/htdocs/php.php executed successfully. Executing it over lsws fails.
Reply With Quote
  #4  
Old 03-15-2012, 03:33 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
does your lsphp5 external app use lsphp-5.2 ? pls check Admin Console => Server => External App => lsphp5 => Command to verify.

also check /proc/userbeancounters and see any failcnt increases.

Quote:
MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = -1 ENOMEM (Cannot allocate memory)
2518 0.000325 [ 7f00222a877a] mmap(NULL, 67108864, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x7f0011fa2000
2518 0.000281 [ 7f00222a87a7] munmap(0x7f0011fa2000, 67108864) = 0
2518 0.000326 [ 7f00222a877a] mmap(NULL, 134217728, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = -1 ENOMEM (Cannot allocate memory)
2518 0.000284 [ 7f00222a877a] mmap(NULL, 67108864, PROT_NONE,
Reply With Quote
  #5  
Old 03-20-2012, 01:04 PM
Atticus Atticus is offline
Member
 
Join Date: Nov 2010
Posts: 31
Hi there,

LSAPI App lsphp-5.2 uds://$SERVER_ROOT/tmp/lsphp-5.2.sock

$SERVER_ROOT/fcgi-bin/lsphp-5.2

stat /usr/lsws/fcgi-bin/lsphp-5.2
File: `/usr/lsws/fcgi-bin/lsphp-5.2' -> `/usr/lsws/fcgi-bin/lsphp-5.2.17'

The referenced file in /proc doesn't exist.
Reply With Quote
  #6  
Old 03-20-2012, 03:33 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
check your script handler and see if php (suffix) is associated with lsphp-5.2 or something else.

also run 'cat /proc/user_beancounters' from command line.
Reply With Quote
  #7  
Old 03-21-2012, 11:33 AM
Atticus Atticus is offline
Member
 
Join Date: Nov 2010
Posts: 31
I know 100&#37; for sure it is calling the lsapi. The lsapi is presently configured to invoke strace on lsphp-5.2, so if .php weren't associated with this lsapi then strace wouldn't be getting called.

That file also does not exist.
Reply With Quote
  #8  
Old 03-24-2012, 02:13 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
update:

increase memory soft/hard limit in lsphp-5.2 external app to over 250MB solves the issue.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:42 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.