Thread overview | ||||||
---|---|---|---|---|---|---|
|
February 15, 2017 Getting a segfault here, why? | ||||
---|---|---|---|---|
| ||||
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)? |
February 15, 2017 Re: Getting a segfault here, why? | ||||
---|---|---|---|---|
| ||||
Posted in reply to aberba | 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.
|
February 16, 2017 Re: Getting a segfault here, why? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | 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.
|
February 16, 2017 Re: Getting a segfault here, why? | ||||
---|---|---|---|---|
| ||||
Posted in reply to aberba | 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 |
Copyright © 1999-2021 by the D Language Foundation