digitalmars.D.learn - Getting a segfault here, why?
- aberba (8/8) Feb 15 2017 I'm getting a segmentation fault in vibe.d web interface class.
- Adam D. Ruppe (4/7) Feb 15 2017 On linux it is pretty easy. Just compile with `-g` to dmd and run
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
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
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:Thanks, will try and see.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 16 2017
On Thursday, 16 February 2017 at 09:18:16 UTC, aberba wrote:Also don't forget to do this: http://vibed.org/docs#handling-segmentation-faultsOn 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