GNU bug report logs -
#35666
[PATCH 0/2] Build a thread-safe hdf5 library
Previous Next
Reported by: Ludovic Courtès <ludo <at> gnu.org>
Date: Fri, 10 May 2019 09:57:01 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #37 received at 35666 <at> debbugs.gnu.org (full text, mbox):
> I’m not sure I understand. Do you mean that, just because you use the
> C++ API instead of the C API, the library is not thread-safe?
The thread-safety of the C++ interface itself is not guaranteed/"supported".
> They do see crashes vanish when using the library compiled with
> ‘--enable-threadsafe’, and reliably so.
Great. I'm not familiar enough with the C++ interface code to say which areas might cause problems in a threaded context. It's likely that whatever problems they were seeing before was not at the interface layer but deeper.
Eric Bavier, Scientific Libraries, Cray Inc.
________________________________________
From: Ludovic Courtès <ludovic.courtes <at> inria.fr>
Sent: Tuesday, May 14, 2019 02:28
To: Eric Bavier
Cc: Ricardo Wurmus; 35666 <at> debbugs.gnu.org; pgarlick <at> tourbillion-technology.com
Subject: Re: [bug#35666] [PATCH 0/2] Build a thread-safe hdf5 library
Hi Eric,
Eric Bavier <bavier <at> cray.com> skribis:
> I think this should be fine, though I've not heard of anyone who has
> relied on this feature. The "unsupported" part here is that the posix
> lock used for thread-safety is not hoisted into the higher-level API
> calls. So if your colleague is using the C++ interface and expecting
> thread-safety, they are out of luck. So the disclaimer is that only
> the low-level C interface gains thread-safety, and the rest are no
> better.
I’m not sure I understand. Do you mean that, just because you use the
C++ API instead of the C API, the library is not thread-safe?
They do see crashes vanish when using the library compiled with
‘--enable-threadsafe’, and reliably so.
Thanks,
Ludo’.
This bug report was last modified 6 years and 61 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.