aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: MuleStackWalker - how can I activate it ?  (Read 2476 times)

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
MuleStackWalker - how can I activate it ?
« on: March 27, 2008, 04:04:26 PM »

I'm using MingW on Vista and just had a nice crash (my own fault surely) with a seek on a closed file. Even though I ran amule.exe from GDB, amule's exception handler kicked in, told me "no backtrace for your platform" and terminated the app cleanly leaving me stumped.  >:(

In MuleDebug.cpp there is a MuleStackWalker class which appears to provide a stack trace for Windows. However, it's not used. '#if wxUSE_STACKWALKER' evaluates as false, even though I tried to configure it in in wx.

I've seached through the headers, and found '#define wxUSE_STACKWALKER 1' in wx/msw/setup0.h, but this file appears to be included nowhere.  ???

My configuration options:
wx: ../configure --with-msw --enable-unicode --disable-shared --without-checklistbox --enable-backtrace
amule: ./configure --prefix=/home/Martin/amulebin --enable-amule-gui --disable-upnp --enable-optimize

Anybody have an idea how to activate it ?

I had similiar problem with a bad std::vector. Again, nothing passed to GDB, but a dozen popup windows "Bad argument passed to Visual C++ runtime" and again an clean exit (after closing all of them). This one was reproducible and made a beautiful backtrace under Linux.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon