Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#973 SysFileTree causes Segmentation fault

4.1.3
closed
Mark Miesfeld
none
5
2013-07-09
2011-01-01
mdlueck
No

I was running ooRexx 4.0.1 and found a seg fault within SysFileTree. I updated to ooRexx-4.1.0-ubuntu1004.i386.deb and the error still persists.

Ubuntu Server 10.04 x86

This code never completes, rather seg faults:
/ Next scan for FILE's... /
say 'Next scan for FILEs...'
rc=SysFileTree('*', f., 'FOS')

I checked the subtree in question and it appears the SysFileTree should return:
/srv/shares$ find data -name "*" -print | wc -l
217331

that many files. I recalled SysFileTree not being able to get through the data share a LONG time ago, before I did massive cleanup. Perhaps then the file count was around 500,000. Puzzling that years later with far less files it still can not make it through.

I was running the rexx as root via sudo, so that can not be the problem.

I guess I will take the data share a subtree at a time to get through the files fixing perms. Please let me know how I may help sort this out. Thank you!

Discussion

  • Mark Miesfeld
    Mark Miesfeld
    2012-02-09

    Hi Michael,

    I'm going to close this bug as a duplicate of:

    3405740 SysFileTree usage Access Violation

    even though you opened this one first. Currently that bug has the most information in it and a higher priority number assigned to it. In that bug we also have evidence of crashes on both Windows and Mac.

     
  • Mark Miesfeld
    Mark Miesfeld
    2012-07-30

    Michael, I'm going to open this back up for now.

    I could reproduce a crash on several Linux systems and we now have a fix for it. When I commit the code, I'll remark this as fixed and try to get you to test it for me.

     
  • mdlueck
    mdlueck
    2012-07-30

    Certainly I can test it. My largest file system is on a box running Ubuntu 10.04 x86. Please let me know when you have a test package built which will be compatible with that configuration.

     
  • Mark Miesfeld
    Mark Miesfeld
    2012-07-30

    Committed revision 8126 in trunk

    Testing looks good, but will do more testing before committing to the 4.1 fixes branch

     


Anonymous


Cancel   Add attachments