JCaptcha causing my JVM and Tomcat to crash...

Description

I recently have run into an issue where the JCaptcha engine crashes our tomcat server. When trying to implement JCaptcha on one

of our web applications, the first load works fine. If you refresh window a couple times, crashes tomcat. The tomcat logs

read:

  1. An unexpected error has been detected by HotSpot Virtual Machine:
    #

  2. SIGSEGV (0xb) at pc=0x6eaa33b3, pid=3968, tid=1842867120
    #

  3. Java VM: Java HotSpot(TM) Server VM (1.5.0_06-b05 mixed mode)

  4. Problematic frame:

  5. C [libfontmanager.so+0x323b3]
    #

  6. An error report file with more information is saved as /tmp/hs_err_pid3968.log
    #

  7. If you would like to submit a bug report, please visit:

  8. http://java.sun.com/webapps/bugreport/crash.jsp

from the more detailed error file hs_xxxx.log we see

Stack: [0x6dcfe000,0x6dd7f000), sp=0x6dd7cdb0, free space=507k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libfontmanager.so+0x323b3]
C [libfontmanager.so+0x325b2]
C [libfontmanager.so+0x34ec6]
C [libfontmanager.so+0x3524e]
C [libfontmanager.so+0x3768a]
C [libfontmanager.so+0x35a92]
C [libfontmanager.so+0x35faa]
C [libfontmanager.so+0x225f2]
C [libfontmanager.so+0x24326]
C [libfontmanager.so+0x460ce] Java_sun_font_FileFont_getGlyphMetrics+0x176
j sun.font.FileFont.getGlyphMetrics(JILjava/awt/geom/Point2D$FloatV+0
j sun.font.FileFontStrike.getGlyphMetrics(I)Ljava/awt/geom/Point2D$Float;+218
j sun.font.StandardGlyphVector$GlyphStrike.addDefaultGlyphAdvance(ILjava/awt/geom/Point2D$FloatV+5
j sun.font.StandardGlyphVector.initPositions()V+106
j sun.font.StandardGlyphVector.getLogicalBounds()Ljava/awt/geom/Rectangle2D;+5
j java.awt.Font.getStringBounds([CIILjava/awt/font/FontRenderContextLjava/awt/geom/Rectangle2D;+168
j java.awt.Font.getStringBounds(Ljava/text/CharacterIterator;IILjava/awt/font/FontRenderContextLjava/awt/geom/Rectangle2D;+175
j com.octo.captcha.component.image.textpaster.ChangeableAttributedString.<init>

(Ljava/awt/Graphics2D;Ljava/text/AttributedString;I)V+167
j com.octo.captcha.component.image.textpaster.DecoratedRandomTextPaster.pasteText

(Ljava/awt/image/BufferedImage;Ljava/text/AttributedStringLjava/awt/image/BufferedImage;+56
j com.octo.captcha.component.image.wordtoimage.ComposedWordToImage.pasteText

(Ljava/awt/image/BufferedImage;Ljava/text/AttributedStringLjava/awt/image/BufferedImage;+6
j com.octo.captcha.component.image.wordtoimage.DeformedComposedWordToImage.getImage(Ljava/lang/String

Ljava/awt/image/BufferedImage;+131
j com.octo.captcha.image.gimpy.GimpyFactory.getImageCaptcha(Ljava/util/LocaleLcom/octo/captcha/image/ImageCaptcha;+25
j com.octo.captcha.engine.image.ListImageCaptchaEngine.getNextImageCaptcha(Ljava/util/Locale

Lcom/octo/captcha/image/ImageCaptcha;+5
j com.octo.captcha.engine.image.ImageCaptchaEngine.getNextCaptcha(Ljava/util/LocaleLcom/octo/captcha/Captcha;+2
j com.octo.captcha.service.AbstractCaptchaService.generateAndStoreCaptcha(Ljava/util/Locale;Ljava/lang/String

Lcom/octo/captcha/Captcha;+5
j com.octo.captcha.service.AbstractManageableCaptchaService.generateCountTimeStampAndStoreCaptcha

(Ljava/lang/String;Ljava/util/LocaleLcom/octo/captcha/Captcha;+34
j com.octo.captcha.service.AbstractManageableCaptchaService.generateAndStoreCaptcha(Ljava/util/Locale;Ljava/lang/String

Lcom/octo/captcha/Captcha;+59
j com.octo.captcha.service.AbstractCaptchaService.getChallengeForID(Ljava/lang/String;Ljava/util/LocaleLjava/lang/Object;+63
j com.octo.captcha.service.image.AbstractManageableImageCaptchaService.getImageChallengeForID

(Ljava/lang/String;Ljava/util/LocaleLjava/awt/image/BufferedImage;+3
j com.randr.orderportal.jcaptcha.ImageCaptchaServlet.doGet

(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponseV+35
j javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponseV+35

I have searched near and far on the web trying to find others with same issue, have been unsuccessful thus far. Any information regarding this would be most helpful. Thanks in advance.

Environment

Ubuntu 6.06 LTS OS, Tomcat5 app server, java 1.5.0_06-b05

Assignee

Unassigned

Reporter

Michael Croteau

Labels

None

Priority

Major
Configure