Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
segfault in 3.10
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-06-29 (00:28)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] segfault in 3.10
On Thursday 28 June 2007 22:38:30 micha wrote:
> I get a segfault when compiling the program below with ocamlopt 3.10 on
> linux (athlon xp) and running it without an argument (it should throw
> an exception). The code below is the smallest part of my program...

Here's an implementation that's both shorter and faster: ;-)

  print_endline Sys.argv.(-1)

Run with:

$ ocamlopt -o test
$ ./test
Segmentation fault

Dr Jon D Harrop, Flying Frog Consultancy Ltd.
The OCaml Journal