Seems like a genuine bug in hdf5: it's a feature that gcc catches this,
as the behaviour of that code is undefined.
/* do compressed data write */
output = open(filename, O_RDWR | O_CREAT);
'man 2 open' says:
mode specifies the permissions to use in case a new file
is created. This argument must be supplied when O_CREAT
is specified in flags; if O_CREAT is not specified, then
mode is ignored.
The code in hdf5 will probably cause some random memory to be read off
the stack and interpreted as a file mode, which is a Very Bad Idea. It's
absolutely right for this to be flagged as an error, even if it
mistakenly wasn't before!
I would recommend reporting this to the hdf5 maintainers. Adding S_IRWXU
as the third argument there (as with the uncompressed data write call a
little further up the same function) would probably do the right thing,
but they should confirm it.
--
error with gcc-4.3 compilation: "/usr/include/bits/fcntl2.h:51: error: call to
'__open_missing_mode' declared with attribute error"
https://bugs.launchpad.net/bugs/286565
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs