Return-Path: X-Original-To: apmail-groovy-users-archive@minotaur.apache.org Delivered-To: apmail-groovy-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 93C0718191 for ; Sun, 7 Jun 2015 13:50:25 +0000 (UTC) Received: (qmail 49172 invoked by uid 500); 7 Jun 2015 13:50:25 -0000 Delivered-To: apmail-groovy-users-archive@groovy.apache.org Received: (qmail 49139 invoked by uid 500); 7 Jun 2015 13:50:25 -0000 Mailing-List: contact users-help@groovy.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@groovy.incubator.apache.org Delivered-To: mailing list users@groovy.incubator.apache.org Received: (qmail 49129 invoked by uid 99); 7 Jun 2015 13:50:25 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Jun 2015 13:50:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id DEF1018193A for ; Sun, 7 Jun 2015 13:50:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.88 X-Spam-Level: *** X-Spam-Status: No, score=3.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, KAM_LIVE=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id clj5JIW-j2bi for ; Sun, 7 Jun 2015 13:50:15 +0000 (UTC) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id CFC4927623 for ; Sun, 7 Jun 2015 13:50:14 +0000 (UTC) Received: by lbbqq2 with SMTP id qq2so66766965lbb.3 for ; Sun, 07 Jun 2015 06:50:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=fTcysk+07a5HySPOftXZCue0KlkRRFbfnOqS5PIVC18=; b=LmdWQfS1Uj9CDzoR8KaScYRdD0LJZUgZF8Zq5VEngCIgCVKzhHK15hVghiBFxhdVoV LnM/huu4DYYIT8LyWKOKPHeaDPqKNOv1tUwS6dh/kVuFYaBD+SHN9N3Wc7S4BBwLtAg8 CF9n1p3kATibF9qpXntt6BKFqNFzE88x7fb4Sr1ogsgf0eQinhS773px02iuYOExh51k fxd+PZqSN5MGOnN+81Ba+7NCiqKvta6Mi1o13xOC67/Utw+o+xqfQkYGlfEUsvQSJmBY zDgAhPRudeK7w0ARsTVjxYd85ZbWHibb+ej0A6Jg1QMxbY9CntKXjA1tBF+ZYcfOqm86 iD+w== X-Received: by 10.112.135.131 with SMTP id ps3mr11991722lbb.84.1433685007052; Sun, 07 Jun 2015 06:50:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.176.225 with HTTP; Sun, 7 Jun 2015 06:49:26 -0700 (PDT) In-Reply-To: <55742394.9080701@gmx.org> References: <55742394.9080701@gmx.org> From: Paolo Di Tommaso Date: Sun, 7 Jun 2015 15:49:26 +0200 Message-ID: Subject: Re: NPE exception on ManagedLinkedList To: users@groovy.incubator.apache.org Content-Type: multipart/alternative; boundary=089e0112c27090b6fd0517edcd70 --089e0112c27090b6fd0517edcd70 Content-Type: text/plain; charset=UTF-8 Well, the point it that I'm not using any ManagedLinkedList object in my code. At a first look it seems to me a side effect of this change: https://issues.apache.org/jira/browse/GROOVY-6704 Does that make sense ? Cheers, Paolo On Sun, Jun 7, 2015 at 12:57 PM, Jochen Theodorou wrote: > Am 29.05.2015 15:15, schrieb Paolo Di Tommaso: > >> Dear all, >> >> Upgrading to Groovy 2.4.3 I've started to experience a >> NullPointerException that is raised somehow randomly. >> > > The source code line is: > > if (previous != null && previous.next != null) { >> > > this can cause a NPE if there is a data race... funny thing is, the > comment of the class says: > > * This class does not support concurrent modifications nor will it check >> * for them. This class is also not thread safe. >> > > Which strongly suggests, that the class is not used as intended > > hmm... the entry points look right... that can only mean that it is the > ReferenceManager re-usage, that is causing trouble here. > > bye blackdrag > > -- > Jochen "blackdrag" Theodorou > blog: http://blackdragsview.blogspot.com/ > > --089e0112c27090b6fd0517edcd70 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Well, the point it that I'm not using any ManagedLinke= dList object in my code.=C2=A0

At a first look it seems = to me a side effect of this change:=C2=A0



Does that make sense ?=C2=A0


Che= ers,
Paolo



On Sun, Jun 7, 2015 at 12:57 PM, Jochen Theodorou <blackd= rag@gmx.org> wrote:
Am 29.05.2015 15:15, schrieb Paolo Di Tommaso:
Dear all,

Upgrading to Groovy 2.4.3 I've started to experience a
NullPointerException that is raised somehow randomly.

The source code line is:

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (previous !=3D null &&= previous.next !=3D null) {

this can cause a NPE if there is a data race... funny thing is, the comment= of the class says:

=C2=A0* This class does not support concurrent modifications nor will it ch= eck
=C2=A0* for them. This class is also not thread safe.

Which strongly suggests, that the class is not used as intended

hmm... the entry points look right... that can only mean that it is the Ref= erenceManager re-usage, that is causing trouble here.

bye blackdrag

--
Jochen "blackdrag" Theodorou
blog: htt= p://blackdragsview.blogspot.com/


--089e0112c27090b6fd0517edcd70--