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 4LzvDf5yHtz4YdSn for ; Fri, 5 Aug 2022 18:26:10 +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 4LzvDf3kshz3pPr 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 4LzvDf2qTXz1390 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 275IQALH070251 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 275IQACZ070250 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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: maintainer-feedback requested: [Bug 265663] java/openjdk17: problem with jpeg-turbo? Date: Fri, 05 Aug 2022 18:26:10 +0000 X-Bugzilla-Type: request 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: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: 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: in-reply-to:in-reply-to:references:references; bh=uwK64+odDp/gUjLVNNmGGveDmUs3yc2ZtkiGKpCYvjM=; b=pLj1xyx4aJBXjCVwMwtlKHVwesdORrXXBZc0N6oiY8ivr/DDDE5u1Ntgh2rPdLhqeHm0eR dtLp5/Z0QaP6E/hzirwZz5HJt8pBcu5w1NoLQZjyQVEX6D+HGb/wziiQlQjkpMTqMNC21T VIjP6eXBVcqXRccEM0lKhfo6YfFzOZYj2k8lms/FCRiTWIofHzeI9bZrcAeH1rUY7BRkV3 8Xiw7hDAsd5cezuXDk+QI+qgRteUFyQz4setsh7j03j+/ZV+5jYnmGwO32smWrrwrUMG1R TIm7M9S9lILldhnrvU+MDUV8QMIklI0pUbUNWShLVZpCJ3oovT4HKn3f+wV2sQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659723970; a=rsa-sha256; cv=none; b=A3ZEcrhD+magayhItBoaCf1qIerQgH0kXUzX7cflzEJWY2H+gfr/Th6NorHSXCxGuGm6Fj DkqOVDCeVxfCzMeJmfHFc40ZCTnzrgf4+Wx3Bgj1Tg4a/USjnnpoAp3v0ibGbyGW32S9B7 JNH0v25vq8vrBLYwE5axGH8lcY4KB4+AoEzMc1n1aOobt8yaIs8epD95jIsXm0qkMhmES8 zg6wQQMyybimcyY1fhNrjubKxwAPoCAchppw/vjeg+C+1fYn5IBaEXjSCTl3BWTQNBJt3b bXQptJWDxMT5iScT0SgI8bnm1lJZfWmuRd0YjEhAcTy5QOJvDsDA+FbVHSEb9A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N Bugzilla Automation has asked freebsd-java (Nobody) for maintainer-feedback: Bug 265663: java/openjdk17: problem with jpeg-turbo? https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265663 --- Description --- 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.