Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000053OCamlOCaml generalpublic2000-03-11 16:442000-03-24 16:03
Reporteradministrator 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000053: Linking problems in otherlibs/str
DescriptionFull_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

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000323)
administrator (administrator)
2000-03-24 16:02

> 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).

Thanks for the bug report,

- Xavier Leroy
(0000324)
administrator (administrator)
2000-03-24 16:03

Fixed on 2000-03-24 by Xavier

- Issue History
Date Modified Username Field Change
2005-11-18 10:13 administrator New Issue


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker