From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id UAA06603; Fri, 26 Mar 2004 20:24:49 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA19273 for ; Fri, 26 Mar 2004 20:24:48 +0100 (MET) Received: from calmail-cl.berkeley.edu (mailfarm.Berkeley.EDU [128.32.61.106]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i2QJPPKW002733 for ; Fri, 26 Mar 2004 20:25:25 +0100 Received: from [64.162.212.212] (HELO tallman.kefka.frap.net) by calmail-cl.berkeley.edu (CommuniGate Pro SMTP 4.1.8) with SMTP id 9933271; Fri, 26 Mar 2004 11:24:45 -0800 Received: by tallman.kefka.frap.net (sSMTP sendmail emulation); Fri, 26 Mar 2004 11:24:38 -0800 Date: Fri, 26 Mar 2004 11:24:38 -0800 From: Kenneth Knowles To: Thomas Fischbacher Cc: caml-list@inria.fr Subject: Re: [Caml-list] segfault in Unix.gethostbyname Message-ID: <20040326192438.GA18128@tallman.kefka.frap.net> References: <20040326182202.GA28843@tallman.kefka.frap.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i X-Miltered: at nez-perce by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; knowles:99 caml-list:01 segfault:01 ocamlrun:01 3.07:01 sigsegv:01 sigsegv:01 gdb:01 segfault:01 809:99 malloc:01 malloc:01 ocaml:01 caml:01 segmentation:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk X-Status: X-Keywords: X-UID: 380 > 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) = free(0x80a14a0) = 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