public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug dynamic-link/29061] New: valgrind reports a leak in _dl_start
@ 2022-04-13 11:40 galaxyking0419 at gmail dot com
2022-04-13 11:42 ` [Bug dynamic-link/29061] valgrind reports multiple invalid writes galaxyking0419 at gmail dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: galaxyking0419 at gmail dot com @ 2022-04-13 11:40 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=29061
Bug ID: 29061
Summary: valgrind reports a leak in _dl_start
Product: glibc
Version: 2.35
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: dynamic-link
Assignee: unassigned at sourceware dot org
Reporter: galaxyking0419 at gmail dot com
Target Milestone: ---
Using the following basic hello world program and run it with valgrind,
valgrind reports some invalid writes and segfaulted.
Platform:
- Hardware: Raspberry Pi 4B
- OS: Arch Linux ARM (Linux alarmpi 5.15.33-1-rpi-ARCH #1 SMP Mon Apr 11
18:05:07 UTC 2022 armv7l GNU/Linux)
Code:
#include <stdio.h>
int main()
{
puts("Hello World!");
return 0;
}
Valgrind Output:
==25353== Memcheck, a memory error detector
==25353== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==25353== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==25353== Command: ./a.out
==25353==
==25353== Invalid write of size 4
==25353== at 0x401B100: _dl_start (in /usr/lib/ld-linux-armhf.so.3)
==25353== Address 0xbd8fbc14 is on thread 1's stack
==25353== 120 bytes below stack pointer
==25353==
==25353== Invalid write of size 4
==25353== at 0x401236C: _dl_setup_hash (in /usr/lib/ld-linux-armhf.so.3)
==25353== Address 0xbd8fbc28 is on thread 1's stack
==25353== 8 bytes below stack pointer
==25353==
==25353== Invalid write of size 4
==25353== at 0x4019548: _dl_sysdep_start (in /usr/lib/ld-linux-armhf.so.3)
==25353== Address 0xbd8fbbac is on thread 1's stack
==25353== 104 bytes below stack pointer
==25353==
==25353== Invalid write of size 4
==25353== at 0x4015858: __GI___tunables_init (in
/usr/lib/ld-linux-armhf.so.3)
==25353== Address 0xbd8fbb4c is on thread 1's stack
==25353== 96 bytes below stack pointer
==25353==
==25353== Invalid write of size 4
==25353== at 0x4012544: _dl_sort_maps_init (in /usr/lib/ld-linux-armhf.so.3)
==25353== Address 0xbd8fbbbc is on thread 1's stack
==25353== 16 bytes below stack pointer
==25353==
==25353== Invalid write of size 4
==25353== at 0x401FC24: sbrk (in /usr/lib/ld-linux-armhf.so.3)
==25353== Address 0xbd8fbbb0 is on thread 1's stack
==25353== 16 bytes below stack pointer
==25353==
==25353== Invalid write of size 4
==25353== at 0x401BBF0: dl_main (in /usr/lib/ld-linux-armhf.so.3)
==25353== Address 0xbd8fb99c is on thread 1's stack
==25353== 528 bytes below stack pointer
==25353==
==25353== Invalid write of size 4
==25353== at 0x400C488: _dl_new_object (in /usr/lib/ld-linux-armhf.so.3)
==25353== Address 0xbd8fb96c is on thread 1's stack
==25353== 48 bytes below stack pointer
==25353==
==25353== Invalid write of size 4
==25353== at 0x400BF50: __minimal_calloc (in /usr/lib/ld-linux-armhf.so.3)
==25353== Address 0xbd8fb970 is on thread 1's stack
==25353== 16 bytes below stack pointer
==25353==
==25353== Invalid write of size 4
==25353== at 0x400BDF4: __minimal_malloc (in /usr/lib/ld-linux-armhf.so.3)
==25353== Address 0xbd8fb96c is on thread 1's stack
==25353== 24 bytes below stack pointer
==25353==
==25353== Invalid write of size 4
==25353== at 0x400C3B8: _dl_add_to_namespace_list (in
/usr/lib/ld-linux-armhf.so.3)
==25353== Address 0xbd8fb9a0 is on thread 1's stack
==25353== 16 bytes below stack pointer
==25353==
==25353== Invalid write of size 4
==25353== at 0x4019CCC: _dl_discover_osversion (in
/usr/lib/ld-linux-armhf.so.3)
==25353== Address 0xbd8fb7ac is on thread 1's stack
==25353== 496 bytes below stack pointer
==25353==
==25353== Invalid write of size 4
==25353== at 0x400716C: _dl_init_paths (in /usr/lib/ld-linux-armhf.so.3)
==25353== Address 0xbd8fb97c is on thread 1's stack
==25353== 40 bytes below stack pointer
==25353==
==25353== Invalid write of size 4
==25353== at 0x40181F8: _dl_important_hwcaps (in
/usr/lib/ld-linux-armhf.so.3)
==25353== Address 0xbd8fb904 is on thread 1's stack
==25353== 112 bytes below stack pointer
==25353==
==25353== Invalid write of size 4
==25353== at 0x4018CAC: _dl_hwcaps_split_masked (in
/usr/lib/ld-linux-armhf.so.3)
==25353== Address 0xbd8fb918 is on thread 1's stack
==25353== 8 bytes below stack pointer
==25353==
==25353== Invalid write of size 4
==25353== at 0x4018BA0: _dl_hwcaps_split (in /usr/lib/ld-linux-armhf.so.3)
==25353== Address 0xbd8fb900 is on thread 1's stack
==25353== 16 bytes below stack pointer
==25353==
==25353== Invalid write of size 4
==25353== at 0x4018140: copy_hwcaps (in /usr/lib/ld-linux-armhf.so.3)
==25353== Address 0xbd8fb8cc is on thread 1's stack
==25353== 40 bytes below stack pointer
==25353==
==25353== Invalid write of size 4
==25353== at 0x401B074: audit_list_add_dynamic_tag (in
/usr/lib/ld-linux-armhf.so.3)
==25353== Address 0xbd8fb9b0 is on thread 1's stack
==25353== 8 bytes below stack pointer
==25353==
==25353== Invalid write of size 4
==25353== at 0x40164D4: _dl_audit_activity_map (in
/usr/lib/ld-linux-armhf.so.3)
==25353== Address 0xbd8fb970 is on thread 1's stack
==25353== 40 bytes below stack pointer
==25353==
==25353== Invalid write of size 4
==25353== at 0x401BACC: handle_preload_list (in
/usr/lib/ld-linux-armhf.so.3)
==25353== Address 0xbd8fa99c is not stack'd, malloc'd or (recently) free'd
==25353==
==25353==
==25353== Process terminating with default action of signal 11 (SIGSEGV)
==25353== Access not within mapped region at address 0xBD8FA99C
==25353== at 0x401BACC: handle_preload_list (in
/usr/lib/ld-linux-armhf.so.3)
==25353== If you believe this happened as a result of a stack
==25353== overflow in your program's main thread (unlikely but
==25353== possible), you can try to increase the size of the
==25353== main thread stack using the --main-stacksize= flag.
==25353== The main thread stack size used in this run was 8388608.
==25353==
==25353== HEAP SUMMARY:
==25353== in use at exit: 0 bytes in 0 blocks
==25353== total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==25353==
==25353== All heap blocks were freed -- no leaks are possible
==25353==
==25353== For lists of detected and suppressed errors, rerun with: -s
==25353== ERROR SUMMARY: 33 errors from 20 contexts (suppressed: 0 from 0)
Segmentation fault
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug dynamic-link/29061] valgrind reports multiple invalid writes
2022-04-13 11:40 [Bug dynamic-link/29061] New: valgrind reports a leak in _dl_start galaxyking0419 at gmail dot com
@ 2022-04-13 11:42 ` galaxyking0419 at gmail dot com
2022-04-13 12:00 ` schwab@linux-m68k.org
2022-04-13 13:36 ` galaxyking0419 at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: galaxyking0419 at gmail dot com @ 2022-04-13 11:42 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=29061
William Tang <galaxyking0419 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|valgrind reports a leak in |valgrind reports multiple
|_dl_start |invalid writes
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug dynamic-link/29061] valgrind reports multiple invalid writes
2022-04-13 11:40 [Bug dynamic-link/29061] New: valgrind reports a leak in _dl_start galaxyking0419 at gmail dot com
2022-04-13 11:42 ` [Bug dynamic-link/29061] valgrind reports multiple invalid writes galaxyking0419 at gmail dot com
@ 2022-04-13 12:00 ` schwab@linux-m68k.org
2022-04-13 13:36 ` galaxyking0419 at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: schwab@linux-m68k.org @ 2022-04-13 12:00 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=29061
--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
That looks more like bugs in valgrind.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug dynamic-link/29061] valgrind reports multiple invalid writes
2022-04-13 11:40 [Bug dynamic-link/29061] New: valgrind reports a leak in _dl_start galaxyking0419 at gmail dot com
2022-04-13 11:42 ` [Bug dynamic-link/29061] valgrind reports multiple invalid writes galaxyking0419 at gmail dot com
2022-04-13 12:00 ` schwab@linux-m68k.org
@ 2022-04-13 13:36 ` galaxyking0419 at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: galaxyking0419 at gmail dot com @ 2022-04-13 13:36 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=29061
--- Comment #2 from William Tang <galaxyking0419 at gmail dot com> ---
Also cerated a bug on valgrind Bugzilla, link:
https://bugs.kde.org/show_bug.cgi?id=452575
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-04-13 13:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-13 11:40 [Bug dynamic-link/29061] New: valgrind reports a leak in _dl_start galaxyking0419 at gmail dot com
2022-04-13 11:42 ` [Bug dynamic-link/29061] valgrind reports multiple invalid writes galaxyking0419 at gmail dot com
2022-04-13 12:00 ` schwab@linux-m68k.org
2022-04-13 13:36 ` galaxyking0419 at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).