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: 3530 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Lodewijk Voge
Version: any, up and including 3.08 CVS as of an hour ago
OS: Linux (i386/amd64), FreeBSD (i386), MacOS X
Submission from: 69.25.77.51 (69.25.77.51)
I'm experiencing a memory leak in a long running process that seems to have to
do with the C interface. noone on the mailinglist could point to the obvious
fault, so I'm submitting it as a bug. the cut-down version that behaves the same
is this ocaml code:
external bar: unit -> Unix.inet_addr * unit = "bar"
let _ =
let s = String.create 392 in
while true do
ignore(bar ());
done
which will result in a slowly but steadily growing process. if you change bar's
type and implementation to only return the Unix.inet_addr, it shows no such
growth.
thanks,
Lodewijk
The text was updated successfully, but these errors were encountered:
Original bug ID: 3530
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Lodewijk Voge
Version: any, up and including 3.08 CVS as of an hour ago
OS: Linux (i386/amd64), FreeBSD (i386), MacOS X
Submission from: 69.25.77.51 (69.25.77.51)
I'm experiencing a memory leak in a long running process that seems to have to
do with the C interface. noone on the mailinglist could point to the obvious
fault, so I'm submitting it as a bug. the cut-down version that behaves the same
is this ocaml code:
external bar: unit -> Unix.inet_addr * unit = "bar"
let _ =
let s = String.create 392 in
while true do
ignore(bar ());
done
with this C code:
#include <caml/alloc.h>
#include <caml/mlvalues.h>
#include <caml/misc.h>
#include <caml/memory.h>
CAMLprim value bar(value unit) {
CAMLparam1(unit);
CAMLlocal2(res, addr);
int i;
}
which will result in a slowly but steadily growing process. if you change bar's
type and implementation to only return the Unix.inet_addr, it shows no such
growth.
thanks,
Lodewijk
The text was updated successfully, but these errors were encountered: