Browse thread
[Caml-list] segfault in Unix.gethostbyname
-
Kenneth Knowles
-
Thomas Fischbacher
- Kenneth Knowles
- Blair Zajac
-
Thomas Fischbacher
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Kenneth Knowles <kknowles@b...> |
| Subject: | Re: [Caml-list] segfault in Unix.gethostbyname |
> Hm. Have you had a look at ltrace output?
I have now, but I'm not really familiar with ltrace, and I'm not sure how to
interpret it...
kenn@tallman gethost $ ltrace -l /lib/libnss_wins.so.2 ocamlrun ocaml unix.cma
Objective Caml version 3.07+2
# Unix.gethostbyname "dbdev";;
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
There is no output, but isn't that contradictory with where gdb finds the
segfault?
Without the -l option, the last few lines look like this (there's way too much
memmove stuff to paste):
free(0x809ba38) = <void>
free(0x80a14a0) = <void>
malloc(28) = 0x8092698
memmove(0x08092698, 0x401dcfe0, 28, 0x08059747, 28) = 0x08092698
malloc(6) = 0x80926b8
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
I'm not sure what this signifies.
Kenn
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners