Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.os2.programmer.misc > #1609
| From | Paul Ratcliffe <abuse@orac12.clara34.co56.uk78> |
|---|---|
| Newsgroups | comp.os.os2.programmer.misc |
| Subject | Re: ICAT 'XCPT_BAD_ACCESS' - what does it mean? |
| Date | 2018-01-03 19:26 +0000 |
| Message-ID | <slrnp4qbj6.94o.abuse@news.pr.network> (permalink) |
| References | <p1vsob$l1p$1@dont-email.me> <11p86vVJT4Oe-pn2-bkgdMpp7SV6j@slamain> <p252th$6o6$1@dont-email.me> <11p86vVJT4Oe-pn2-yeSdUENdor3Y@slamain> <p2ag4l$sck$3@dont-email.me> |
On Sun, 31 Dec 2017 12:02:50 +0100, Andi B. <andi.b@gmx.net> wrote:
> padim=0x00494130
> padim->szModuleBaseName=0x00494138
> Trap 13 (0DH) - General Protection Fault 0000
> eax=61767264 ebx=61767264 ecx=61767264 edx=00000008 esi=00000000 edi=00000008
> eip=0006427c esp=000f71d0 ebp=000f71ec iopl=0 rf -- -- nv up ei pl nz na po nc
> cs=005b ss=0053 ds=0053 es=0053 fs=150b gs=0000 cr2=414c5758 cr3=00225000 p=00
> 005b:0006427c 8a19 mov bl,byte ptr [ecx] ds:61767264=invalid
> ##k
> 005b:000642ef 01010101 01010101 01010101 01010101 _get_stack_trace + 5f
> 005b:0005ff0e 00480000 004970e4 000f7244 000665c4 _int_uheap_verify + 6de
> 005b:0005fc1d 00480000 00000000 00081f3c 000001a9 _int_uheap_verify + 3ed
> 005b:00061fbb 00480000 00081f3c 000001a9 00000001 _chk_if_heap + bb
> 005b:0005a537 00494138 000f760c 00081f3c 000001a9 _debug_strcpy + 47
> 005b:73656363 00632e73 6d75645f 6e6f4370 7463656e
That value in ECX is ASCII from somewhere ("drva").
You need to work out how it got there from the preceding code and then why.
I expect there's a buffer overrun somewhere corrupting something, but it can be
a nightmare to find, even with a decent debugger.
FWIW, using strcpy() is almost bound to end up with problems like this at
some point. You really shouldn't be using it any more.
Back to comp.os.os2.programmer.misc | Previous | Next — Previous in thread | Find similar
ICAT 'XCPT_BAD_ACCESS' - what does it mean? "Andi B." <andi.b@gmx.net> - 2017-12-27 11:30 +0100
Re: ICAT 'XCPT_BAD_ACCESS' - what does it mean? Lars Erdmann <lars.erdmann@arcor.de> - 2017-12-27 13:53 +0100
Re: ICAT 'XCPT_BAD_ACCESS' - what does it mean? Lars Erdmann <lars.erdmann@arcor.de> - 2017-12-27 13:55 +0100
Re: ICAT 'XCPT_BAD_ACCESS' - what does it mean? "Steven Levine" <steve53@nomail.earthlink.net> - 2017-12-27 14:23 -0600
Re: ICAT 'XCPT_BAD_ACCESS' - what does it mean? "Andi B." <andi.b@gmx.net> - 2017-12-29 10:46 +0100
Re: ICAT 'XCPT_BAD_ACCESS' - what does it mean? "Steven Levine" <steve53@nomail.earthlink.net> - 2017-12-30 12:05 -0600
Re: ICAT 'XCPT_BAD_ACCESS' - what does it mean? "Andi B." <andi.b@gmx.net> - 2017-12-31 12:02 +0100
Re: ICAT 'XCPT_BAD_ACCESS' - what does it mean? Lars Erdmann <lars.erdmann@arcor.de> - 2017-12-31 21:30 +0100
Re: ICAT 'XCPT_BAD_ACCESS' - what does it mean? Paul Ratcliffe <abuse@orac12.clara34.co56.uk78> - 2018-01-03 19:26 +0000
csiph-web