From nobody Fri Aug 5 18:26:10 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4LzvDg1Fn6z4YdD8 for ; Fri, 5 Aug 2022 18:26:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LzvDf4wpSz3pMZ for ; Fri, 5 Aug 2022 18:26:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4LzvDf41lRz13p5 for ; Fri, 5 Aug 2022 18:26:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 275IQAob070255 for ; Fri, 5 Aug 2022 18:26:10 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 275IQAox070254 for ports-bugs@FreeBSD.org; Fri, 5 Aug 2022 18:26:10 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 265663] java/openjdk17: problem with jpeg-turbo? Date: Fri, 05 Aug 2022 18:26:10 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: dennis.noordsij@alumni.helsinki.fi X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659723970; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SWaTEmhYVyavRv6m2GOHBkerSIVlHx5yeShGPjW93ho=; b=Z/j60GtviAZHWCNEPIRNHkV0acB/LFslggmMDYt8JMTejogs8mlRihJQFGKsS5pNhgQSvw IRdzIQoevLlvhxolQL2//6yeku4fCSiMH5v0JlmEePAPsPwhw+PpyWnveq/fTKjC2+p1yj jW+z8zarmAu/qccNJ6S90zqkoPU84iZjGwxjmmhcZlBOZvQ/Uq84qXOueqF2Fpy3ebzOB/ VLdJLMDLJ/BKIRknrp530ygyS3yp5tUXevfy+mc3Ahc1HMgjET9Aj1Poqg+0/DAIf3t7sN pX5J7K8Zy2q50RLnV6GhlIlYn3STWraiehMzaKFIUSOxAsamiTSVsNyZrt6qbg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659723970; a=rsa-sha256; cv=none; b=WVAyRzAs08+oLjItso5LF7SdGGFbp4hkfrf4sSQ1PmtRJ+vu0/ksbN//KneYxQ4zZ1fizP bWV0S9pf/vgxe7XZ1NdStDJkiOFVziib+KddWlBo9q03c+YHaBAjc/yO9UrE633OVhyl3h luuSt6iNhe4WFDx4hSyFMkZ7+hRqOQYXiQkkU5Jcqe9JkohWQE7v0lp+v2bB59mDvMjABU 8xp1pDJigrx+So+bUhav7uQN4JjK9FNQTtpQRjiyP4twjofHA3gYarePoaUyXkqTXvyvHX NbLEJeDbgfKvN/5FIGOQxgNgu23WOHkqehN0dxzpHrvkJZwYTjufsJcZq+Z5Ww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265663 Bug ID: 265663 Summary: java/openjdk17: problem with jpeg-turbo? Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: java@FreeBSD.org Reporter: dennis.noordsij@alumni.helsinki.fi Assignee: java@FreeBSD.org Flags: maintainer-feedback?(java@FreeBSD.org) Created attachment 235708 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D235708&action= =3Dedit Example jpeg that demonstrates the issue I recently upgraded from openjdk-8 to openjdk-17, and noticed that JPEG fil= es that were previously opening succesfully were now failing with: ``` Exception in thread "main" javax.imageio.IIOException: Bogus virtual array access at java.desktop/com.sun.imageio.plugins.jpeg.JPEGImageReader.readImage(Native Method) at java.desktop/com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(Unkn= own Source) at java.desktop/com.sun.imageio.plugins.jpeg.JPEGImageReader.read(Unknown Sour= ce) at java.desktop/javax.imageio.ImageIO.read(Unknown Source) at java.desktop/javax.imageio.ImageIO.read(Unknown Source) at ImageExceptionMain.main(ImageExceptionMain.java:10) ``` I could reproduce this as well on the default Arch Linux openjdk17, and cou= ld reproduce it as well on openjdk 11. Both appear to use the system libjpeg (jpeg-turbo) instead of the bundled o= ne. If I change the port Makefile and remove: ``` --with-libjpeg=3Dsystem ``` , (implying `--with-libjpeg=3Dbundled`), then everything works. I could not find a jpeg-turbo binary that shows a problem, nor get any other image program to complain about the (attached) file and suggest it is someh= ow invalid. I have attached a source file and image file (no affiliation to whatever it= is saying) to reproduce this issue. --=20 You are receiving this mail because: You are the assignee for the bug.=