From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 39DE0BC75 for ; Thu, 3 Mar 2005 05:18:37 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j234IaTK018080 for ; Thu, 3 Mar 2005 05:18:37 +0100 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 FAA05945 for ; Thu, 3 Mar 2005 05:18:36 +0100 (MET) Received: from us19.unix.fas.harvard.edu (us19.unix.fas.harvard.edu [140.247.35.199]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j234IZKd013257 for ; Thu, 3 Mar 2005 05:18:36 +0100 Received: from [140.247.161.104] (roam161-104.student.harvard.edu [140.247.161.104]) by us19.unix.fas.harvard.edu (8.12.11/8.12.11) with ESMTP id j234IZtO020927 for ; Wed, 2 Mar 2005 23:18:35 -0500 Mime-Version: 1.0 (Apple Message framework v619.2) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; format=flowed To: caml-list@inria.fr From: Mike Hamburg Subject: Elusive String.blit exception Date: Wed, 2 Mar 2005 23:18:35 -0500 X-Mailer: Apple Mail (2.619.2) X-Miltered: at nez-perce with ID 4226901C.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 4226901B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; blit:01 blit:01 bug:01 printf:01 printf:01 backtrace:01 elusive:98 exception:01 exception:01 functions:01 argument:01 failing:02 seems:03 string:03 string:03 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: I have a program which does not use the String module directly, which very occasionally fails on Invalid_argument(String.blit). I have been unable to track down the cause of this bug, and really don't know what to make of it given that I'm not using the String module. The only module that's used anywhere in that code which uses String (as far as I can tell) is Printf. It seems very unlikely that Printf is failing, given that it's tested more often than just about any other module in the standard basis other than List. Where could this exception be coming from? Is there any way to automatically get a backtrace when my program dies on an exception? Are there any other functions which use String.blit? Mike Hamburg