Operating System - HP-UX
1777283 Members
2453 Online
109066 Solutions
New Discussion

si-code 2 error after run 'info leaks' in gdb.

 
jinseo1224
New Member

si-code 2 error after run 'info leaks' in gdb.

I want to check memory leak and used these command in gdb

 

gdb attach processID

(gdb)set heap-check leaks on

(gdb)set heap-check bounds on

(gdb)set heap-check free on

(gdb)set heap-check string on

(gdb)set heap-check scramble on

(gdb)set unwindonsignal on

and...

(gdb)info leaks

 

but it dosen't work with error

what should i do for ?

 

(gdb) info leaks info_leaks

Scanning for memory leaks...

Program received signal SIGSEGV, Segmentation fault 

si_code: 2 - SEGV_ACCERR - Invalid Permissions for object.

mark () at ../../../Src/gnu/gdb/infrtc.c:4525

4525   ../../../Src/gnu/gdb/infrtc.c: No such file or directory.       

in ../../../Src/gnu/gdb/infrtc.c

 

Program terminated with signal SIGSEGV, Segmentation fault.

The program no longer exists.

No stack.

(gdb)

 

1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: si-code 2 error after run 'info leaks' in gdb.

>(gdb)info leaks

 

How long does it run before you do this command?  You may have to do it more often.

What version of gdb do you have?  The latest is 6.2