https://bugs.winehq.org/show_bug.cgi?id=46395
Bug ID: 46395 Summary: valgrind shows an invalid free in ws2_32/tests/sock.c Product: Wine Version: 4.0-rc4 Hardware: x86 OS: Linux Status: NEW Keywords: download, source, testcase, valgrind Severity: normal Priority: P2 Component: winsock Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com Distribution: Gentoo
../../../tools/runtest -q -P wine -T ../../.. -M ws2_32.dll -p ws2_32_test.exe.so sock && touch sock.ok ==30640== Invalid free() / delete / delete[] / realloc() ==30640== at 0x7BC48471: notify_realloc (heap.c:276) ==30640== by 0x7BC4BD90: RtlReAllocateHeap (heap.c:1906) ==30640== by 0x4BDC310: WS_get_local_ips (socket.c:6309) ==30640== by 0x4BDFBA4: WS_gethostbyname (socket.c:6392) ==30640== by 0x4A95ADD: test_getsockname (sock.c:4621) ==30640== by 0x4AADC3A: func_sock (sock.c:11530) ==30640== by 0x4AAE05F: run_test (test.h:617) ==30640== by 0x4AAEA9D: main (test.h:701) ==30640== Address 0x4a2aac8 is 0 bytes after a recently re-allocated block of size 0 alloc'd ==30640== at 0x7BC48394: notify_alloc (heap.c:260) ==30640== by 0x7BC4B8B8: RtlAllocateHeap (heap.c:1726) ==30640== by 0x4BDC210: WS_get_local_ips (socket.c:6275) ==30640== by 0x4BDFBA4: WS_gethostbyname (socket.c:6392) ==30640== by 0x4A95ADD: test_getsockname (sock.c:4621) ==30640== by 0x4AADC3A: func_sock (sock.c:11530) ==30640== by 0x4AAE05F: run_test (test.h:617) ==30640== by 0x4AAEA9D: main (test.h:701) ==30640==
https://bugs.winehq.org/show_bug.cgi?id=46395
--- Comment #1 from Austin English austinenglish@gmail.com --- Actually, 2 of them: ==30640== Invalid free() / delete / delete[] / realloc() ==30640== at 0x7BC48471: notify_realloc (heap.c:276) ==30640== by 0x7BC4BCD0: RtlReAllocateHeap (heap.c:1870) ==30640== by 0x4BDC310: WS_get_local_ips (socket.c:6309) ==30640== by 0x4BDFBA4: WS_gethostbyname (socket.c:6392) ==30640== by 0x4A974D7: test_gethostname (sock.c:4869) ==30640== by 0x4AADC5D: func_sock (sock.c:11537) ==30640== by 0x4AAE05F: run_test (test.h:617) ==30640== by 0x4AAEA9D: main (test.h:701) ==30640== Address 0x49252e0 is 0 bytes after a recently re-allocated block of size 0 alloc'd ==30640== at 0x7BC48394: notify_alloc (heap.c:260) ==30640== by 0x7BC4B8B8: RtlAllocateHeap (heap.c:1726) ==30640== by 0x4BDC210: WS_get_local_ips (socket.c:6275) ==30640== by 0x4BDFBA4: WS_gethostbyname (socket.c:6392) ==30640== by 0x4A974D7: test_gethostname (sock.c:4869) ==30640== by 0x4AADC5D: func_sock (sock.c:11537) ==30640== by 0x4AAE05F: run_test (test.h:617) ==30640== by 0x4AAEA9D: main (test.h:701) ==30640==
different test, but looks like the same issue.