From nobody Fri Aug 5 18:26:10 2022 X-Original-To: java@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 4LzvDg1Drwz4Ydd4 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 4LzvDf5Txzz3p6B 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 4LzvDf4XjYz13P1 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 275IQAZo070259 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 275IQAGW070258 for java@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: java@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: Porting Java to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-java List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-java@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=C31HA9BJpqDf8fgcbxZvB/Zij9rlXeiA+IjBKT9xhufRnlKBBCsT9vajFTpLHVHArsAdBY 124oNaqR8KtaRNdZyN3cq4qZR29QbDUhyyIMiy6r5xXE/p7w3Q3w3Zy+dHbbQpnJ2ND2Me vPADvyRkz3tFNJgMMh+S88qPt2ZDGSJdu5YcZVsjqeT3SFkhdj3S+V/bqjq5NpaG9mpjSE ZvyAPKKCPxKpkqhpuSPlIagGCDGMBWM2o2W1ABuibQ+pjt948qw8FT/uRlau9IqMqv1jmw VPRsddhxdJDXbxYMY0csTTxmOa75MwHUmQcv3VEjJ4GE2kQUEj++ss17Mu4Myg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659723970; a=rsa-sha256; cv=none; b=nEVrv05KT2unTmNS4Pt4cZtcIKQMykJ/wNE2NLvrq5RGpKL4T8Vs7AIu0Mdq5D51WX9COh kyN/8QOcBJRQEYdsjLgbSCTW4Qw5xGgGS0xiK/zK6htP8XVh01cN4VS8HgH98yMFYnCpTr WC4wXjZqLeofM/hFxCsBpiRXMVtAdBf61IN54C/UI2CM2misvU6lVA8fvry93sbKZeUbey 9ucVovaTruPGnEDPFlmWd6ZD5RUkzHqHc/5p6vxbcrOd4r1U2Yah16yIikHz/kzk7KeHm8 Pw7+Tg+ej7VL8yTGYO1TlxafVHSUI5fWjCo6L1AjkPEGa6rPiYdQfi+jseCtOg== 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.=