Anonymous | Login | Signup for a new account | 12-17-2024 10:42 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0005354 | [Quercus] | minor | always | 01-31-13 06:12 | 01-31-13 12:11 | ||||
Reporter | cowan | View Status | public | ||||||
Assigned To | nam | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 4.0.34 | ||||||
Summary | 0005354: OutOfMemory with UserCake Captcha | ||||||||
Description |
The following code, from the UserCake project, causes: "WarningService: Shutdown: TcpSocketLink OutOfMemory" Something throws an OutOfMemoryException due to out of heap memory. It happens consistently on Resin Pro 4.0.34. I'm not positive it's a Quercus bug, but this code looks fairly insignificant, so I suspect there is some issue in Quercus that causes the problem not the UserCake code. /* UserCake Version: 2.0.1 http://usercake.com [^] */ session_start(); $md5_hash = md5(rand(0,99999)); $security_code = substr($md5_hash, 25, 5); $enc = md5($security_code); $_SESSION['captcha'] = $enc; $width = 150; $height = 30; $image = ImageCreate($width, $height); $white = ImageColorAllocate($image, 255, 255, 255); $black = ImageColorAllocate($image, 0, 0, 0); $grey = ImageColorAllocate($image, 200, 200, 200); ImageFill($image, 0, 0, $white); ImageString($image, 10, 5, 0, $security_code, $black); header("Content-Type: image/png"); ImagePng($image); ImageDestroy($image); ImageDestroy($image); ?> |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
32 total queries executed. 27 unique queries executed. |