[Derelict2] Code SOMETIMES seg. faults!

H. S. Teoh hsteoh at quickfur.ath.cx
Thu May 10 12:14:45 PDT 2012


On Thu, May 10, 2012 at 09:08:04PM +0200, Minas wrote:
> Well, my code is really simple, compiles and runs fine.
> 
> [code]
[...]
> [/code]
> 
> But sometimes (at about 3-5 runs), I get a segmentation fault!
> 
> 0
> bash: line 1: 12951 Segmentation fault      (core dumped) /home/minas/Projects/OpenGL/D_template/D_template/bin/Debug/D_template
> 
> 0 is the return value of SDL_Init, so everything ok here. I don't
> know why this is happening? Has anyone had a similar problem?

It may help narrow down the problem if you could compile with debugging
(-g), and run the program under gdb, and when it segfaults, type 'bt'
(backtrace) to see where it segfaulted.


T

-- 
You are only young once, but you can stay immature indefinitely. -- azephrahel


More information about the Digitalmars-d-learn mailing list