From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p9JKg85I024349 for ; Wed, 19 Oct 2011 22:42:08 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsABAMk1n07UGyoBkWdsb2JhbABEmhaNeHYiAQEBAQkLCwcUAyKBbgEBBR5aEQsEHRYPCQMCAQIBRRMGAgEBh362BIMwhGsEk36RWQ X-IronPort-AV: E=Sophos;i="4.69,374,1315173600"; d="scan'208,217";a="124809365" Received: from smtp1-g21.free.fr ([212.27.42.1]) by mail1-smtp-roc.national.inria.fr with ESMTP; 19 Oct 2011 22:42:02 +0200 Received: from [IPv6:2a01:e35:1393:daa0:8580:fe59:10d8:e396] (unknown [IPv6:2a01:e35:1393:daa0:8580:fe59:10d8:e396]) by smtp1-g21.free.fr (Postfix) with ESMTP id 53A83940191 for ; Wed, 19 Oct 2011 22:41:56 +0200 (CEST) Message-ID: <4E9F3613.7050105@free.fr> Date: Wed, 19 Oct 2011 22:41:55 +0200 From: Emmanuel Dieul User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: caml-list@inria.fr References: <4E99EA23.6060406@free.fr> <4E9C58B5.5010808@free.fr> <20111017234039.271bb7da6d4448b538fee050@gmail.com> In-Reply-To: <20111017234039.271bb7da6d4448b538fee050@gmail.com> Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Caml-list] ocamlrun: Segmentation fault (core dumped) Le 17/10/2011 22:40, ygrek a écrit :
On Mon, 17 Oct 2011 18:32:53 +0200
Emmanuel Dieul <emmanuel.dieul@free.fr> wrote:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 6724.0x14ac]
0x610e73da in pthread::thread_init_wrapper(void*) () from /cygdrive/l/programmation/cygwin/bin/cygwin1.dll
(gdb) backtrace
#0  0x610e73da in pthread::thread_init_wrapper(void*) () from /cygdrive/l/programmation/cygwin/bin/cygwin1.dll
#1  0x762b2ad6 in OutputDebugStringA () from /cygdrive/c/Windows/syswow64/KERNELBASE.dll
#2  0x40010006 in ?? ()
#3  0x00000000 in ?? ()
(gdb)
So, it seems cygwin is in trouble with my program... Damn !
OutputDebugStringA means there should be some useful info.
Run it under windbg to see the message.
Also look into system event logs.
I tried to look after system logs, but I found nothing about this event.
I looked into Application and System logs of Windows, but I found nothing.

I also tried to run my program under windbg. With my first run (command GN
twice), I could see my program running and then stop with the same kind of error
(STATUS_ACCESS_VIOLATION).
However, I don't understand anything of what windbg told me :
0:000> KP 20
Child-SP          RetAddr           Call Site
00000000`0008e318 00000000`74b8601a ntdll!NtTerminateProcess+0xa
00000000`0008e320 00000000`74b7cf87 wow64!Wow64EmulateAtlThunk+0x86ba
00000000`0008e350 00000000`74b02776 wow64!Wow64SystemServiceEx+0xd7
00000000`0008ec10 00000000`74b7d07e wow64cpu!TurboDispatchJumpAddressEnd+0x2d
00000000`0008ecd0 00000000`74b7c549 wow64!Wow64SystemServiceEx+0x1ce
00000000`0008ed20 00000000`77384956 wow64!Wow64LdrpInitialize+0x429
00000000`0008f270 00000000`77381a17 ntdll!RtlUniform+0x6e6
00000000`0008f760 00000000`7736c32e ntdll!RtlCreateTagHeap+0xa7
00000000`0008f7d0 00000000`00000000 ntdll!LdrInitializeThunk+0xe
0:000>
As I'm clearly not even a usual user, this is completely unknown for me.