Public bug reported: in fs_util the next() function makes use of ::readdir and in particular d_type which is not supported by all file system types (cf readdir man page).
If d_type is not supported it will be set to DT_UNKNOWN also for the file system entries "." and "..". Consequently, these entries are not skipped and file:list will recursively infinitely list entries: /. /./. /././. /./././. /././././. /./././././. .. etc ** Affects: zorba Importance: High Assignee: Dennis Knochenwefel (dennis-knochenwefel) Status: New ** Tags: crash incorrect-result -- You received this bug notification because you are a member of Zorba Coders, which is the registrant for Zorba. https://bugs.launchpad.net/bugs/1023862 Title: file:list($path, true()) can produce infinite loops on some filesystems Status in Zorba - The XQuery Processor: New Bug description: in fs_util the next() function makes use of ::readdir and in particular d_type which is not supported by all file system types (cf readdir man page). If d_type is not supported it will be set to DT_UNKNOWN also for the file system entries "." and "..". Consequently, these entries are not skipped and file:list will recursively infinitely list entries: /. /./. /././. /./././. /././././. /./././././. .. etc To manage notifications about this bug go to: https://bugs.launchpad.net/zorba/+bug/1023862/+subscriptions -- Mailing list: https://launchpad.net/~zorba-coders Post to : zorba-coders@lists.launchpad.net Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp