gpt4 book ai didi

c - 程序启动前valgrind奇怪的条件跳转信息

转载 作者:太空宇宙 更新时间:2023-11-04 11:32:20 25 4
gpt4 key购买 nike

在我的程序启动之前,我收到了未初始化的值消息,这些消息引用了不在我的程序中的函数调用。我对为什么会收到这些消息以及如何清理它们感到困惑?

==24266== Conditional jump or move depends on uninitialised value(s)
==24266== at 0x809098A: __linkin_atfork (in /home/mbarry/workspace/datapup/src/plugin)
==24266== by 0x80919EB: _dl_non_dynamic_init (in /home/mbarry/workspace/datapup/src/plugin)
==24266== by 0x80921B1: __libc_init_first (in /home/mbarry/workspace/datapup/src/plugin)
==24266== by 0x805F60B: (below main) (in /home/mbarry/workspace/datapup/src/plugin)
==24266== Uninitialised value was created
==24266== at 0x8091662: _dl_sysinfo_int80 (in /home/mbarry/workspace/datapup/src/plugin)
==24266== by 0x80BE31F: brk (in /home/mbarry/workspace/datapup/src/plugin)
==24266== by 0x808DE99: sbrk (in /home/mbarry/workspace/datapup/src/plugin)
==24266== by 0x805F96B: __libc_setup_tls (in /home/mbarry/workspace/datapup/src/plugin)
==24266== by 0x805FB66: __pthread_initialize_minimal (in /home/mbarry/workspace/datapup/src/plugin)
==24266== by 0x805F5A3: (below main) (in /home/mbarry/workspace/datapup/src/plugin)

最佳答案

在我的 gcc makefile 中错误地使用了 -D_THREAD_SAFE -D_REENTRANT -static 标志导致了内存问题。

关于c - 程序启动前valgrind奇怪的条件跳转信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10335268/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com