English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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/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

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