Print

Print


Adding valgrind output:

```
==17216== Invalid write of size 1
==17216==    at 0x4C2EA73: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1035)
==17216==    by 0x5C1EF5F: XrdOucString::replace(char const*, char const*, int, int) (XrdOucString.cc:808)
==17216==    by 0x400B0D: main (xrd_api_test.cc:13)
==17216==  Address 0xa4b57df is 1 bytes before a block of size 9 alloc'd
==17216==    at 0x4C2C1C1: realloc (vg_replace_malloc.c:836)
==17216==    by 0x5C1DFE8: XrdOucString::bufalloc(int) (XrdOucString.cc:121)
==17216==    by 0x5C1F03A: XrdOucString::replace(char const*, char const*, int, int) (XrdOucString.cc:770)
==17216==    by 0x400B0D: main (xrd_api_test.cc:13)
==17216== 
==17216== Invalid write of size 1
==17216==    at 0x4C2E798: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1035)
==17216==    by 0x5C1EF5F: XrdOucString::replace(char const*, char const*, int, int) (XrdOucString.cc:808)
==17216==    by 0x400B0D: main (xrd_api_test.cc:13)
==17216==  Address 0xa4b57dd is 3 bytes before a block of size 9 alloc'd
==17216==    at 0x4C2C1C1: realloc (vg_replace_malloc.c:836)
==17216==    by 0x5C1DFE8: XrdOucString::bufalloc(int) (XrdOucString.cc:121)
==17216==    by 0x5C1F03A: XrdOucString::replace(char const*, char const*, int, int) (XrdOucString.cc:770)
==17216==    by 0x400B0D: main (xrd_api_test.cc:13)
==17216== 
==17216== Invalid write of size 1
==17216==    at 0x4C2E693: [log in to unmask] (vg_replace_strmem.c:1034)
==17216==    by 0x5C1EF42: XrdOucString::replace(char const*, char const*, int, int) (XrdOucString.cc:806)
==17216==    by 0x400B0D: main (xrd_api_test.cc:13)
==17216==  Address 0xa4b57dd is 3 bytes before a block of size 9 alloc'd
==17216==    at 0x4C2C1C1: realloc (vg_replace_malloc.c:836)
==17216==    by 0x5C1DFE8: XrdOucString::bufalloc(int) (XrdOucString.cc:121)
==17216==    by 0x5C1F03A: XrdOucString::replace(char const*, char const*, int, int) (XrdOucString.cc:770)
==17216==    by 0x400B0D: main (xrd_api_test.cc:13)
==17216== 
==17216== Invalid write of size 1
==17216==    at 0x4C2E58C: [log in to unmask] (vg_replace_strmem.c:1034)
==17216==    by 0x5C1EF42: XrdOucString::replace(char const*, char const*, int, int) (XrdOucString.cc:806)
==17216==    by 0x400B0D: main (xrd_api_test.cc:13)
==17216==  Address 0xa4b57d9 is 7 bytes before a block of size 9 alloc'd
==17216==    at 0x4C2C1C1: realloc (vg_replace_malloc.c:836)
==17216==    by 0x5C1DFE8: XrdOucString::bufalloc(int) (XrdOucString.cc:121)
==17216==    by 0x5C1F03A: XrdOucString::replace(char const*, char const*, int, int) (XrdOucString.cc:770)
==17216==    by 0x400B0D: main (xrd_api_test.cc:13)
==17216== 
==17216== 
==17216== Process terminating with default action of signal 11 (SIGSEGV)
==17216==  Bad permissions for mapped region at address 0xA466FFF
==17216==    at 0x4C2EA73: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1035)
==17216==    by 0x5C1EF5F: XrdOucString::replace(char const*, char const*, int, int) (XrdOucString.cc:808)
==17216==    by 0x400B0D: main (xrd_api_test.cc:13)
--17216-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
--17216-- si_code=128;  Faulting address: 0x0;  sp: 0x1002ba9c10
```


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/1094#issuecomment-575651839

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1