调用printf()时_L_lock_791()

时间:2019-02-11 07:34:13

标签: c++ c linux gdb printf

bt
#0  __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:97
#1  0x00007f8bbbc215e0 in _L_lock_791 () from /lib64/libc.so.6
#2  0x00007f8bbbc1bf60 in _IO_vfprintf_internal (s=0x7f8bbbf67040, format=0xcc3ae8 "send wrapper data: gate_sid=%d,uclient_sid=%d,cmd_type=%d\n", ap=0x7f8bb69b8950) at vfprintf.c:1325
#3  0x00007f8bbbc26ffa in __printf (format=<value optimized out>) at printf.c:35

我的程序在运行时有一个coredump,我发现这是由于调用printf()库函数并等待了很长时间而引起的。而且我不了解printf()函数的实现。是什么原因造成的?

0 个答案:

没有答案