Wednesday, 2 May 2012

[gccsdk] [Bug 235] New: GCC 4.1.2 Rel 2 Dev 2012-05-01: Problem reading Archive image files.

http://www.riscos.info/bugzilla3/show_bug.cgi?id=235

Summary: GCC 4.1.2 Rel 2 Dev 2012-05-01: Problem reading
Archive image files.
Product: GCC/GCCSDK
Version: other
Platform: Other
OS/Version: RISC OS
Status: NEW
Severity: normal
Priority: P1
Component: C compiler
AssignedTo: John.Tytgat@aaug.net
ReportedBy: duncan_moore@ntlworld.com
Estimated Hours: 0.0


GCCSDK GCC 4.1.2 Release 2 Development 2012-05-01
SharedUnixLibrary 1.12
VRPC RISC OS 4.39
ArcFS version 0.75 M.Smith 15th March 2003

Reading some Archive image files via !ArcFS is giving problems. The problems
are repeatable. It seems to occur when (but not always) there are >32 files in
a directory. Non-GCCSDK programs can read the image files properly. I only have
the read-only version of !ArcFS so haven't been able to experiment too much.
Here's an example.

Download: http://www3.mistral.co.uk/joe_taylor/drawscript/downloads/ds212.zip
to the CWD. NB it's an Archive file, not a Zip file.
Then run this code:

#include <features.h>
int __feature_imagefs_is_file;
#include <stdio.h>
#include <sys/stat.h>
#include <dirent.h>
int main(void) {
__feature_imagefs_is_file=0;
struct stat dot_sb;
DIR *dirp=opendir("ds212.zip/!DrawScrpt/!Help/text/examples");
struct dirent const *dp;
while ((dp=readdir(dirp))) {
printf("%10s",dp->d_name);
printf(" %i\n",stat(dp->d_name,&dot_sb));
}
return 0;
}

The problem is at the end of the output. This is what I get:

*test
<output removed by hand>
TextfileS2 -1
TextfileU -1
textg.b9b -1
texth.b9b -1
texti.b9b -1
textj.b9b -1
j.b9b -1
_ -1

This is what it should be:

*test
<output removed by hand>
TextfileS2 -1
TextfileU -1
textg.b9b -1
texth.b9b -1
texti.b9b -1
textj.b9b -1
textk.b9b -1
trans.b9b -1

--
Configure bugmail: http://www.riscos.info/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

No comments:

Post a Comment