Re: Mysterious crash in LIBC06B4.DLL



On 2009-08-18, Alex Taylor <mail.me@xxxxxxxxxxxxxxxx> wrote:
Basically, one of the functions deep in the TiMidity engine ("dumpstring"
in readmidi.c, line 477) is calling the function ctl->cmsg(), which is a
pointer to the interface-defined message output function. It calls this
function without trouble, the function completes... and then it blows up
the instant it tries to return to the calling procedure.

As expected with stack memory overrun. You remember that the return
address is stored on top of (local) stack?

I get only: "20202020 Invalid address", and the call stack shown by
IPMD at this point is totally empty.

Spaces overrun the return address.

The thing is, it calls this ctl->cmsg function in many other circumstances
without the slightest trouble. Why this particular circumstance would
blow it up is beyond me.

On entry to cmsg(), set a watchpoint for the current bottom of stack.
This will show you WHO is stomping on stack...

Hope this helps,
Ilya
.



Relevant Pages

  • Re: How do you play this WSOP hand? (What actually happened)
    ... The raiser reluctantly called. ... It's hard to fold QQ early on, particularly with 3000 chips in a stack. ... If I'm calling to spike a set and I don't, ...
    (rec.gambling.poker)
  • Re: final table
    ... It's a novel strategy - a big stack at a final table calling a raise ... There's a side pot, he's out of position, so the other guy is likely to ...
    (rec.gambling.poker)
  • Re: Memory management strategy
    ... >>calling the routine, as the registers can sometimes be used directly ... > The use of registers instead of the stack doesn't need inlining. ... short rather than int or long, or an array of float rather than double ...
    (comp.lang.c)
  • Re: C Compilation..
    ... push the parameters right to left, and the callee adjusts the stack on return. ... When calling C, do the same, except the caller adjusts the stack. ... Oh, and when Windows calls /your/ functions, you need to save most of the registers. ...
    (comp.lang.c)
  • Re: AAAAAAAARRRRRRRRRRRRRRGGGGGGGGGGGGGGG!!!!!!!!!
    ... Well high risk and reckless are pretty close, ... in 20-25% of his stack in the process. ... but as we see his also flat calling with AQ - I ... It is showing some kind of strenght sure he is not calling with 95o - ...
    (rec.gambling.poker)