Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 59CD2200C89 for ; Sat, 3 Jun 2017 14:06:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 53DC2160BCD; Sat, 3 Jun 2017 12:06:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9930E160BBE for ; Sat, 3 Jun 2017 14:06:09 +0200 (CEST) Received: (qmail 94497 invoked by uid 500); 3 Jun 2017 12:06:08 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 94486 invoked by uid 99); 3 Jun 2017 12:06:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Jun 2017 12:06:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 504691AF9A4 for ; Sat, 3 Jun 2017 12:06:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id lTcy3JU4G-ln for ; Sat, 3 Jun 2017 12:06:07 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id C47FA5F5B3 for ; Sat, 3 Jun 2017 12:06:06 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 0E90CE0B21 for ; Sat, 3 Jun 2017 12:06:05 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id B5FDA2193A for ; Sat, 3 Jun 2017 12:06:04 +0000 (UTC) Date: Sat, 3 Jun 2017 12:06:04 +0000 (UTC) From: "Hudson (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SUREFIRE-1376) "The forked VM terminated without properly saying goodbye" when running Surefire in a very deep project structure on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 03 Jun 2017 12:06:10 -0000 [ https://issues.apache.org/jira/browse/SUREFIRE-1376?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1= 6035954#comment-16035954 ]=20 Hudson commented on SUREFIRE-1376: ---------------------------------- SUCCESS: Integrated in Jenkins build maven-surefire #1712 (See [https://bui= lds.apache.org/job/maven-surefire/1712/]) [SUREFIRE-1376] "The forked VM terminated without properly saying (tibor17:= [http://git-wip-us.apache.org/repos/asf/?p=3Dmaven-surefire.git&a=3Dcommit= &h=3D59c065f5d4a5a9c181ef9ce788b31305886e8592]) * (edit) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefi= re/booterclient/ForkConfiguration.java * (edit) maven-surefire-common/src/main/java/org/apache/maven/plugin/surefi= re/SurefireHelper.java * (edit) maven-surefire-common/src/test/java/org/apache/maven/plugin/surefi= re/SurefireHelperTest.java > "The forked VM terminated without properly saying goodbye" when running S= urefire in a very deep project structure on Windows > -------------------------------------------------------------------------= --------------------------------------------------- > > Key: SUREFIRE-1376 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1376 > Project: Maven Surefire > Issue Type: Bug > Components: Maven Failsafe Plugin, Maven Surefire Plugin > Affects Versions: 2.20 > Environment: Windows > Reporter: Guillaume Bou=C3=A9 > Assignee: Tibor Digana > Fix For: 2.20.1 > > Attachments: SUREFIRE-1376-prefix.patch > > > When Surefire is ran on a project under a very long path (exceeding Windo= ws' {{MAX_PATH}}), the invocation fails with > {noformat} > org.apache.maven.surefire.booter.SurefireBooterForkException: The forked = VM terminated without properly saying goodbye. VM crash or System.exit call= ed? > {noformat} > In the generated dumpstream, there is > {noformat} > # Created on 2017-05-28T10:17:09.474 > Error: Unable to access jarfile C:\Users\Guillaume\Desktop\surefire-longp= ath-test-with-windows\surefire-longpath-test-with-windows\surefire-longpath= -test-with-windows\surefire-longpath-test-with-windows\surefire-longpath-te= st-with-windows\surefire-longpath-test-with-windows\target\surefire\surefir= ebooter2512478076549179739.jar > {noformat} > The problem is that the path to the JAR file exceeds the maximum path len= gth of 260 characters, and so it cannot be accessed. > Prepending the path to the JAR file with {{\\?\}}, [as docume= nted on MSDN|https://msdn.microsoft.com/en-us/library/aa365247(VS.85).aspx#= maxpath], makes the test run again correctly. I've attached a possible patc= h with this approach (SUREFIRE-1376-prefix.patch, that also handles UNC pat= hnames), but perhaps there is a better way to tackle this problem. > In order to reproduce this, it is possible to create a project under lots= of different subdirectories, something like: > {noformat} > =E2=94=94=E2=94=80=E2=94=80=E2=94=80surefire-longpath-test-with-windows > =E2=94=94=E2=94=80=E2=94=80=E2=94=80surefire-longpath-test-with-windo= ws > =E2=94=94=E2=94=80=E2=94=80=E2=94=80surefire-longpath-test-with-w= indows > =E2=94=94=E2=94=80=E2=94=80=E2=94=80surefire-longpath-test-wi= th-windows > =E2=94=94=E2=94=80=E2=94=80=E2=94=80surefire-longpath-tes= t-with-windows > =E2=94=82 pom.xml > =E2=94=82 > =E2=94=94=E2=94=80=E2=94=80=E2=94=80src > =E2=94=94=E2=94=80=E2=94=80=E2=94=80test > =E2=94=94=E2=94=80=E2=94=80=E2=94=80java > =E2=94=94=E2=94=80=E2=94=80=E2=94=80Test.= java > {noformat} > As a side-note, this issue is behind the current Jenkins failures on [mav= en-plugins-ITs-m3.1.x-with-maven-plugin-jdk-1.8_windows|https://builds.apac= he.org/job/maven-plugins-ITs-m3.1.x-with-maven-plugin-jdk-1.8_windows/3702/= ] when running the ITs on the Assembly Plugin. -- This message was sent by Atlassian JIRA (v6.3.15#6346)