Welcome! Log In Create A New Profile

Advanced

Errors: NGINX + FASTCGI + PHP-FPM + caching

Posted by ALIZA.SAND 
Errors: NGINX + FASTCGI + PHP-FPM + caching
June 10, 2010 11:44AM
Hi gentlemen,

I'm running into a few critical errors that are being thrown by Nginx.

[b]I have done significant research and have not found a solution[/b]
With this in mind, here are all the errors.
Any help is greatly appreciated!

[u]*** glibc detected *** nginx: worker process: malloc(): memory corruption: 0x0000000015ffc800 ***[/u]
[size=small][code]
======= Backtrace: =========
/lib64/libc.so.6[0x39a58724ac]
/lib64/libc.so.6(__libc_malloc+0x7a)[0x39a587402a]
nginx: worker process[0x4190d6]
nginx: worker process[0x404c66]
nginx: worker process[0x404d95]
nginx: worker process[0x406898]
nginx: worker process[0x418a91]
nginx: worker process[0x434ae9]
nginx: worker process[0x43687c]
nginx: worker process[0x434f82]
nginx: worker process[0x41703a]
nginx: worker process[0x416f02]
nginx: worker process[0x41c73f]
nginx: worker process[0x41afe3]
nginx: worker process[0x41cef8]
nginx: worker process[0x40409a]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x39a581d974]
nginx: worker process[0x4028c9]
======= Memory map: ========
00400000-00469000 r-xp 00000000 fd:00 3441207 /usr/local/sbin/nginx
00668000-00675000 rw-p 00068000 fd:00 3441207 /usr/local/sbin/nginx
00675000-00683000 rw-p 00675000 00:00 0
15f62000-16059000 rw-p 15f62000 00:00 0
39a5400000-39a541c000 r-xp 00000000 fd:00 3720964 /lib64/ld-2.5.so
39a561b000-39a561c000 r--p 0001b000 fd:00 3720964 /lib64/ld-2.5.so
39a561c000-39a561d000 rw-p 0001c000 fd:00 3720964 /lib64/ld-2.5.so
39a5800000-39a594c000 r-xp 00000000 fd:00 3720971 /lib64/libc-2.5.so
39a594c000-39a5b4c000 ---p 0014c000 fd:00 3720971 /lib64/libc-2.5.so
39a5b4c000-39a5b50000 r--p 0014c000 fd:00 3720971 /lib64/libc-2.5.so
39a5b50000-39a5b51000 rw-p 00150000 fd:00 3720971 /lib64/libc-2.5.so
39a5b51000-39a5b56000 rw-p 39a5b51000 00:00 0
39a5c00000-39a5c02000 r-xp 00000000 fd:00 3720977 /lib64/libdl-2.5.so
39a5c02000-39a5e02000 ---p 00002000 fd:00 3720977 /lib64/libdl-2.5.so
39a5e02000-39a5e03000 r--p 00002000 fd:00 3720977 /lib64/libdl-2.5.so
39a5e03000-39a5e04000 rw-p 00003000 fd:00 3720977 /lib64/libdl-2.5.so
39a7000000-39a7014000 r-xp 00000000 fd:00 3433955 /usr/lib64/libz.so.1.2.3
39a7014000-39a7213000 ---p 00014000 fd:00 3433955 /usr/lib64/libz.so.1.2.3
39a7213000-39a7214000 rw-p 00013000 fd:00 3433955 /usr/lib64/libz.so.1.2.3
39a7800000-39a792d000 r-xp 00000000 fd:00 3721369 /lib64/libcrypto.so.0.9.8e
39a792d000-39a7b2c000 ---p 0012d000 fd:00 3721369 /lib64/libcrypto.so.0.9.8e
39a7b2c000-39a7b4d000 rw-p 0012c000 fd:00 3721369 /lib64/libcrypto.so.0.9.8e
39a7b4d000-39a7b51000 rw-p 39a7b4d000 00:00 0
39a7c00000-39a7c09000 r-xp 00000000 fd:00 3721012 /lib64/libcrypt-2.5.so
39a7c09000-39a7e08000 ---p 00009000 fd:00 3721012 /lib64/libcrypt-2.5.so
39a7e08000-39a7e09000 r--p 00008000 fd:00 3721012 /lib64/libcrypt-2.5.so
39a7e09000-39a7e0a000 rw-p 00009000 fd:00 3721012 /lib64/libcrypt-2.5.so
39a7e0a000-39a7e38000 rw-p 39a7e0a000 00:00 0
39a8000000-39a800d000 r-xp 00000000 fd:00 3721371 /lib64/libgcc_s-4.1.2-20080825.so.1
39a800d000-39a820d000 ---p 0000d000 fd:00 3721371 /lib64/libgcc_s-4.1.2-20080825.so.1
39a820d000-39a820e000 rw-p 0000d000 fd:00 3721371 /lib64/libgcc_s-4.1.2-20080825.so.1
39aac00000-39aac1b000 r-xp 00000000 fd:00 3721381 /lib64/libpcre.so.0.0.1
39aac1b000-39aae1b000 ---p 0001b000 fd:00 3721381 /lib64/libpcre.so.0.0.1
39aae1b000-39aae1c000 rw-p 0001b000 fd:00 3721381 /lib64/libpcre.so.0.0.1
2af6836ec000-2af6836ed000 rw-p 2af6836ec000 00:00 0
2af6836f9000-2af6836fd000 rw-p 2af6836f9000 00:00 0
2af6836fd000-2af683732000 r--s 00000000 fd:00 3133947 /var/db/nscd/passwd
2af683732000-2af683767000 r--s 00000000 fd:00 3133948 /var/db/nscd/group
2af683767000-2af684167000 rw-s 00000000 00:09 1708270 /dev/zero (deleted)
2af684167000-2af684168000 rw-s 00000000 00:09 1708272 /dev/zero (deleted)
2af688000000-2af688021000 rw-p 2af688000000 00:00 0
2af688021000-2af68c000000 ---p 2af688021000 00:00 0
7fff273a9000-7fff273be000 rw-p 7ffffffea000 00:00 0 [stack]
ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0 [vdso]
2010/06/10 04:12:01 [alert] 6528#0: worker process 25803 exited on signal 6
[/code][/size]

[u]*** glibc detected *** nginx: worker process: free(): invalid next size (normal): 0x0000000015ffd8d0 ***[/u]
[size=small][code]
======= Backtrace: =========
/lib64/libc.so.6[0x39a5871cec]
/lib64/libc.so.6(cfree+0x8c)[0x39a587590c]
nginx: worker process[0x404b84]
nginx: worker process[0x426bc2]
nginx: worker process[0x426bf9]
nginx: worker process[0x4283e9]
nginx: worker process[0x4341ab]
nginx: worker process[0x434a33]
nginx: worker process[0x434b14]
nginx: worker process[0x43687c]
nginx: worker process[0x434f82]
nginx: worker process[0x41703a]
nginx: worker process[0x416f02]
nginx: worker process[0x41c73f]
nginx: worker process[0x41afe3]
nginx: worker process[0x41cef8]
nginx: worker process[0x40409a]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x39a581d974]
nginx: worker process[0x4028c9]

======= Memory map: ========
00400000-00469000 r-xp 00000000 fd:00 3441207 /usr/local/sbin/nginx
00668000-00675000 rw-p 00068000 fd:00 3441207 /usr/local/sbin/nginx
00675000-00683000 rw-p 00675000 00:00 0
15f62000-16036000 rw-p 15f62000 00:00 0
39a5400000-39a541c000 r-xp 00000000 fd:00 3720964 /lib64/ld-2.5.so
39a561b000-39a561c000 r--p 0001b000 fd:00 3720964 /lib64/ld-2.5.so
39a561c000-39a561d000 rw-p 0001c000 fd:00 3720964 /lib64/ld-2.5.so
39a5800000-39a594c000 r-xp 00000000 fd:00 3720971 /lib64/libc-2.5.so
39a594c000-39a5b4c000 ---p 0014c000 fd:00 3720971 /lib64/libc-2.5.so
39a5b4c000-39a5b50000 r--p 0014c000 fd:00 3720971 /lib64/libc-2.5.so
39a5b50000-39a5b51000 rw-p 00150000 fd:00 3720971 /lib64/libc-2.5.so
39a5b51000-39a5b56000 rw-p 39a5b51000 00:00 0
39a5c00000-39a5c02000 r-xp 00000000 fd:00 3720977 /lib64/libdl-2.5.so
39a5c02000-39a5e02000 ---p 00002000 fd:00 3720977 /lib64/libdl-2.5.so
39a5e02000-39a5e03000 r--p 00002000 fd:00 3720977 /lib64/libdl-2.5.so
39a5e03000-39a5e04000 rw-p 00003000 fd:00 3720977 /lib64/libdl-2.5.so
39a7000000-39a7014000 r-xp 00000000 fd:00 3433955 /usr/lib64/libz.so.1.2.3
39a7014000-39a7213000 ---p 00014000 fd:00 3433955 /usr/lib64/libz.so.1.2.3
39a7213000-39a7214000 rw-p 00013000 fd:00 3433955 /usr/lib64/libz.so.1.2.3
39a7800000-39a792d000 r-xp 00000000 fd:00 3721369 /lib64/libcrypto.so.0.9.8e
39a792d000-39a7b2c000 ---p 0012d000 fd:00 3721369 /lib64/libcrypto.so.0.9.8e
39a7b2c000-39a7b4d000 rw-p 0012c000 fd:00 3721369 /lib64/libcrypto.so.0.9.8e
39a7b4d000-39a7b51000 rw-p 39a7b4d000 00:00 0
39a7c00000-39a7c09000 r-xp 00000000 fd:00 3721012 /lib64/libcrypt-2.5.so
39a7c09000-39a7e08000 ---p 00009000 fd:00 3721012 /lib64/libcrypt-2.5.so
39a7e08000-39a7e09000 r--p 00008000 fd:00 3721012 /lib64/libcrypt-2.5.so
39a7e09000-39a7e0a000 rw-p 00009000 fd:00 3721012 /lib64/libcrypt-2.5.so
39a7e0a000-39a7e38000 rw-p 39a7e0a000 00:00 0
39a8000000-39a800d000 r-xp 00000000 fd:00 3721371 /lib64/libgcc_s-4.1.2-20080825.so.1
39a800d000-39a820d000 ---p 0000d000 fd:00 3721371 /lib64/libgcc_s-4.1.2-20080825.so.1
39a820d000-39a820e000 rw-p 0000d000 fd:00 3721371 /lib64/libgcc_s-4.1.2-20080825.so.1
39aac00000-39aac1b000 r-xp 00000000 fd:00 3721381 /lib64/libpcre.so.0.0.1
39aac1b000-39aae1b000 ---p 0001b000 fd:00 3721381 /lib64/libpcre.so.0.0.1
39aae1b000-39aae1c000 rw-p 0001b000 fd:00 3721381 /lib64/libpcre.so.0.0.1
2af6836ec000-2af6836ed000 rw-p 2af6836ec000 00:00 0
2af6836f9000-2af6836fd000 rw-p 2af6836f9000 00:00 0
2af6836fd000-2af683732000 r--s 00000000 fd:00 3133947 /var/db/nscd/passwd
2af683732000-2af683767000 r--s 00000000 fd:00 3133948 /var/db/nscd/group
2af683767000-2af684167000 rw-s 00000000 00:09 1708270 /dev/zero (deleted)
2af684167000-2af684168000 rw-s 00000000 00:09 1708272 /dev/zero (deleted)
2af688000000-2af688021000 rw-p 2af688000000 00:00 0
2af688021000-2af68c000000 ---p 2af688021000 00:00 0
7fff273a9000-7fff273be000 rw-p 7ffffffea000 00:00 0 [stack]
ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0 [vdso]
2010/06/10 04:14:55 [alert] 6528#0: worker process 24071 exited on signal 6

[/code][/size]


[size=small][u]2010/06/10 04:08:32 [alert] 6534#0: ignore long locked inactive cache entry 674e9f9b0e31329dc5cf7e4cc5847d33, count:1[/u]

[u]2010/06/10 04:38:46 [alert] 26939#0: *411848 sendfile() failed (22: Invalid argument) while sending to client[/u]

[u]2010/06/10 04:50:07 [error] 27536#0: *413515 directory index of *********** is forbidden, client:[/u][/size]

I will continue to look around for answers but this is occuring very often.

Thank you boys!
-Aliza
Re: Errors: NGINX + FASTCGI + PHP-FPM + caching
June 10, 2010 11:47AM
nginx -v returns


[b]nginx version: nginx/0.7.65[/b]
Re: Errors: NGINX + FASTCGI + PHP-FPM + caching
June 10, 2010 12:10PM
I fixed the following error:

[u]2010/06/10 04:50:07 [error] 27536#0: *413515 directory index of *********** is forbidden, client:[/u]

I believe the problem was with my config file

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}


and I have no conditions for the 40x pages

The root should be a full path in the server
Re: Errors: NGINX + FASTCGI + PHP-FPM + caching
June 17, 2010 10:52AM
Alright well since some people might look into a solution to the problem, here is how I fixed it


[list]
[*] my GET was too long and the caching was causing problems. This was causing the memory corruption and 'file too small' errors
[*] Our PHP scripts were taking too long to execute (also relating to the caching, they should be executing if the caching was working properly). Speeding up the PHP process completely removed all errors. I think the caching process would wait for the PHP to finish, when it took too long it tried to cache an incomplete result? Not sure, but works now
[/list]
Re: Errors: NGINX + FASTCGI + PHP-FPM + caching
June 17, 2010 10:23PM
It's a good DIY, congratulations!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 176
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready