Closed
Bug 203317
Opened 22 years ago
Closed 22 years ago
getipnodebyxxxx routines not threadsafe on OpenVMS
Categories
(NSPR :: NSPR, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
4.4
People
(Reporter: colin, Assigned: wtc)
Details
Attachments
(1 file, 2 obsolete files)
2.35 KB,
patch
|
colin
:
review+
dbaron
:
approval1.4b+
|
Details | Diff | Splinter Review |
It turns out that the getipnodebyxxxx routines provided by TCP/IP Services for
OpenVMS are not threadsafe (I have reported this internally as PTR 30-5-415 in
library OSSG). But until the problem gets fixed, I have to patch prnetdb.c to
work around the bug (see attachment in next reply).
If I were to change the "#ifdef VMS" to "#ifdef PR_GETIPNODE_NOT_THREADSAFE" or
something like that, and then define PR_GETIPNODE_NOT_THREADSAFE in
nsprpub/config/OpenVMS.mk, is this something that could/should be checked in?
Reporter | ||
Comment 1•22 years ago
|
||
This is my current workaround.
Assignee | ||
Comment 2•22 years ago
|
||
Yes, please use something like PR_GETIPNODE_NOT_THREADSAFE.
You'd need to define that macro in nsprpub/configure.in.
nsprpub/config/OpenVMS.mk is obsolete.
Status: NEW → ASSIGNED
Reporter | ||
Comment 3•22 years ago
|
||
This version of the patch uses PR_GETIPNODE_NOT_THREADSAFE, and defines it in
the OpenVMS section of configure.in.
Attachment #121649 -
Attachment is obsolete: true
Reporter | ||
Updated•22 years ago
|
Attachment #122013 -
Flags: review?(wtc)
Assignee | ||
Comment 4•22 years ago
|
||
This is essentially the same as Colin's patch. I only made
some changes to conform to the coding style (of the placement
of curly braces) and to avoid this nested ifdef and if, which
I find difficult to understand:
+#ifndef PR_GETIPNODE_NOT_THREADSAFE
if (_pr_ipv6_is_present == PR_FALSE)
+#endif
UNLOCK_DNS();
Attachment #122013 -
Attachment is obsolete: true
Assignee | ||
Updated•22 years ago
|
Attachment #122013 -
Flags: review?(wtc)
Assignee | ||
Updated•22 years ago
|
Attachment #122027 -
Flags: review?(colin)
Reporter | ||
Updated•22 years ago
|
Attachment #122027 -
Flags: review?(colin) → review+
Reporter | ||
Comment 5•22 years ago
|
||
Comment on attachment 122027 [details] [diff] [review]
Proposed patch v1.1
Can this get into 1.4b?
Attachment #122027 -
Flags: approval1.4b?
Attachment #122027 -
Flags: approval1.4b? → approval1.4b+
Reporter | ||
Comment 6•22 years ago
|
||
I believe this fix is checked in now. So the bug can be closed?
Assignee | ||
Comment 7•22 years ago
|
||
Yes, the fix has been checked in. Marked the bug fixed.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Target Milestone: --- → 4.4
You need to log in
before you can comment on or make changes to this bug.
Description
•