You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 53 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Gerd Stolpmann
Version: 2.04/Current CVS version
OS: Solaris
Submission from: master.proxy.ision.net (195.180.208.40)
Hi,
I recently detected a problem with otherlibs/str. The GNU regex library defines
the function regfree, which is a POSIX.2 function. Under Solaris, I observed
that the call of regfree in strstubs.c actually invoked the regfree function
defined in libc, and not the regfree function defined in regex. This caused
a core dump every time a regexp value was finalized.
Fortunately, regfree is the only regexp function which conflicts with POSIX
functions; the other calls of regexp functions are not affected.
I recently detected a problem with otherlibs/str. The GNU regex library >
defines
the function regfree, which is a POSIX.2 function. Under Solaris, I observed
that the call of regfree in strstubs.c actually invoked the regfree function
defined in libc, and not the regfree function defined in regex. This caused
a core dump every time a regexp value was finalized.
Well spotted. I fixed this by renaming regfree in the GNU regex library,
and #ifdef'ing away all POSIX and BSD emulation code in that library
(we don't need it).
Original bug ID: 53
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Gerd Stolpmann
Version: 2.04/Current CVS version
OS: Solaris
Submission from: master.proxy.ision.net (195.180.208.40)
Hi,
I recently detected a problem with otherlibs/str. The GNU regex library defines
the function regfree, which is a POSIX.2 function. Under Solaris, I observed
that the call of regfree in strstubs.c actually invoked the regfree function
defined in libc, and not the regfree function defined in regex. This caused
a core dump every time a regexp value was finalized.
Fortunately, regfree is the only regexp function which conflicts with POSIX
functions; the other calls of regexp functions are not affected.
I have a patch which avoids to call regfree at all (by simply copying the
"free"
invocations into the stub function):
http://people.darmstadt.netsurf.de/Gerd.Stolpmann/ocaml/str-2.04.patch
Gerd
The text was updated successfully, but these errors were encountered: