<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Elena,<div><br></div><div>HDF5 did not dump out any errors, the call to H5Dopen returned a negative pointer. That was all. Let me see if I can put together some sample code that will make this failure happen.</div><div><br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div>Cheers,</div><div><br></div><div>Allen&nbsp;</div><div><br></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline"></div></span> </div><br><div><div>On Jan 15, 2010, at 6:47 PM, Elena Pourmal wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Allen,<div><br></div><div>You said that your program failed. Did it print out errors from the HDF5 library? This what we would like to see to assess the problem (a bug or a feature ;-)</div><div>Having source code of the failing program would be even more helpful.&nbsp;</div><div><br></div><div>Thank you!</div><div><br></div><div>Elena<br><div><div>On Jan 14, 2010, at 3:39 PM, Allen Sanderson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello Elena,<div><br></div><div>Not a problem to send the stack info. Rarely do I gather this info so could you point me to some sample code that will give you the info you need.</div><div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Cheers,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Allen</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Allen Sanderson</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">SCI Institute</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">University of Utah</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; "><a href="http://www.sci.utah.edu/">www.sci.utah.edu</a></font></div><br class="Apple-interchange-newline"></span></span><br class="Apple-interchange-newline"></span></div></span> </div><br><div><div>On Jan 14, 2010, at 1:13 PM, Elena Pourmal wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Allen,<div><br></div><div>Thank you for your report!<br><div><div>On Jan 14, 2010, at 12:37 PM, Allen Sanderson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>HI,</div><div><br></div><div>This morning I was able to track down a bug with a file with external links where the file was opened twice simultaneously. The first open was read only. The second open was read write. &nbsp;However, if I create the file with the exact same hierarchy but without links I do not see the bug. I found this odd.</div><div><br></div><div>Here is the sequence</div><div><br></div><div>fp1 = open file read only</div><div><br></div><div>gp1 = open /group using fp1 (note /group is an eternal link)</div><div><br></div><div>fp2 = open file read/write</div><div><br></div><div>dp2 = open /group/dataset using fp2</div><div><br></div><div>the last open fails. I can understand the failure given the gp1 is read only and dp2 which is under it is trying to perhaps do a write which could cause some problems. &nbsp;So it fails.</div><div><br></div><div>However, if the file has the same hierarchy but without the link it does not fail. I found this behavior strange as I would have expected both to behave the same.</div><div><br></div><div>Obviously, one solution is not to open the file twice which is certainly possible but also having both opens be read/write also works. But I am more concerned with the inconsistency.&nbsp;</div><div><br></div></div></blockquote>yes, good point. Could you please send us an error stack from the failed program?&nbsp;</div><div><br></div><div>In our defense :-) RM entry for H5Fopen states "A file can often be opened with a new <code>H5Fopen</code>             call without closing an already-open identifier established             in a previous <code>H5Fopen</code> or <code>H5Fcreate</code>             call.  Each such <code>H5Fopen</code> call will return a             unique identifier and the file can be accessed through any             of these identifiers as long as the identifier remains valid.&nbsp;In such multiply-opened cases, all the open calls should             use the same <code>flags</code> argument."</div><div><br></div><div>Elena</div><div><br></div><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><font class="Apple-style-span"><br></font><div apple-content-edited="true"> <span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Cheers,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Allen</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Allen Sanderson</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">SCI Institute</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">University of Utah</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; "><a href="http://www.sci.utah.edu/">www.sci.utah.edu</a></font></div><br class="Apple-interchange-newline"></span></span><br class="Apple-interchange-newline"></span></div></span> </div><br></div>_______________________________________________<br>Hdf-forum is for HDF software users discussion.<br><a href="mailto:Hdf-forum@hdfgroup.org">Hdf-forum@hdfgroup.org</a><br><a href="http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org">http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org</a><br></blockquote></div><br></div></div>_______________________________________________<br>Hdf-forum is for HDF software users discussion.<br><a href="mailto:Hdf-forum@hdfgroup.org">Hdf-forum@hdfgroup.org</a><br><a href="http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org">http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org</a><br></blockquote></div><br></div></div>_______________________________________________<br>Hdf-forum is for HDF software users discussion.<br><a href="mailto:Hdf-forum@hdfgroup.org">Hdf-forum@hdfgroup.org</a><br><a href="http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org">http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org</a><br></blockquote></div><br></div></div>_______________________________________________<br>Hdf-forum is for HDF software users discussion.<br><a href="mailto:Hdf-forum@hdfgroup.org">Hdf-forum@hdfgroup.org</a><br>http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org<br></blockquote></div><br></div></body></html>