Ian Collins wrote
> William James wrote:
> > On 6/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >>
> >> >Are there plans to integrate valgrind in solaris? Linux has a large
> >> >lead in code quality because they have tools like valgrind. I think
> >> >Solaris needs such a tool, too
> >>
> >> I have not seen a code quality lead for Linux, certainly not a large
> >> one.
> >>
> >> One tool which wans't mentioned was dbx' runtime checker, "rtc"
> >> which does quite a bit.
> >
> > (dbx) check -all
> > ...
> > dbx: warning: access checking is not available on x86
> >
> Upgrade to  Studio 12:
> 
> (dbx) check -all
> access checking - ON
> memuse checking - ON

Did you actually try to use the new Studio12
x86 "rtc" for something more complex than
"hello world" type programs?

I get debug target crashes for quite a few libc.so 
function calls - crashes like this:

% cat execname.c
#include <stdlib.h>

int
main(int argc, char **argv)
{
        const char *exe_nm = getexecname();
}

% cc -g -o execname execname.c

% dbx -C execname
For information about new features see `help changes'
To remove this message, put `dbxenv suppress_startup_message 7.6' in your .dbxrc
Reading execname
Reading ld.so.1
Reading rtcapihook.so
Reading libc.so.1
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
(dbx) check -all
access checking - ON
memuse checking - ON
(dbx) run
Running: execname 
(process id 3007)
RTC: Enabling Error Checking...
RTC: Running program...
Reading disasm.so
terminating signal 11 SIGSEGV
(dbx) q
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to