Project

Profile

Help

Bug #3470 ยป Bug #10210 - 2017-10-05T09_45_10Z.eml

Pieter Masereeuw, 2017-10-05 11:45

 
Return-Path: <pieter@masereeuw.nl>
Received: from mi011.mc1.hosteurope.de ([80.237.138.244]) by wp245.webpack.hosteurope.de running ExIM with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1e02i5-0006N9-2r; Thu, 05 Oct 2017 11:44:53 +0200
Received: from lb2-smtp-cloud7.xs4all.net ([194.109.24.28]) by mx0.webpack.hosteurope.de (mi011.mc1.hosteurope.de) with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) id 1e02i2-0001nR-Og for inbox+saxonica+f38e+saxon-js@plan.io; Thu, 05 Oct 2017 11:44:52 +0200
Received: from [145.107.182.163] ([145.107.182.163]) by smtp-cloud7.xs4all.net with ESMTPSA id 02i1eMmzaVNbY02i2e5Avh; Thu, 05 Oct 2017 11:44:50 +0200
Date: Thu, 05 Oct 2017 11:44:48 +0200
From: Pieter Masereeuw <pieter@masereeuw.nl>
To: Saxonica Developer Community <inbox+saxonica+f38e+saxon-js@plan.io>
Message-ID: <3b35f9ed-473c-b069-3be5-b40231f0ff54@masereeuw.nl>
In-Reply-To: <redmine.journal-10209.20171005093204.7d31b7835a2bcda5@plan.io>
References: <redmine.issue-3470.20171005085425@plan.io>
<redmine.journal-10209.20171005093204.7d31b7835a2bcda5@plan.io>
Subject: Re: [Saxon-JS - Bug #3470] SaxonJS 1.0.1 fails when calling the key()
function; SaxonJS 1.0.0 works well
Mime-Version: 1.0
Content-Type: multipart/signed;
boundary=Mktv0DbHX07ubslVaAdxVXlbrWH6SqIOf;
micalg=pgp-sha256;
protocol="application/pgp-signature"
Content-Transfer-Encoding: 7bit
Delivery-date: Thu, 05 Oct 2017 11:44:53 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.3.0
X-CMAE-Envelope: MS4wfKFj5R25S1UxbvU4BI1BP5hRMHU0jGOrJCj/+ynbdYZsS+WP42v24bLvpMYGSFXz86QjEnD0br/zP3kbO0pKghAepNjkhUaZ8fYn1TkJdpxbRkKEwxas
vW+/fOfqdou1u8OmQJu5vZvOL54YNXPbICvOE3ImxV7tVCxGByyPJrv9Nf61D1uMdGCfsE/P7di9KrzDkgrnfx5OZ0rIIvZNdwU=
X-HE-Virus-Scanned: Yes
X-HE-Spam-Level: --
X-HE-Spam-Score: -2.6
X-HE-Spam-Report: Content analysis details: (-2.6 points) pts rule name
description ---- ----------------------
-------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL:
Sender listed at http://www.dnswl.org/, low trust [194.109.24.28 listed in
list.dnswl.org] -2.0 MULTIPART_SIGNED Contains a signed message (signature
attached) 0.1 HTML_MESSAGE BODY: HTML included in message
Envelope-to: inbox+saxonica+f38e+saxon-js@plan.io

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--Mktv0DbHX07ubslVaAdxVXlbrWH6SqIOf
From: Pieter Masereeuw <pieter@masereeuw.nl>
To: Saxonica Developer Community <inbox+saxonica+f38e+saxon-js@plan.io>
Message-ID: <3b35f9ed-473c-b069-3be5-b40231f0ff54@masereeuw.nl>
In-Reply-To: <redmine.journal-10209.20171005093204.7d31b7835a2bcda5@plan.io>
References: <redmine.issue-3470.20171005085425@plan.io>
<redmine.journal-10209.20171005093204.7d31b7835a2bcda5@plan.io>
Subject: Re: [Saxon-JS - Bug #3470] SaxonJS 1.0.1 fails when calling the key()
function; SaxonJS 1.0.0 works well
Content-Type: multipart/mixed;
boundary=Dwd5jDmcit2SBUqItI5gAEQkLrXDjurxB;
protected-headers=v1
Content-Transfer-Encoding: 7bit


--Dwd5jDmcit2SBUqItI5gAEQkLrXDjurxB
Content-Type: multipart/alternative;
boundary=------------1B7B02C9DF71A980C53A0844
Content-Transfer-Encoding: 7bit
Content-Language: en-US

This is a multi-part message in MIME format.
--------------1B7B02C9DF71A980C53A0844
Content-Type: text/plain;
charset=utf-8
Content-Transfer-Encoding: quoted-printable

Yes, it took me some time to find the spot in my real application, but
after that, the error was surprisingly easy to reproduce.

Good luck!

Pieter


On 10/05/2017 11:32 AM, Saxonica Developer Community wrote:
>
> --- In your reply, please do not write below this line ---
>
> Issue #3470 <https://saxonica.plan.io/issues/3470?pn=3D1#change-10209>
> has been updated by Debbie Lockett.
>
> * *Assignee* set to /Debbie Lockett/
> * *Priority* changed from /Low/ to /Normal/
> * *Applies to JS Branch* /1.0/ added
>
> Thanks for logging this Pieter, and producing the small example to
> reproduce the problem. There were some changes in the implementation
> of the key() function between releases 1.0.0 and 1.0.1 which have
> produced this bug. Should be straightforward to resolve!
>
> -----------------------------------------------------------------------=
-
>
>
> Bug #3470: SaxonJS 1.0.1 fails when calling the key() function;
> SaxonJS 1.0.0 works well
> <https://saxonica.plan.io/issues/3470?pn=3D1#change-10209>
>
> * Author: Pieter Masereeuw
> * Status: New
> * Priority: Normal
> * Assignee: Debbie Lockett
> * Category:
> * Sprint/Milestone:
> * Applies to JS Branch: 1.0, Trunk
> * Fix Committed on JS Branch:
> * Fixed in JS Release:
> * SEF Generated with:
> * Company:
> * Contact person:
> * Additional contact persons:
>
> SaxonJS 1.0.1 stops with a message in the console when the key()
> function is called. My impression is that this happens during key
> initalization - it looks like if a null "flags" object is being
> dereferenced.
>
> The message is:
>
> |Uncaught TypeError: Cannot read property 'indexOf' of null|
>
> I add a very small set of files that reproduces the problem. Use the
> html-file, click the button and watch the console.
>
> Files saxonjskeytest.zip
> <https://saxonica.plan.io/attachments/download/727/saxonjskeytest.zip>
> (611 KB)
>
> -----------------------------------------------------------------------=
-
>
> You have received this notification because you have either subscribed
> to or are involved in a project on Saxonica Developer Community site.
> To change your notification preferences, please click here:
> https://saxonica.plan.io/my/account?tour=3Dmail_preferences
>
> =

>
> This notification was cheerfully delivered by <https://plan.io/>
> =

> Planio <https://plan.io/>
>


--------------1B7B02C9DF71A980C53A0844
Content-Type: text/html;
charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=
-8">
</head>
<body text=3D"#000000" bgcolor=3D"#FFFFFF">
<p>Yes, it took me some time to find the spot in my real
application, but after that, the error was surprisingly easy to
reproduce.</p>
<p>Good luck!</p>
<p>Pieter<br>
</p>
<br>
<div class=3D"moz-cite-prefix">On 10/05/2017 11:32 AM, Saxonica
Developer Community wrote:<br>
</div>
<blockquote type=3D"cite"
cite=3D"mid:redmine.journal-10209.20171005093204.7d31b7835a2bcda5@p=
lan.io">
<!--[if !mso]><!-- -->
<link href=3D"https://assets.plan.io/stylesheets/fonts.css"
rel=3D"stylesheet" type=3D"text/css">
<!--<![endif]-->
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Du=
tf-8">
<style>a:link{color:#0088b7}
a:visited{color:#0088b7}
a:hover{color:#0088b7}
a:active{color:#0088b7}</style>
<table
style=3D"border-spacing:0;border-collapse:collapse;width:100%"
cellspacing=3D"0" cellpadding=3D"0" width=3D"100%">
<tbody>
<tr>
<td class=3D"header"
style=3D"text-align:center;width:100%;font-family:MarketWeb=
,
Helvetica, Arial,
sans-serif;font-size:0.8em;color:#D7D7D7">
<p>--- In your reply, please do not write below this line
---</p>
</td>
</tr>
<tr>
<td>Issue <a
href=3D"https://saxonica.plan.io/issues/3470?pn=3D1#chang=
e-10209"
style=3D"color:#0088b7" moz-do-not-send=3D"true">#3470</a=
>
has been updated by Debbie Lockett.
<ul>
<li><strong>Assignee</strong> set to <i>Debbie Lockett</i=
></li>
<li><strong>Priority</strong> changed from <i>Low</i>
to <i>Normal</i></li>
<li><strong>Applies to JS Branch</strong> <i>1.0</i>
added</li>
</ul>
<p>Thanks for logging this Pieter, and producing the small
example to reproduce the problem. There were some
changes in the implementation of the key() function
between releases 1.0.0 and 1.0.1 which have produced
this bug. Should be straightforward to resolve!</p>
<hr
style=3D"width:100%;height:1px;background:#ccc;border:0;m=
argin:1.2em
0">
<h1 style=3D"font-family:&quot;ProximaNova-Bold&quot;,
Helvetica, Arial,
sans-serif;font-weight:normal;margin:0px;font-size:1.3em;line-height:1.4e=
m"><a
href=3D"https://saxonica.plan.io/issues/3470?pn=3D1#change-10209"
style=3D"color:#0088b7;text-decoration:none"
moz-do-not-send=3D"true">Bug #3470: SaxonJS 1.0.1 fails=

when calling the key() function; SaxonJS 1.0.0 works
well</a></h1>
<ul>
<li>Author: Pieter Masereeuw</li>
<li>Status: New</li>
<li>Priority: Normal</li>
<li>Assignee: Debbie Lockett</li>
<li>Category: </li>
<li>Sprint/Milestone: </li>
<li>Applies to JS Branch: 1.0, Trunk</li>
<li>Fix Committed on JS Branch: </li>
<li>Fixed in JS Release: </li>
<li>SEF Generated with: </li>
<li>Company: </li>
<li>Contact person: </li>
<li>Additional contact persons: </li>
</ul>
<p>SaxonJS 1.0.1 stops with a message in the console when
the key() function is called. My impression is that this
happens during key initalization - it looks like if a
null "flags" object is being dereferenced.</p>
<p>The message is:</p>
<p><code style=3D"font-family:Hack, Consolas, Menlo,
&quot;Liberation Mono&quot;, Courier,
monospace;font-size:85%;background-color:#ececec;word-wrap:break-word;bor=
der-radius:3px;padding:0.2em;margin:0">Uncaught
TypeError: Cannot read property 'indexOf' of null</code=
></p>
<p>I add a very small set of files that reproduces the
problem. Use the html-file, click the button and watch
the console.</p>
<fieldset class=3D"attachments" style=3D"border:solid
#ccc;border-width:1px 0 0 0"><legend>Files</legend> <a
href=3D"https://saxonica.plan.io/attachments/download/727/saxonjskeytest.=
zip"
style=3D"color:#0088b7" moz-do-not-send=3D"true">saxonj=
skeytest.zip</a>
(611 KB)<br>
</fieldset>
<div itemscope=3D"itemscope"
itemtype=3D"http://schema.org/EmailMessage">
<div itemscope=3D"itemscope" itemprop=3D"action"
itemtype=3D"http://schema.org/ViewAction">
<link itemprop=3D"url"
href=3D"https://saxonica.plan.io/issues/3470?pn=3D1#c=
hange-10209">
<meta itemprop=3D"name" content=3D"View Issue">
</div>
<meta itemprop=3D"description" content=3D"View this issue=

update on Planio">
</div>
</td>
</tr>
<tr>
<td class=3D"footer" style=3D"font-size:0.8em;width:100%">
<hr
style=3D"width:100%;height:1px;background:#ccc;border:0;m=
argin:1.2em
0">
<p>You have received this notification because you have
either subscribed to or are involved in a project on
Saxonica Developer Community site.<br>
To change your notification preferences, please click
here: <a class=3D"external"
href=3D"https://saxonica.plan.io/my/account?tour=3Dmail=
_preferences"
style=3D"color:#0088b7" moz-do-not-send=3D"true">https:=
//saxonica.plan.io/my/account?tour=3Dmail_preferences</a></p>
</td>
<td><br>
</td>
</tr>
<tr>
<td class=3D"planio_footer"
style=3D"text-align:center;width:100%;font-family:MarketWeb=
,
Helvetica, Arial,
sans-serif;font-size:1.2em;color:#D7D7D7"><br>
<div><a href=3D"https://plan.io/"
style=3D"color:#0088b7;color:#D7D7D7;text-decoration:no=
ne"
moz-do-not-send=3D"true">This notification was
cheerfully delivered by</a></div>
</td>
<td><br>
</td>
</tr>
<tr>
<td class=3D"planio_footer_logo"
style=3D"text-align:center;width:100%"><a
href=3D"https://plan.io/" title=3D"Planio"
style=3D"color:#0088b7" moz-do-not-send=3D"true"><img
src=3D"https://assets.plan.io/images/planio_logo_gray_2=
04x50.png"
alt=3D"Planio" style=3D"vertical-align:middle;border:no=
ne"
moz-do-not-send=3D"true" height=3D"25" width=3D"102"
border=3D"0"></a></td>
</tr>
</tbody>
</table>
</blockquote>
<br>
</body>
</html>

--------------1B7B02C9DF71A980C53A0844--

--Dwd5jDmcit2SBUqItI5gAEQkLrXDjurxB--

--Mktv0DbHX07ubslVaAdxVXlbrWH6SqIOf
Content-Type: application/pgp-signature;
name=signature.asc
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename=signature.asc
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJZ1f8QAAoJEJeiKWBjGlmP4J0P/0GsiUEi+9W8UY979UyKdiqI
Uoq4GxDp5RMhuOFDlTrBPBUcCTAwZqC21wUwbV9BKPI79HwHpGSLWDG4XcX1h0TG
xSmzxBUudKYfzp5QXCOZ/2evjRfc9feYPuWg0dXk8jDalzfvC9SC9xMvXEs7v/5+
m/ppJwXjJ7uuv+ifcG2Cii53dHbvc8X6eDW+ZCWe//pJWyfCUqfl7m/0Mb4AgLB1
toHRUystRM2LJLgzzfQqHOu+oZJYjaYDbYxY8nZdpz4Ern+JgqgwmQzsMQkaHkcQ
i3OW8cIGSF5dO0KZZVZCr/pTvOLBQRrP4PNlk5iTSaiqWm1jQ4FYOYJxcuIWNC66
aZE2elFHJg6CPh2d6hrW/sHd8M1hKY/zRQPa/vdWqJOYphnTmxgvsxEka+20Hr6E
o6+phfrC69e9DNQDQE3RK8Xw8rgQBU6wa0AICkH1q34x5hb3QXtf3VNsIs0JJNQP
9W4LM6vNuoOQHCg6tact2hclYuahUuoEaK8Odla31FHItal7p0GEzwmLmfeU58x1
hG6eEQd7bg+tH1OW71tJvt8IivbIYjSi20jDUsKJTtBk9eoIEcTmcjnmGuf0E86i
chbHRs67O3RdsiyDdnr0s0+G2jGiDK7pz2X90w0vmEy6NBjQgnvIVZDBYWU7HyWo
9yzFaGCmQBkKu37jEXNh
=aAs5
-----END PGP SIGNATURE-----

--Mktv0DbHX07ubslVaAdxVXlbrWH6SqIOf--
    (1-1/1)