[Bug 1026] New: Concurrent mapper fails in a recursion loop.
https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=1026 Summary: Concurrent mapper fails in a recursion loop. Product: Swift Version: 0.94 Platform: PC URL: http://ci.uchicago.edu/~yadunandb/reiteration.tar OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: General AssignedTo: [email protected] ReportedBy: [email protected] I'm trying to implement a simple feedback pattern in swift. Here's what I have : An application foo( ), which feeds back its output till ome condition cond( ) returns true. cond( ) just checks if a counter in the file has reached 100. The work( ) app, increments the counter in the input file by 1. The following pseudo swift code should go to a 100 level deep recursion, but fails with could not create file error. (file output) foo (file input) { if ( input meets conditions ){ output = input; // tail end of recursion } else { // do some work on input and pass it back to foo ( ) file temp = work (input); output = foo ( temp ); } }
From what I understand here, the concurrent mapper is creating temporary files by appending the filename at each level of the recursion with some chars resulting in filenames exceeding the 255 char limit by the 50th level.
Please check the URL attached for a test script which would reproduce this issue. -- 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=1026 Mihael Hategan <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Mihael Hategan <[email protected]> 2013-07-18 14:52:50 --- This is now fixed in trunk. Thread names are run-length encoded, so R-2-3-3-3-3-3-3-3-3 becomes R-2-3x8. It's still unbound, but it's log(N) instead of N, so you'll likely run out of stack space on the recursive call than path space. I won't fix this in 0.94 unless there is a specific user needing this. -- 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