Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] segfault in Unix.gethostbyname
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-03-26 (19:24)
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/ 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

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.


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: