Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug-2] Fix valgrind version introducing invalid read of size 8 #85

Closed
NiskuT opened this issue Nov 25, 2022 · 1 comment · Fixed by #86
Closed

[bug-2] Fix valgrind version introducing invalid read of size 8 #85

NiskuT opened this issue Nov 25, 2022 · 1 comment · Fixed by #86
Assignees
Labels
bug Something isn't working

Comments

@NiskuT
Copy link
Owner

NiskuT commented Nov 25, 2022

No description provided.

@NiskuT NiskuT added the bug Something isn't working label Nov 25, 2022
@NiskuT NiskuT added this to the Minor milestone 2.2 milestone Nov 25, 2022
@NiskuT NiskuT self-assigned this Nov 25, 2022
@NiskuT
Copy link
Owner Author

NiskuT commented Nov 25, 2022

==4056== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==4056== Using Valgrind-3.16.1 and LibVEX; rerun with -h for copyright info
==4056== Command: ./cl
==4056== 
==4056== Invalid read of size 8
==4056==    at 0x401D704: strncmp (strcmp.S:175)
==4056==    by 0x400604D: is_dst (dl-load.c:209)
==4056==    by 0x4008566: _dl_dst_count (dl-load.c:246)
==4056==    by 0x4008757: expand_dynamic_string_token (dl-load.c:388)
==4056==    by 0x40088D1: fillin_rpath.isra.0 (dl-load.c:460)
==4056==    by 0x4008BE1: decompose_rpath (dl-load.c:631)
==4056==    by 0x4009745: cache_rpath (dl-load.c:673)
==4056==    by 0x4009745: cache_rpath (dl-load.c:654)
==4056==    by 0x4009745: _dl_map_object (dl-load.c:2074)
==4056==    by 0x400DDC0: openaux (dl-deps.c:64)
==4056==    by 0x4C0EA8F: _dl_catch_exception (dl-error-skeleton.c:208)
==4056==    by 0x400E138: _dl_map_object_deps (dl-deps.c:248)
==4056==    by 0x4013DAA: dl_open_worker (dl-open.c:571)
==4056==    by 0x4C0EA8F: _dl_catch_exception (dl-error-skeleton.c:208)
==4056==  Address 0x59c2fe9 is 9 bytes inside a block of size 15 alloc'd
==4056==    at 0x483877F: malloc (vg_replace_malloc.c:307)
==4056==    by 0x401C26A: strdup (strdup.c:42)
==4056==    by 0x4008B74: decompose_rpath (dl-load.c:606)
==4056==    by 0x4009745: cache_rpath (dl-load.c:673)
==4056==    by 0x4009745: cache_rpath (dl-load.c:654)
==4056==    by 0x4009745: _dl_map_object (dl-load.c:2074)
==4056==    by 0x400DDC0: openaux (dl-deps.c:64)
==4056==    by 0x4C0EA8F: _dl_catch_exception (dl-error-skeleton.c:208)
==4056==    by 0x400E138: _dl_map_object_deps (dl-deps.c:248)
==4056==    by 0x4013DAA: dl_open_worker (dl-open.c:571)
==4056==    by 0x4C0EA8F: _dl_catch_exception (dl-error-skeleton.c:208)
==4056==    by 0x40138F9: _dl_open (dl-open.c:837)
==4056==    by 0x545E257: dlopen_doit (dlopen.c:66)
==4056==    by 0x4C0EA8F: _dl_catch_exception (dl-error-skeleton.c:208)
==4056== 
==4056== Invalid read of size 8
==4056==    at 0x401D704: strncmp (strcmp.S:175)
==4056==    by 0x400604D: is_dst (dl-load.c:209)
==4056==    by 0x400861E: _dl_dst_substitute (dl-load.c:288)
==4056==    by 0x40088D1: fillin_rpath.isra.0 (dl-load.c:460)
==4056==    by 0x4008BE1: decompose_rpath (dl-load.c:631)
==4056==    by 0x4009745: cache_rpath (dl-load.c:673)
==4056==    by 0x4009745: cache_rpath (dl-load.c:654)
==4056==    by 0x4009745: _dl_map_object (dl-load.c:2074)
==4056==    by 0x400DDC0: openaux (dl-deps.c:64)
==4056==    by 0x4C0EA8F: _dl_catch_exception (dl-error-skeleton.c:208)
==4056==    by 0x400E138: _dl_map_object_deps (dl-deps.c:248)
==4056==    by 0x4013DAA: dl_open_worker (dl-open.c:571)
==4056==    by 0x4C0EA8F: _dl_catch_exception (dl-error-skeleton.c:208)
==4056==    by 0x40138F9: _dl_open (dl-open.c:837)
==4056==  Address 0x59c2fe9 is 9 bytes inside a block of size 15 alloc'd
==4056==    at 0x483877F: malloc (vg_replace_malloc.c:307)
==4056==    by 0x401C26A: strdup (strdup.c:42)
==4056==    by 0x4008B74: decompose_rpath (dl-load.c:606)
==4056==    by 0x4009745: cache_rpath (dl-load.c:673)
==4056==    by 0x4009745: cache_rpath (dl-load.c:654)
==4056==    by 0x4009745: _dl_map_object (dl-load.c:2074)
==4056==    by 0x400DDC0: openaux (dl-deps.c:64)
==4056==    by 0x4C0EA8F: _dl_catch_exception (dl-error-skeleton.c:208)
==4056==    by 0x400E138: _dl_map_object_deps (dl-deps.c:248)
==4056==    by 0x4013DAA: dl_open_worker (dl-open.c:571)
==4056==    by 0x4C0EA8F: _dl_catch_exception (dl-error-skeleton.c:208)
==4056==    by 0x40138F9: _dl_open (dl-open.c:837)
==4056==    by 0x545E257: dlopen_doit (dlopen.c:66)
==4056==    by 0x4C0EA8F: _dl_catch_exception (dl-error-skeleton.c:208)
==4056== 
Setting vertical sync not supported
It works !
==4056== 
==4056== HEAP SUMMARY:
==4056==     in use at exit: 186,624 bytes in 2,619 blocks
==4056==   total heap usage: 24,063 allocs, 21,444 frees, 73,083,389 bytes allocated
==4056== 
==4056== LEAK SUMMARY:
==4056==    definitely lost: 5,419 bytes in 256 blocks
==4056==    indirectly lost: 0 bytes in 0 blocks
==4056==      possibly lost: 0 bytes in 0 blocks
==4056==    still reachable: 181,205 bytes in 2,363 blocks
==4056==         suppressed: 0 bytes in 0 blocks
==4056== Rerun with --leak-check=full to see details of leaked memory
==4056== 
==4056== For lists of detected and suppressed errors, rerun with: -s
==4056== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)

@NiskuT NiskuT linked a pull request Nov 25, 2022 that will close this issue
@lucas-mrq lucas-mrq changed the title [BUG-2] Fix valgrind version introducing invalid read of size 8 [bug-2] Fix valgrind version introducing invalid read of size 8 Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant