Bugs item #2277120, was opened at 2008-11-13 17:18
Message generated for change (Comment added) made by stmane
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2277120&group_id=56967
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: PF/runtime
Group: Pathfinder "stable"
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Ying Zhang (yingying)
Assigned to: Stefan Manegold (stmane)
Summary: XQ: following(-sibling)/preceding cause Mserver to crash
Initial Comment:
In the current stable version, Nov2008.
Happens with both Algebra and MPS frontend.
If 32bits OIDs are used on a 64-bit architecture, following, following-sibling
and preceding steps with an empty result will crash Mserver (this causes some
XRPC tests to fail on "Fedora8 G.64.32.d.1." and "Fedora8 I.64.32.d.1").
Queries used:
<a/>/following::*
<a/>/following-sibling::*
<a/>/preceding::*
Errors received:
MonetDB>[New Thread 1115703632 (LWP 30455)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1115703632 (LWP 30455)]
0x00002aaab9e3e4a0 in PFll_following_sibling (result=0x427f93c0,
iter_bat=0x11f7788, ctx_bat=0x11fd448, pre_size=0x1456e78,
pre_level=0x129d818, pre_kind=0x145b0a8, _kind_test=0x427f9420 "\200")
at /ufs/zhang/monet/stable/pathfinder/runtime/ll_sibling.mx:505
505 oid lst_item = *(oid*)Tloc(res, BUNlast(res) - 1);
MonetDB>[New Thread 1115703632 (LWP 30587)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1115703632 (LWP 30587)]
0x00002aaab9e37506 in PFll_preceding (result=0x427f93c0, iter_bat=0x11f8308,
ctx_bat=0x14c5c18, doc_pre=0x1407d48, pre_size=0x1290848,
pre_kind=0x11f5f28, _kind_test=0x427f9420 "\200")
at /ufs/zhang/monet/stable/pathfinder/runtime/ll_prec_foll.mx:480
480 oid lst_item = *(oid*)Tloc(res, BUNlast(res) - 1);
Assigned to Stefan, since he seems the main author of these files. Please
correct it, if this is not the case.
Kind regards,
Jennie
----------------------------------------------------------------------
>Comment By: Stefan Manegold (stmane)
Date: 2008-11-14 15:04
Message:
Fix is checked in to the Nov2008 branch.
Test has been added in
pathfinder/tests/BugTracker/Tests/empty_step_result.SF-2277120.*
Closing.
----------------------------------------------------------------------
Comment By: Stefan Manegold (stmane)
Date: 2008-11-13 23:15
Message:
Indeed, trying to read the last value from an empty BAT does result in a
segfault ...
I attach a patch that fixes the bug --- I'll check it in, once we have a
release (which requires that we all help in testing the release candidates
that Sjoerd has built and made available for CWI-internal testing) and
Sjoerd re-opens the release branches for bug-fix check-ins.
Stefan
File Added: fix-2277120.diff
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2277120&group_id=56967
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs