Bugs item #1892554, was opened at 2008-02-13 10:49
Message generated for change (Comment added) made by sjoerd
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1892554&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 0.22
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Stefan Manegold (stmane)
>Assigned to: Sjoerd Mullender (sjoerd)
Summary: PF: loading pre-compiled MIL modules fails on Windows
Initial Comment:
ERROR = !ERROR:
"proc_vid.insert("fnB3D04632_AssetByTrackNr_xs_string1_xs_integer1_xs_integer1",
1394161003LL);"
!
^
! can't help you here, sorry.
!module import: error loading module from
C:\\cygwin\\var\\tmp\\monet.Int.64.32.d.30065\\pathfinder\\NT\\mTests\\benchmarks\\Music\\mod\\MIL/music.mil
See
http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/Int.64.32.d-Windows5.2/benchmarks_Music_mod_MIL/full_01.err.00.html
http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/Int.64.32.d-Windows5.2/benchmarks_Music_opt_MIL/full_01.err.00.html
----------------------------------------------------------------------
>Comment By: Sjoerd Mullender (sjoerd)
Date: 2008-02-22 11:44
Message:
Logged In: YES
user_id=43607
Originator: NO
There seems to a difference between Windows and Linux in the meaning of
the second argument of snprintf and vsnprintf: in Linux this argument gives
the size of the buffer to which the function writes, whereas in Windows it
gives the number of non-NULL bytes that it can write (and then it adds a
NULL). This means that on Windows you have to specify a size which is
*smaller* than the actual size of the buffer.
To make the same code work on both flavors, in some cases we now
overallocate the needed space by one byte so that we can use
(sizeof(buf)-1) as size.
No additional test needed.
----------------------------------------------------------------------
Comment By: Stefan Manegold (stmane)
Date: 2008-02-16 11:56
Message:
Logged In: YES
user_id=572415
Originator: YES
Some extra info:
The MIL module that fails to load is generated from XQuery module using
`pf`, e.g., in this test
http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/Int.64.32.d-Windows5.2/benchmarks_Music_mod_MIL/xq2mil.out.00.html
The generated MIL module that fails to load is available at
http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.Int.64.32.d-Windows5.2/mTests10/benchmarks/Music/mod/MIL/music.mil
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1892554&group_id=56967
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs