Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

stack-unwinding

Why destructor is not called on exception?

March 23, 2023 by Tarik

The destructor is not being called because terminate() for the unhandled exception is called before the stack gets unwound. The specific details of what the C++ spec says is outside of my knowledge, but a debug trace with gdb and g++ seems to bear this out. According to the draft standard section 15.3 bullet 9: … Read more

Categories c++ Tags c++, destructor, exception, stack-unwinding, visual-c++ Leave a comment

What are CFI directives in Gnu Assembler (GAS) used for?

December 11, 2022 by Tarik

To disable these, use the gcc option -fno-asynchronous-unwind-tables -fno-dwarf2-cfi-asm may be needed also.

Categories assembly Tags assembly, callstack, debug-information, gnu-assembler, stack-unwinding Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa