Skip to content
Snippets Groups Projects

Avoid seg fault with recent nixpkgs

Merged Teo Camarasu requested to merge teo/ghc-debug:wip/avoid-segfault into master

Resolves #16 (closed) .

I wouldn't say I understand the semantics of C++, but this seems to fix the seg fault. My very cursory understanding is that the previous code was wrong because resp would be deleted when it went out of scope, whereas now it doesn't as it lives on the heap instead. Though this might leak Response values.

What confuses me is why this behaviour changed at all...

Edited by Teo Camarasu

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading