Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glibc 2.3.2 #8206

Closed
vicuna opened this issue Jul 13, 2003 · 2 comments
Closed

glibc 2.3.2 #8206

vicuna opened this issue Jul 13, 2003 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Jul 13, 2003

Original bug ID: 1754
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Ocaml 3.06 compiles on my linux system (2.4.20 kernel) just fine under
glibc 2.2.5, but when I upgraded to glibc 2.3.2, it stopped working.
The build fails at this step:

sh ./runocamldoc true -man -d stdlib_man -I ../parsing -I ../utils -I ../typing -I ../driver -I ../bytecomp -I ../tools -I ../toplevel/ -I ../stdlib -I ../otherlibs/str -I ../otherlibs/dynlink -I ../otherlibs/unix -I ../otherlibs/num -I ../otherlibs/graph \
-t "OCaml library" -man-mini \
../stdlib/*.mli ../otherlibs/unix/unix.mli ../otherlibs/str/str.mli ../otherlibs/bigarray/bigarray.mli ../otherlibs/num/num.mli
make[2]: *** [stdlib_man/Pervasives.o] Killed
make[2]: Leaving directory `/o/tmp/ocaml-3.06-build/ocaml-3.06/ocamldoc'
make[1]: *** [ocamldoc] Error 2
make[1]: Leaving directory `/o/tmp/ocaml-3.06-build/ocaml-3.06'
make: *** [compile] Error 2

The ocamlrun program uses up at lest 187 MB of ram before running out
of memory and getting killed.

The shell script runs this command:

../boot/ocamlrun -I ../otherlibs/unix -I ../otherlibs/str ./ocamldoc -man -d stdlib_man -I ../parsing -I ../utils -I ../typing -I ../driver -I ../bytecomp -I ../tools -I ../toplevel/ -I ../stdlib -I ../otherlibs/str -I ../otherlibs/dynlink -I ../otherlibs/unix -I ../otherlibs/num -I ../otherlibs/graph -t 'OCaml library' -man-mini ../stdlib/arg.mli ../stdlib/array.mli ../stdlib/arrayLabels.mli ../stdlib/buffer.mli ../stdlib/callback.mli ../stdlib/camlinternalOO.mli ../stdlib/char.mli ../stdlib/complex.mli ../stdlib/digest.mli ../stdlib/filename.mli ../stdlib/format.mli ../stdlib/gc.mli ../stdlib/genlex.mli ../stdlib/hashtbl.mli ../stdlib/int32.mli ../stdlib/int64.mli ../stdlib/lazy.mli ../stdlib/lexing.mli ../stdlib/list.mli ../stdlib/listLabels.mli ../stdlib/map.mli ../stdlib/marshal.mli ../stdlib/moreLabels.mli ../stdlib/nativeint.mli ../stdlib/obj.mli ../stdlib/oo.mli ../stdlib/parsing.mli ../stdlib/pervasives.mli ../stdlib/printexc.mli ../stdlib/printf.mli ../stdlib/qu!
eue.mli ../stdlib/random.mli ../stdlib/scanf.mli ../stdlib/set.mli ../stdlib/sort.mli ../stdlib/stack.mli ../stdlib/stdLabels.mli ../stdlib/stream.mli ../stdlib/string.mli ../stdlib/stringLabels.mli ../stdlib/sys.mli ../stdlib/weak.mli ../otherlibs/unix/unix.mli ../otherlibs/str/str.mli ../otherlibs/bigarray/bigarray.mli ../otherlibs/num/num.mli

According to strace, after reading ../stdlib/arg.mli it uses brk() to
get 693 pages of memory, (about 2.8 MB), then after array.mli it gets
651 pages, then after arrayLabels.mli it get 664 pages, and so on,
until it runs out of memory.

Very mysterious.

@vicuna
Copy link
Author

vicuna commented Jul 15, 2003

Comment author: administrator

Ocaml 3.06 compiles on my linux system (2.4.20 kernel) just fine under
glibc 2.2.5, but when I upgraded to glibc 2.3.2, it stopped working.
The build fails at this step:

Is this an Alpha or Itanium system by any chance? If so, this matches
a known issue (see #3583 and 1526 on the Caml bug tracking system).
A patch is given in #7999.

If not, could you please do the following:

    cd ocamldoc
    OCAMLRUNPARAM='v=255' make 2>/tmp/log

and mail me the contents of file /tmp/log.

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Feb 15, 2004

Comment author: administrator

Closed because not enough info to reproduce. -XL

@vicuna vicuna closed this as completed Feb 15, 2004
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant