[Bug 1369] New: NPE with filesys_mapper
https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=1369 Summary: NPE with filesys_mapper Product: Swift Version: 0.96 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: General AssignedTo: [email protected] ReportedBy: [email protected] The following piece of code fails with a NullPointerException, when the file arrays out and err are using filesys_mapper. Changing the mapper to simple_mapper, gets the code running without issues. type file; int loops = toInt(arg("loops","50")); int delay = toInt(arg("delay", "1")); app (file out, file err) app_foo (file script, int delay) { bash @script delay stdout=@out stderr=@err; } file out[] <filesys_mapper; location="output", prefix="std", suffix=".out">; file err[] <filesys_mapper; location="output", prefix="std", suffix=".err">; //file out[] <simple_mapper; location="output", prefix="foo.", suffix=".out">; //file err[] <simple_mapper; location="output", prefix="foo.", suffix=".err">; file wrapper <"wrapper.sh">; foreach i in [1:loops] { tracef("Count : %i \n", i); (out[i], err[i]) = app_foo (wrapper, delay); } The logs from the run are here : http://users.rcc.uchicago.edu/~yadunand/filesys_mapper_NPE/ -- Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=1369 Yadu Nand <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |blocker -- Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=1369 Mihael Hategan <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #1 from Mihael Hategan <[email protected]> 2014-11-01 16:50:35 --- The filesys mapper searches a directory for files and maps the found files to elements in an array. The code below asks the filesys mapper to decide what the file names should be for an array that does not exist yet. No such decision can be made, since the files don't yet exist. In other words, this usage of the filesys mapper makes no sense. I added a slightly more explicit error message instead of the NPE, but I'm not entirely sure what to do to make the situation more clear. Restricting the filesys mapper to input data is not the right solution, since it can legitimately be used to map whole arrays returned by apps. -- Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=1369 Mihael Hategan <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |WORKSFORME -- Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
bugzilla-daemon@mcs.anl.gov