nacl_io fopen fails after fwrite

33 views
Skip to first unread message

John Freeman

unread,
Apr 16, 2015, 12:04:09 PM4/16/15
to native-cli...@googlegroups.com
I am mounting the HTML5 filesystem with the following:

mount("", "/persistent", "html5fs", 0, "type=PERSISTENT,expected_size=1048576");


I create a file using the following

FILE *logfile = fopen("logfile.log", "a");

fwrite
("test", 1, 4, logfile);

fclose
(logfile);


I can call the above code multiple times without any problem.


After executing the above code, the following code will fail

FILE *logfile = fopen("logfile2.log", "a");
if (logfile == NULL) {
 
// fails here
}


I can reproduce this with the nacl_io_demo code

These steps always fail

1. create file
2. write to file
3. close file
4. create file 2 // fail

The following steps never fail

1. create file
2. close file
3. create file 2 
4. close file
5. create file 3
6. close file 3



Ben Smith

unread,
Apr 17, 2015, 4:00:25 PM4/17/15
to native-cli...@googlegroups.com
Hi John,

Thanks for pointing this out!

I filed a bug here: https://crbug.com/478230

-Ben
Reply all
Reply to author
Forward
0 new messages