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 OAA26160; Tue, 19 Mar 2002 14:48:07 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA26539 for ; Tue, 19 Mar 2002 14:48:06 +0100 (MET) Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g2JDm5j03356 for ; Tue, 19 Mar 2002 14:48:05 +0100 (MET) Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id g2JDm5p10770 for ; Tue, 19 Mar 2002 14:48:05 +0100 (CET) Received: from (george@localhost) by clipper.ens.fr (8.9.2/jb-1.1) Date: Tue, 19 Mar 2002 14:48:04 +0100 From: Nicolas George To: caml-list@inria.fr Subject: [Caml-list] Strange bug with dynamic loading (was: Text Mode Kit) Message-ID: <20020319144804.A3847@clipper.ens.fr> References: <20020319143018.A17599@clipper.ens.fr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="cNdxnHkX5QqsyA0e" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020319143018.A17599@clipper.ens.fr>; from nicolas.george@ens.fr on Tue, Mar 19, 2002 at 01:34:12PM +0000 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk --cNdxnHkX5QqsyA0e Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Le nonidi 29 vent=F4se, an CCX, Nicolas George a =E9crit=A0: > http://savannah.gnu.org/projects/ocaml-tmk/ This project has a binding for the curses library, and uses the dynamic loading. But a strange bug appears. With the following program: open Curses let main () =3D let w =3D initscr () in assert (cbreak ()); assert (noecho ()); assert (move 3 4); hline 0 42; ignore (getch ()); assert (move 4 5); hline 0 42; ignore (getch ()); endwin () let () =3D main () everything works good. But if the first line with getch becomes let () =3D ignore (getch ()) in the second horizontal lines becomes a line of `q'. Further experiments show that in some cases, the ncurses library is totally confused after the first refresh. The problem does not appears when the binding is statically linked (-custom, -use-runtime or ocamlopt) (but still dynamically linked to ncurses). All this happens on Linux/i386. On Solaris/sparc, anything segfaults at startup. Does anyone here understand what is happening? --cNdxnHkX5QqsyA0e Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (SunOS) Comment: Pour information voir http://www.gnupg.org iD8DBQE8l0GUsGPZlzblTJMRAhj+AJ0XJsz8eJ2oj29fXvstwft9HlsYzgCgqXLa RcfBwoyxMMobtYU5A5+/22w= =pGzs -----END PGP SIGNATURE----- --cNdxnHkX5QqsyA0e-- ------------------- 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