* [Caml-list] ocamlrun: Segmentation fault (core dumped)
@ 2011-10-15 20:16 Emmanuel Dieul
2011-10-17 12:17 ` Adrien
0 siblings, 1 reply; 5+ messages in thread
From: Emmanuel Dieul @ 2011-10-15 20:16 UTC (permalink / raw)
To: Caml List
[-- Attachment #1: Type: text/html, Size: 1252 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] ocamlrun: Segmentation fault (core dumped)
2011-10-15 20:16 [Caml-list] ocamlrun: Segmentation fault (core dumped) Emmanuel Dieul
@ 2011-10-17 12:17 ` Adrien
2011-10-17 16:32 ` Emmanuel Dieul
0 siblings, 1 reply; 5+ messages in thread
From: Adrien @ 2011-10-17 12:17 UTC (permalink / raw)
To: Emmanuel Dieul; +Cc: Caml List
On 15/10/2011, Emmanuel Dieul <emmanuel.dieul@free.fr> wrote:
> Hi all,
>
> I'm developing a little game using ocaml and lablgtk2. During the game
> (under cygwin), I've got a segmentation fault for ocamlrun :
>>
>>
>> [emmanuel@localhost ~/]$ cat ocamlrun.exe.stackdump
>> Exception: STATUS_ACCESS_VIOLATION at eip=610E73DA
>> eax=1BDCCE64 ebx=01E1C530 ecx=75A50C48 edx=00000000 esi=01E1C588
>> edi=1BB8CE64
>> ebp=1BB8CD98 esp=1BB8CD60
>> program=L:\programmation\cygwin\bin\ocamlrun.exe, pid 6260, thread unknown
>> (0x1CBC)
>> cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B
>> Stack trace:
>> Frame Function Args
>> 1BB8CD98 610E73DA (01E1C530, 1BB8CDD4, 610E73A0, 01E1C530)
>> End of stack trace
>> [emmanuel@localhost ~/]$ ocaml -version
>> The Objective Caml toplevel, version 3.12.0
>
>
> Is there a way to know if the problem comes from ocamlrun or if it comes
> from the (labl)gtk libraries for windows?
Hi,
Do you have a backtrace?
You could run your application under gdb and use its "backtrace"
function to get one. It should show quite quickly whether the issue is
from lablgtk, gtk or something else.
Regards,
Adrien Nader
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] ocamlrun: Segmentation fault (core dumped)
2011-10-17 12:17 ` Adrien
@ 2011-10-17 16:32 ` Emmanuel Dieul
2011-10-17 20:40 ` ygrek
0 siblings, 1 reply; 5+ messages in thread
From: Emmanuel Dieul @ 2011-10-17 16:32 UTC (permalink / raw)
To: Adrien; +Cc: Caml List
[-- Attachment #1: Type: text/html, Size: 2990 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] ocamlrun: Segmentation fault (core dumped)
2011-10-17 16:32 ` Emmanuel Dieul
@ 2011-10-17 20:40 ` ygrek
2011-10-19 20:41 ` Emmanuel Dieul
0 siblings, 1 reply; 5+ messages in thread
From: ygrek @ 2011-10-17 20:40 UTC (permalink / raw)
To: caml-list
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.
--
ygrek
http://ygrek.org.ua
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] ocamlrun: Segmentation fault (core dumped)
2011-10-17 20:40 ` ygrek
@ 2011-10-19 20:41 ` Emmanuel Dieul
0 siblings, 0 replies; 5+ messages in thread
From: Emmanuel Dieul @ 2011-10-19 20:41 UTC (permalink / raw)
To: caml-list
[-- Attachment #1: Type: text/html, Size: 2806 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-10-19 20:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-15 20:16 [Caml-list] ocamlrun: Segmentation fault (core dumped) Emmanuel Dieul
2011-10-17 12:17 ` Adrien
2011-10-17 16:32 ` Emmanuel Dieul
2011-10-17 20:40 ` ygrek
2011-10-19 20:41 ` Emmanuel Dieul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox