[Ecls-list] ecl_make_stream_from_fd() && smm_io crashes

Matthew Mondor mm_lists at pulsar-zone.net
Sat Mar 20 20:28:47 UTC 2010


On Sat, 20 Mar 2010 20:12:15 +0100
Juan Jose Garcia-Ripoll <juanjose.garciaripoll at googlemail.com> wrote:

> The outcome of fdopen() in that case is OS-dependent. OS X definitely
> complains if you try to "rw" an O_RDONLY file, to the point that the output
> of fdopen() is -1 and you can not change the buffer nor do I/O. But my point
> was whether you could test the updated source code and see whether now
> ecl_make_stream_from_fd() complains with your input values. Otherwise I am
> going to need some more guidance to find out how you trigger the error.

After update, I indeed get an error.  As for my C test case, I realized
that I had used "rw" instead of "r+" (the later indeed causing
fdopen(3) to fail).

Thanks for the fix :)
-- 
Matt




More information about the ecl-devel mailing list