Should access checking be working on x64?

When I tried this:

#include <stdlib.h>

int main()

{

char *p = malloc( 2 );

*p++ = 'a';

*p++ = 'a';

*p++ = 'a';

return 0;

}

I get

dbx a.out

For information about new features see `help changes'

To remove this message, put `dbxenv suppress_startup_message 7.6' in your .dbxrc

Reading a.out

Reading ld.so.1

Reading libc.so.1

(dbx) check -access

access checking - ON

(dbx) run

Running: a.out

(process id 28329)

Reading rtcapihook.so

Reading libdl.so.1

Reading rtcaudit.so

Reading libmapmalloc.so.1

Reading libgen.so.1

Reading libm.so.2

Reading rtcboot.so

Reading librtc.so

RTC: Enabling Error Checking...

RTC: Running program...

terminating signal 11 SIGSEGV

Which isn't what I was expecting...

[917 byte] By [Zootlea] at [2007-11-27 3:19:56]
# 1

Not in early access version. Stable version will support checking 64-bit programs, it should be available very soon.

However, this is strange that you're getting SEGV. Here's what I got on OpenSolaris machine with Sun Studio 12 EA:

(dbx) check -access

dbx: warning: access checking is not available on AMD64

access checking - OFF

Latest version will issue smth like

...

RTC: Enabling Error Checking...

RTC: Running program...

Reading disasm.so

Write to unallocated (wua):

Attempting to write 1 byte at address 0x410fea

which is just past heap block of size 2 bytes at 0x410fe8

This block was allocated from:

[1] main() at line 5 in "a.c"

stopped in main at line 9 in file "a.c"

9*p++ = 'a';

MaximKartasheva at 2007-7-12 8:22:37 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2
Where you using the same version of dbx? dbx -VSun Dbx Debugger 7.6 SunOS_i386 Build40_1 2007/02/08 uname -aSunOS un-eng5 5.11 snv_62 i86pc i386 i86pcIan.
Zootlea at 2007-7-12 8:22:37 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3
Same version of dbx:$ dbx -VSun Dbx Debugger 7.6 SunOS_i386 Build40_1 2007/02/08Next version of Solaris:$ uname -aSunOS ... 5.11 NexentaOS_20070402 i86pc i386 i86pc Solaris(this is based on OpenSolaris build 63)
MaximKartasheva at 2007-7-12 8:22:37 > top of Java-index,Development Tools,Solaris and Linux Development Tools...