Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.msdos.programmer > #1442
| From | Johann Klammer <klammerj@NOSPAM.a1.net> |
|---|---|
| Newsgroups | comp.os.msdos.programmer |
| Subject | Re: Stack overflow: how to monitor stack usage? |
| Date | 2014-07-25 13:18 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <lqtedg$1n2$1@speranza.aioe.org> (permalink) |
| References | <53d15c6d$0$2178$426a34cc@news.free.fr> <lqrp2q$8ij$1@speranza.aioe.org> <53d1f727$0$1977$426a74cc@news.free.fr> <lqta7u$m48$1@speranza.aioe.org> <53d23613$0$2373$426a74cc@news.free.fr> |
On 07/25/2014 12:48 PM, Mateusz Viste wrote: > On 07/25/2014 12:07 PM, Johann Klammer wrote: >> I see you are calling the previous handler to keep sys timing >> consistent. I believe you are supposed to use chain_intr or sthg >> instead... because of the iret which takes a bit more off the stack than >> just a return address... register image... (It' ll _under_run) > > What you say makes a lot of sense. I can see indeed how daisy-chaining > interrupt routines could lead to stack corruption. > > I looked into my Turbo C reference documentation, and unfortunately it > seem there is no 'chaining' function that would allow to call another > INT handler in a clean way. > > Also, all INT-handling functions I could find on the internet (and > written for Turbo C) do exactly like I do - calling the original handler > 'as-is'. So I wonder if maybe Turbo C is supposed to detect such > situation and apply some hidden magic... > > Here I found a sad statement: > http://stanislavs.org/helppc/_chain_intr.html > > "no corresponding function in Turbo C" > > But again, I'm not sure how to understand this... Does it mean > "impossible to do", or "should work anyway"? Or maybe I am supposed to > manually correct the stack pointer and/or base pointer myself? This I > can only keep guessing. :/ > > Mateusz Not true. Diomidis Spinellis DOS TRACE utility makes use of it... You can find the code on the net...
Back to comp.os.msdos.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Stack overflow: how to monitor stack usage? Mateusz Viste <mateusz.viste@localhost> - 2014-07-24 21:20 +0200
Re: Stack overflow: how to monitor stack usage? Johann Klammer <klammerj@NOSPAM.a1.net> - 2014-07-24 22:08 +0200
Re: Stack overflow: how to monitor stack usage? Mateusz Viste <mateusz.viste@localhost> - 2014-07-25 08:20 +0200
Re: Stack overflow: how to monitor stack usage? "Rod Pemberton" <dont_use_email@xnothavet.cqm> - 2014-07-25 04:34 -0400
Re: Stack overflow: how to monitor stack usage? Mateusz Viste <mateusz.viste@localhost> - 2014-07-25 12:53 +0200
Re: Stack overflow: how to monitor stack usage? Johann Klammer <klammerj@NOSPAM.a1.net> - 2014-07-25 12:07 +0200
Re: Stack overflow: how to monitor stack usage? Mateusz Viste <mateusz.viste@localhost> - 2014-07-25 12:48 +0200
Re: Stack overflow: how to monitor stack usage? Johann Klammer <klammerj@NOSPAM.a1.net> - 2014-07-25 13:18 +0200
Re: Stack overflow: how to monitor stack usage? Mateusz Viste <mateusz.viste@localhost> - 2014-07-25 14:06 +0200
Re: Stack overflow: how to monitor stack usage? Johann Klammer <klammerj@NOSPAM.a1.net> - 2014-07-25 14:48 +0200
Re: Stack overflow: how to monitor stack usage? Mateusz Viste <mateusz.viste@localhost> - 2014-07-25 15:03 +0200
Re: Stack overflow: how to monitor stack usage? Johann Klammer <klammerj@NOSPAM.a1.net> - 2014-07-25 14:59 +0200
Re: Stack overflow: how to monitor stack usage? Mateusz Viste <mateusz.viste@localhost> - 2014-07-25 15:08 +0200
Re: Stack overflow: how to monitor stack usage? Sjouke Burry <burrynulnulfour@ppllaanneett.nnll> - 2014-07-25 00:24 +0200
Re: Stack overflow: how to monitor stack usage? Mateusz Viste <mateusz.viste@localhost> - 2014-07-25 08:32 +0200
Re: Stack overflow: how to monitor stack usage? "Rod Pemberton" <dont_use_email@xnothavet.cqm> - 2014-07-25 01:42 -0400
Re: Stack overflow: how to monitor stack usage? Mateusz Viste <mateusz.viste@localhost> - 2014-07-25 08:45 +0200
Re: Stack overflow: how to monitor stack usage? Mateusz Viste <mateusz.viste@localhost> - 2014-07-25 21:26 +0200
Re: Stack overflow: how to monitor stack usage? "Rod Pemberton" <dont_use_email@xnothavet.cqm> - 2014-07-25 16:28 -0400
csiph-web