Last modified: 2014-03-14 14:16:28 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T19203, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17203 - Loading/opening large images the server hangs
Loading/opening large images the server hangs
Status: NEW
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.13.x
Other Linux
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: testme
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-01-28 17:38 UTC by Alessandro Vesely
Modified: 2014-03-14 14:16 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Alessandro Vesely 2009-01-28 17:38:59 UTC
In php.ini upload_max_filesize = 64M, the image is ~1.3M,
$wgMaxShellMemory and $wgMaxShellFileSize are at their
default value of 102400. Then the call to ImageMagick
is done through wfShellExec, which runs bin/ulimit4.sh.

This is probably an ImageMagick or, possibly, libgc1c2,
according to the following bug reports
https://bugzilla.redhat.com/show_bug.cgi?id=446929
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=380727

As the convert executable hangs on a futex/wait, the cpu
time required to trigger the given ulimit is never reached.

Larger values for $wgMaxShellMemory and $wgMaxShellFileSize
will work.

Version: ImageMagick 6.2.4 02/10/07 Q16 http://www.imagemagick.org
ii  libgc1c2               6.8-1                  conservative garbage collector for C and C++

The following is the final part of stracing convert with debug

times({tms_utime=5, tms_stime=4, tms_cutime=0, tms_cstime=0}) = 1865220765
times({tms_utime=5, tms_stime=4, tms_cutime=0, tms_cstime=0}) = 1865220765
write(1, "17:06:18 0:02 0.090u 6.2.4 Trace"..., 9317:06:18 0:02 0.090u 6.2.4 Trace convert[26928]: hashmap.c/AppendValueToLinkedList/164/Trace
) = 93
write(1, "  ...\n", 6  ...
)                  = 6
times({tms_utime=5, tms_stime=4, tms_cutime=0, tms_cstime=0}) = 1865220765
times({tms_utime=5, tms_stime=4, tms_cutime=0, tms_cstime=0}) = 1865220765
brk(0x75a000)                           = 0x738000
mmap(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
times({tms_utime=5, tms_stime=4, tms_cutime=0, tms_cstime=0}) = 1865220765
times({tms_utime=5, tms_stime=4, tms_cutime=0, tms_cstime=0}) = 1865220765
brk(0x75a000)                           = 0x738000
mmap(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
times({tms_utime=5, tms_stime=4, tms_cutime=0, tms_cstime=0}) = 1865220765
times({tms_utime=5, tms_stime=4, tms_cutime=0, tms_cstime=0}) = 1865220765
brk(0x75b000)                           = 0x738000
mmap(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
times({tms_utime=5, tms_stime=4, tms_cutime=0, tms_cstime=0}) = 1865220765
times({tms_utime=5, tms_stime=4, tms_cutime=0, tms_cstime=0}) = 1865220765
brk(0x759000)                           = 0x738000
mmap(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
mmap(NULL, 2097152, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = -1 ENOMEM (Cannot allocate memory)
mmap(NULL, 1048576, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = -1 ENOMEM (Cannot allocate memory)
mmap(NULL, 2097152, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = -1 ENOMEM (Cannot allocate memory)
mmap(NULL, 1048576, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = -1 ENOMEM (Cannot allocate memory)
futex(0x503150, FUTEX_WAIT, 2, NULL <unfinished ...>
Comment 1 Andre Klapper 2014-03-14 14:16:28 UTC
Alessandro: Do you know if this still happens in a recent, supported version of MediaWiki?

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links