https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88246

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |law at redhat dot com

--- Comment #7 from Jeffrey A. Law <law at redhat dot com> ---
Removing -gtoggle from the compilation of find-file.c got me a bit more info:

==57496== 
==57496== Invalid write of size 1
==57496==    at 0x1010E18: find_a_file(path_prefix*, char const*, int)
(file-find.c:81)
==57496==    by 0x1005E31: main (in
/home/nfs/law/jenkins/workspace/s390x-linux-gnu/obj/gcc/gcc/collect2)
==57496==  Address 0x4ad08ef is 0 bytes after a block of size 31 alloc'd
==57496==    at 0x4831090: malloc (vg_replace_malloc.c:299)
==57496==    by 0x10806DF: xmalloc (in
/home/nfs/law/jenkins/workspace/s390x-linux-gnu/obj/gcc/gcc/collect2)
==57496==    by 0x1010DEF: find_a_file(path_prefix*, char const*, int)
(file-find.c:47)
==57496==    by 0x1005E31: main (in
/home/nfs/law/jenkins/workspace/s390x-linux-gnu/obj/gcc/gcc/collect2)
==57496== 
==57496== Invalid write of size 1
==57496==    at 0x1010E30: find_a_file(path_prefix*, char const*, int)
(file-find.c:82)
==57496==    by 0x1005E31: main (in
/home/nfs/law/jenkins/workspace/s390x-linux-gnu/obj/gcc/gcc/collect2)
==57496==  Address 0x4ad08fb is 12 bytes after a block of size 31 alloc'd
==57496==    at 0x4831090: malloc (vg_replace_malloc.c:299)
==57496==    by 0x10806DF: xmalloc (in
/home/nfs/law/jenkins/workspace/s390x-linux-gnu/obj/gcc/gcc/collect2)
==57496==    by 0x1010DEF: find_a_file(path_prefix*, char const*, int)
(file-find.c:47)
==57496==    by 0x1005E31: main (in
/home/nfs/law/jenkins/workspace/s390x-linux-gnu/obj/gcc/gcc/collect2)
==57496== 
==57496== Syscall param stat(file_name) points to unaddressable byte(s)
==57496==    at 0x49FBD90: _xstat (in /usr/lib64/libc-2.26.so)
==57496==    by 0x1010E3D: stat (stat.h:451)
==57496==    by 0x1010E3D: find_a_file(path_prefix*, char const*, int)
(file-find.c:84)
==57496==    by 0x1005E31: main (in
/home/nfs/law/jenkins/workspace/s390x-linux-gnu/obj/gcc/gcc/collect2)
==57496==  Address 0x4ad08fb is 12 bytes after a block of size 31 alloc'd
==57496==    at 0x4831090: malloc (vg_replace_malloc.c:299)
==57496==    by 0x10806DF: xmalloc (in
/home/nfs/law/jenkins/workspace/s390x-linux-gnu/obj/gcc/gcc/collect2)
==57496==    by 0x1010DEF: find_a_file(path_prefix*, char const*, int)
(file-find.c:47)
==57496==    by 0x1005E31: main (in
/home/nfs/law/jenkins/workspace/s390x-linux-gnu/obj/gcc/gcc/collect2)
==57496==

Reply via email to