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 SAA04458; Sun, 14 Sep 2003 18:54:21 +0200 (MET DST) 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 SAA30356 for ; Sun, 14 Sep 2003 18:54:20 +0200 (MET DST) Received: from mailhost.ens-lyon.fr (pluvier.ens-lyon.fr [140.77.167.5]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h8EGsJT16776 for ; Sun, 14 Sep 2003 18:54:20 +0200 (MET DST) Received: from [140.77.128.63] (helo=igloo.is-a-geek.org) by mailhost.ens-lyon.fr with smtp (Exim 3.35 #1 (Debian)) id 19ya8h-0005WP-00 for ; Sun, 14 Sep 2003 18:54:19 +0200 Date: Sun, 14 Sep 2003 18:45:10 +0200 From: David Baelde To: caml-list@inria.fr Subject: [Caml-list] Ocaml binding of libsmbclient Message-Id: <20030914184510.2a81f61b.David.Baelde@ens-lyon.fr> X-Mailer: Sylpheed version 0.9.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Loop: caml-list@inria.fr X-Spam: no; 0.00; ens-lyon:01 bug:01 segfaults:01 bug:01 ctest:01 mltest:01 ocaml:01 ocaml:01 emacs:01 tar:01 tar:01 makefile:02 binding:03 binding:03 init:05 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I am currently binding libsmbclient to OCaml. I have isolated a bug that drives me crazy : the same function (common.c / common ()), called from OCaml or C, has two different behaviors. From C program, everything goes well. Called from a OCaml program, smbc_init segfaults. I hope that the bug comes from a bad binding, maybe someone will be able to point it out. Thank you for your help. PS: Of course you need libsmbclient to enjoy the bug. # tar jxvf bing.tar.bz2 # cd bing # emacs Makefile common.c # make all # ctest # mltest -- David Baelde Etudiant en Info =E0 l'ENS Lyon _______ .^. O /V\ .=B0 // \\ /( )\ ^^-^^ ------------------- 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