www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Getting a segfault here, why?

reply aberba <karabutaworld gmail.com> writes:
I'm getting a segmentation fault in vibe.d web interface class.

Does referring "this" in an "if" or "switch" within a method 
cause segfault?

Trying to find it but working with a debugger in D is not 
straight forward. Not yo talk of interpretating the debugger 
output.

How has things improved since this thread 
(http://forum.dlang.org/post/1339326434.14823.4.camel localhost)?
Feb 15 2017
parent reply Adam D. Ruppe <destructionator gmail.com> writes:
On Wednesday, 15 February 2017 at 18:19:18 UTC, aberba wrote:
 Trying to find it but working with a debugger in D is not 
 straight forward. Not yo talk of interpretating the debugger 
 output.
On linux it is pretty easy. Just compile with `-g` to dmd and run the program in gdb. Run till it crashes and it should tell you the file and line of where.
Feb 15 2017
parent reply aberba <karabutaworld gmail.com> writes:
On Wednesday, 15 February 2017 at 18:22:53 UTC, Adam D. Ruppe 
wrote:
 On Wednesday, 15 February 2017 at 18:19:18 UTC, aberba wrote:
 Trying to find it but working with a debugger in D is not 
 straight forward. Not yo talk of interpretating the debugger 
 output.
On linux it is pretty easy. Just compile with `-g` to dmd and run the program in gdb. Run till it crashes and it should tell you the file and line of where.
Thanks, will try and see.
Feb 16 2017
parent crimaniak <crimaniak gmail.com> writes:
On Thursday, 16 February 2017 at 09:18:16 UTC, aberba wrote:
 On linux it is pretty easy. Just compile with `-g` to dmd and 
 run the program in gdb. Run till it crashes and it should tell 
 you the file and line of where.
Thanks, will try and see.
Also don't forget to do this: http://vibed.org/docs#handling-segmentation-faults
Feb 16 2017