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 C6039200D50 for ; Mon, 4 Dec 2017 15:57:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C48C4160C05; Mon, 4 Dec 2017 14:57:05 +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 165E0160BF3 for ; Mon, 4 Dec 2017 15:57:04 +0100 (CET) Received: (qmail 90602 invoked by uid 500); 4 Dec 2017 14:57:04 -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 90591 invoked by uid 99); 4 Dec 2017 14:57:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Dec 2017 14:57:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 69BD9C4E33 for ; Mon, 4 Dec 2017 14:57:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.211 X-Spam-Level: X-Spam-Status: No, score=-99.211 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 4fn0GIGnhPyx for ; Mon, 4 Dec 2017 14:57:01 +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 079975F2A9 for ; Mon, 4 Dec 2017 14:57:01 +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 7D561E031E for ; Mon, 4 Dec 2017 14:57:00 +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 3FC3A255C1 for ; Mon, 4 Dec 2017 14:57:00 +0000 (UTC) Date: Mon, 4 Dec 2017 14:57:00 +0000 (UTC) From: "Andreas Sewe (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MRESOLVER-38) SOE/OOME in DefaultDependencyNode.accept MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 04 Dec 2017 14:57:06 -0000 [ https://issues.apache.org/jira/browse/MRESOLVER-38?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 276894#comment-16276894 ]=20 Andreas Sewe commented on MRESOLVER-38: --------------------------------------- What=E2=80=99s *worse*: There exist artifacts for which doing a simple {{co= llectDependencies}} does not result in {{StackOverflowError}} but in an {{O= utOfMemoryError}}; thus, this can kill not just one but all threads. Using {{GetDependencyTree}} on {{org.webjars.npm:babel-plugin-transform-cla= ss-constructor-call:6.3.13}} again produces a huge stack of {{DefaultDepend= encyNode.accept}}, but with the additional problem that the constructs a hu= ge (160k entries!) {{paths}} {{List>}} (counted using = Eclipse MAT on a heap dump.) {noformat} Exception in thread "main" java.lang.OutOfMemoryError: Java heap space =09at org.eclipse.aether.util.graph.visitor.PathRecordingDependencyVisitor.= visitEnter(PathRecordingDependencyVisitor.java:108) =09at org.eclipse.aether.graph.DefaultDependencyNode.accept(DefaultDependen= cyNode.java:341) =09at org.eclipse.aether.graph.DefaultDependencyNode.accept(DefaultDependen= cyNode.java:345) =09at org.eclipse.aether.graph.DefaultDependencyNode.accept(DefaultDependen= cyNode.java:345) =09at org.eclipse.aether.graph.DefaultDependencyNode.accept(DefaultDependen= cyNode.java:345) =09at org.eclipse.aether.graph.DefaultDependencyNode.accept(DefaultDependen= cyNode.java:345) =E2=80=A6 {noformat} > SOE/OOME in DefaultDependencyNode.accept > ---------------------------------------- > > Key: MRESOLVER-38 > URL: https://issues.apache.org/jira/browse/MRESOLVER-38 > Project: Maven Resolver > Issue Type: Bug > Components: resolver > Affects Versions: Maven Artifact Resolver 1.1.0 > Reporter: Andreas Sewe > Priority: Critical > Attachments: maven-resolver-demos.patch > > > I noticed a {{StackOverflowErrror}} when trying to build the classpath fo= r {{org.webjars.npm:n3-charts:2.0.17}} using Maven Resolver 1.1.0. > I=E2=80=99ve managed to produce a minimal example based on the {{maven-re= solver-demos}} from the {{master-with-demos}} branch. To reproduce, just ap= ply the attached patch to the branch (tried this with commit [{{84a32a86}}|= https://github.com/apache/maven-resolver/commit/84a32a866ff27d4df75124074fd= 925588f4a574d]) and run the {{GetDependencyTree}} example: > {noformat} > ------------------------------------------------------------ > GetDependencyTree > SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". > SLF4J: Defaulting to no-operation (NOP) logger implementation > SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further= details. > Resolving artifact org.webjars.npm:n3-charts:pom:2.0.17 > Resolved artifact org.webjars.npm:n3-charts:pom:2.0.17 from central (http= s://repo.maven.apache.org/maven2/, default, releases+snapshots) > =E2=80=A6 > Resolving metadata org.webjars.npm:uglifycss/maven-metadata.xml from cent= ral (https://repo.maven.apache.org/maven2/, default, releases+snapshots) > Resolved metadata org.webjars.npm:uglifycss/maven-metadata.xml from centr= al (https://repo.maven.apache.org/maven2/, default, releases+snapshots) > Resolving artifact org.webjars.npm:uglifycss:pom:0.0.18 > Resolved artifact org.webjars.npm:uglifycss:pom:0.0.18 from central (http= s://repo.maven.apache.org/maven2/, default, releases+snapshots) > Exception in thread "main" java.lang.StackOverflowError > =09at org.eclipse.aether.util.graph.visitor.PathRecordingDependencyVisito= r.visitEnter(PathRecordingDependencyVisitor.java:102) > =09at org.eclipse.aether.graph.DefaultDependencyNode.accept(DefaultDepend= encyNode.java:341) > =09at org.eclipse.aether.graph.DefaultDependencyNode.accept(DefaultDepend= encyNode.java:345) > =09at org.eclipse.aether.graph.DefaultDependencyNode.accept(DefaultDepend= encyNode.java:345) > =09at org.eclipse.aether.graph.DefaultDependencyNode.accept(DefaultDepend= encyNode.java:345) > {noformat} > (Note: The patch changes the {{plexus-utils}} version as well, as I was g= etting a {{ClassNotFoundException}} for {{org.codehaus.plexus.util.xml.pull= .EntityReplacementMap}} otherwise.) -- This message was sent by Atlassian JIRA (v6.4.14#64029)