// does leak. But, we can't do much about it, and it's not a disaster,
// so we just let it slide without aborting or telling the user.
+ // Finally, to reduce the endless nuisance of multiple different names
+ // for "the frame below main()" screwing up the testsuite, change all
+ // known incarnations of said into a single name, "(below main)".
+ if (0==VG_(strcmp)("__libc_start_main", result)
+ || 0==VG_(strcmp)("generic_start_main", result))
+ VG_(strncpy_safely)(result, "(below main)", 13);
+
VGP_POPCC(VgpDemangle);
}
Jump to the invalid address stated on the next line
at 0x........: ???
- by 0x........: __libc_start_main (in /...libc...)
+ by 0x........: (below main) (in /...libc...)
Address 0x........ is not stack'd, malloc'd or (recently) free'd
Process terminating with default action of signal 11 (SIGSEGV)
Access not within mapped region at address 0x........
at 0x........: ???
- by 0x........: __libc_start_main (in /...libc...)
+ by 0x........: (below main) (in /...libc...)
ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
malloc/free: in use at exit: 0 bytes in 0 blocks.
Jump to the invalid address stated on the next line
at 0x........: ???
- by 0x........: __libc_start_main (in /...libc...)
+ by 0x........: (below main) (in /...libc...)
Address 0x........ is not stack'd, malloc'd or (recently) free'd
Signal caught, as expected
Syscall param socketcall.getsockname(name) points to unaddressable byte(s)
at 0x........: getsockname (in /...libc...)
- by 0x........: __libc_start_main (in /...libc...)
+ by 0x........: (below main) (in /...libc...)
Address 0x........ is not stack'd, malloc'd or (recently) free'd
Syscall param socketcall.getsockname(namelen_in) points to unaddressable byte(s)
at 0x........: getsockname (in /...libc...)
- by 0x........: __libc_start_main (in /...libc...)
+ by 0x........: (below main) (in /...libc...)
Address 0x........ is not stack'd, malloc'd or (recently) free'd
getsockname(1) failed
getsockname(2) failed
Syscall param execve(filename) points to unaddressable byte(s)
at 0x........: execve (in /...libc...)
- by 0x........: __libc_start_main (in /...libc...)
+ by 0x........: (below main) (in /...libc...)
Address 0x........ is not stack'd, malloc'd or (recently) free'd
Syscall param execve(argv[i]) points to unaddressable byte(s)
at 0x........: execve (in /...libc...)
- by 0x........: __libc_start_main (in /...libc...)
+ by 0x........: (below main) (in /...libc...)
Address 0x........ is not stack'd, malloc'd or (recently) free'd
Syscall param execve(envp[i]) points to unaddressable byte(s)
at 0x........: execve (in /...libc...)
- by 0x........: __libc_start_main (in /...libc...)
+ by 0x........: (below main) (in /...libc...)
Address 0x........ is not stack'd, malloc'd or (recently) free'd
Syscall param execve(filename) points to unaddressable byte(s)
at 0x........: execve (in /...libc...)
- by 0x........: __libc_start_main (in /...libc...)
+ by 0x........: (below main) (in /...libc...)
Address 0x........ is not stack'd, malloc'd or (recently) free'd
Syscall param write(buf) points to uninitialised byte(s)
at 0x........: write (in /...libc...)
- by 0x........: __libc_start_main (in /...libc...)
+ by 0x........: (below main) (in /...libc...)
Address 0x........ is 0 bytes inside a block of size 10 alloc'd
at 0x........: malloc (vg_replace_malloc.c:...)
by 0x........: main (fwrite.c:7)
-----------------------------------------------------
Syscall param exit_group(exit_code) contains uninitialised byte(s)
at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (in /...libc...)
+ by 0x........: (below main) (in /...libc...)
<frame>
<ip>0x........</ip>
<obj>...</obj>
- <fn>__libc_start_main</fn>
+ <fn>(below main)</fn>
</frame>
</stack>
</error>
Open file descriptor .: /tmp/file
at 0x........: creat (in /...libc...)
- by 0x........: __libc_start_main (in /...libc...)
+ by 0x........: (below main) (in /...libc...)
Open file descriptor .: .
<inherited from parent>
FILE DESCRIPTORS: 5 open at exit.
Open file descriptor .: /dev/null
at 0x........: dup (in /...libc...)
- by 0x........: __libc_start_main (in /...libc...)
+ by 0x........: (below main) (in /...libc...)
Open file descriptor .: /dev/null
at 0x........: open (in /...libc...)
- by 0x........: __libc_start_main (in /...libc...)
+ by 0x........: (below main) (in /...libc...)
Open file descriptor .: .
<inherited from parent>
FILE DESCRIPTORS: 6 open at exit.
Open file descriptor .: /dev/null
at 0x........: dup2 (in /...libc...)
- by 0x........: __libc_start_main (in /...libc...)
+ by 0x........: (below main) (in /...libc...)
Open file descriptor .: /dev/null
at 0x........: dup2 (in /...libc...)
- by 0x........: __libc_start_main (in /...libc...)
+ by 0x........: (below main) (in /...libc...)
Open file descriptor .: /dev/null
at 0x........: open (in /...libc...)
- by 0x........: __libc_start_main (in /...libc...)
+ by 0x........: (below main) (in /...libc...)
Open file descriptor .: .
<inherited from parent>
Open file descriptor .: /dev/null
at 0x........: open (in /...libc...)
- by 0x........: __libc_start_main (in /...libc...)
+ by 0x........: (below main) (in /...libc...)
Open file descriptor .: .
<inherited from parent>
FILE DESCRIPTORS: 4 open at exit.
Open file descriptor .: /dev/null
at 0x........: open (in /...libc...)
- by 0x........: __libc_start_main (in /...libc...)
+ by 0x........: (below main) (in /...libc...)
Open file descriptor .: .
<inherited from parent>
FILE DESCRIPTORS: 5 open at exit.
Open file descriptor .:
at 0x........: pipe (in /...libc...)
- by 0x........: __libc_start_main (in /...libc...)
+ by 0x........: (below main) (in /...libc...)
Open file descriptor .:
at 0x........: pipe (in /...libc...)
- by 0x........: __libc_start_main (in /...libc...)
+ by 0x........: (below main) (in /...libc...)
Open file descriptor .: .
<inherited from parent>
FILE DESCRIPTORS: 5 open at exit.
Open AF_UNIX socket .: <unknown>
at 0x........: socketpair (in /...libc...)
- by 0x........: main (fdleak_socketpair.c:15)
+ by 0x........: (below main) (in /...libc...)
Open AF_UNIX socket .: <unknown>
at 0x........: socketpair (in /...libc...)
- by 0x........: main (fdleak_socketpair.c:15)
+ by 0x........: (below main) (in /...libc...)
Open file descriptor .: .
<inherited from parent>