Author Topic: 500 error  (Read 3516 times)

0 Members and 1 Guest are viewing this topic.

Offline alekseyn1

  • Full Member
  • ***
  • Posts: 102
    • View Profile
    • My Project
500 error
« on: December 28, 2009, 01:09:13 PM »
Gents,

I have stumbled upon a very interesting issue...

my gallery runs well... very few server errors... but sometimes they do occur.... but today, one of the users uploaded an image... it shows under new photos, the thumb gets created, but when anyone attempts to view it, the error 500 occurs...

here is what the tech support from the provider gave me...

Quote
Hello,
I'm sorry, but the system appears to be segfaulting when trying to load that one image. I'm not certain why. It's possible there is a memory issue, if the image is unusually large in dimension (although it is not unusually large in file size). Here is the segfault in process execution trace:
time(NULL) = 1261997397
open("/home/.../data/media/4/2962016_large.jpeg", O_RDONLY) = 6
fstat64(6, {st_mode=S_IFREG|0666, st_size=109869, ...}) = 0
lseek(6, 0, SEEK_CUR) = 0
time(NULL) = 1261997397
stat64("/home/.../data/media/4/2962016_large.jpeg", {st_mode=S_IFREG|0666, st_size=109869, ...}) = 0
lseek(6, 0, SEEK_SET) = 0
read(6, "\377\330\377\340\0\20JFIF\0\1\2\1\0`\0`\0\0\377\341+\235Exif\0\0II"..., 8192) = 8192
read(6, "sj\223\v\270-\21\227l~fIb;q\322\200=#\341E\375\315\226\250\326\27O\30\16\236b"..., 8192) = 8192
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
Process 20152 detached

And the backtrace from the core dump:
#0 0x46cf47dc in memcpy () from /lib/libc.so.6
#1 0x08311953 in _estrndup (s=0xb4bb18e4 <Address 0xb4bb18e4 out of bounds>, length=3032160484) at /home/cpeasyapache/src/php-5.2.9/Zend/zend_alloc.c:2439
#2 0x0810d50a in exif_iif_add_tag (image_info=0xbfd804a4, section_index=147914252, name=0xbfd80014 "UndefinedTag:0x000D", tag=13, format=7, length=3072,
value=0xb4bb18e4, tsrm_ls=0x8865730) at /home/cpeasyapache/src/php-5.2.9/ext/exif/exif.c:1723
#3 0x0810e427 in exif_process_IFD_TAG (ImageInfo=0xbfd804a4, dir_entry=0x8d0d518 "\r", offset_base=0xb4bb1568 <Address 0xb4bb1568 out of bounds>,
IFDlength=11157, displacement=30, section_index=13, ReadNextIFD=0, tag_table=0x847d440, tsrm_ls=0x8865730)
at /home/cpeasyapache/src/php-5.2.9/ext/exif/exif.c:3120
#4 0x0810f30e in exif_process_IFD_TAG (ImageInfo=0xbfd804a4, dir_entry=<value optimized out>, offset_base=0xb4bb1568 <Address 0xb4bb1568 out of bounds>,
IFDlength=11157, displacement=30, section_index=7, ReadNextIFD=1, tag_table=0x847ca20, tsrm_ls=0x8865730)
at /home/cpeasyapache/src/php-5.2.9/ext/exif/exif.c:2807
#5 0x0810e007 in exif_process_IFD_in_JPEG (ImageInfo=0xbfd804a4, dir_start=<value optimized out>, offset_base=0x8d0d26c "II*", IFDlength=11157,
displacement=30, section_index=7, tsrm_ls=0x8865730) at /home/cpeasyapache/src/php-5.2.9/ext/exif/exif.c:3148
#6 0x0810f120 in exif_process_IFD_TAG (ImageInfo=0xbfd804a4, dir_entry=<value optimized out>, offset_base=0x8d0d26c "II*", IFDlength=11157,
displacement=30, section_index=3, ReadNextIFD=1, tag_table=0x847ca20, tsrm_ls=0x8865730) at /home/cpeasyapache/src/php-5.2.9/ext/exif/exif.c:3111
#7 0x0810e007 in exif_process_IFD_in_JPEG (ImageInfo=0xbfd804a4, dir_start=<value optimized out>, offset_base=0x8d0d26c "II*", IFDlength=11157,
displacement=30, section_index=3, tsrm_ls=0x8865730) at /home/cpeasyapache/src/php-5.2.9/ext/exif/exif.c:3148
#8 0x08110d04 in exif_read_file (ImageInfo=0xbfd804a4, FileName=<value optimized out>, read_thumbnail=0, read_all=0, tsrm_ls=0x8865730)
at /home/cpeasyapache/src/php-5.2.9/ext/exif/exif.c:3225
#9 0x08111fa6 in zif_exif_read_data (ht=2, return_value=0x8b20714, return_value_ptr=0x0, this_ptr=0x0, return_value_used=1, tsrm_ls=0x8865730)
at /home/cpeasyapache/src/php-5.2.9/ext/exif/exif.c:3972

Unfortunately, at this time there is nothing we can do to assist in getting this picture viewable. I have attempted to increase memory - although we were already at the maximum allotment for our shared servers - temporarily, and that did not make a difference. If this file is unusually large in dimension, you may wish to scale it down before uploading it to the site.

Cheers,
Linux Systems Administration


this happens with ONLY ONE picture so far... other pics show well with no problems.... strange....

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: 500 error
« Reply #1 on: December 28, 2009, 04:47:31 PM »
It could be just a corrupted image...
Also, is this happening when you view the image or trying resize it?
Did you try it on different server?

Either way I wouldn't worry about it...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline alekseyn1

  • Full Member
  • ***
  • Posts: 102
    • View Profile
    • My Project
Re: 500 error
« Reply #2 on: December 28, 2009, 10:17:20 PM »
that's exactly what was weird... it happened only when you try and view it...

on my other site, that runs 1.7.6 it got uploaded with no problems... (same host)... anyways... I start suspecting that I have too many MODs installed....

oh well... deleted it and asked to resize and re-upload it...

anyone needs a job )))? i need someone to optimize the code I think... i have commented on EVERY modification I made within the code...