Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Called from unknown location
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] Called from unknown location
> with OCAMLRUNPARAM=b=1 my backtrace has some lines with precise
> locations like 
> 
>     Called from module Main, character 12011
> 
> but lots of lines 
> 
>     Called from unknown location

This can happen in two cases: 1- some of the Caml code wasn't compiled
with -g; 2- for code dynamically loaded by Dynlink.

> Moreover, the start of the backtrace is wrong, it looks like
> 
>    Fatal error: uncaught exception Assert_failure("lifting.ml", 26109, 26122)
>    Raised at module Format, character 5250
>    Called from module Format, character 11592
>    [...]
> 
> so the assertion is raised in lifting.ml, which is a plain (i.e.
> without modules) ml file. Why does it print "Raised at module
> Format" ?

This looks suspect indeed.  If you have a short program reproducing
this behavior, please make a bug report.

- Xavier Leroy
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr