0x40b178e4 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
(gdb) info threads
Id Target Id Frame
15 Thread 0x41f74330 (LWP 2012) "remote-viewer" 0x40b8ad22 in poll () from /lib/arm-linux-gnueabihf/libc.so.6
14 Thread 0x42774330 (LWP 2017) "usb_ev_thread" 0x40b8ad22 in poll () from /lib/arm-linux-gnueabihf/libc.so.6
13 Thread 0x430ff330 (LWP 2018) "socket_th_1" 0x40af25f4 in __libc_do_syscall () from /lib/arm-linux-gnueabihf/libpthread.so.0
12 Thread 0x43aff330 (LWP 2019) "gmain" 0x40b8ad22 in poll () from /lib/arm-linux-gnueabihf/libc.so.6
11 Thread 0x444ff330 (LWP 2024) "socket_th_9" 0x40af25f4 in __libc_do_syscall () from /lib/arm-linux-gnueabihf/libpthread.so.0
10 Thread 0x45120330 (LWP 2025) "socket_th_9" 0x40af25f4 in __libc_do_syscall () from /lib/arm-linux-gnueabihf/libpthread.so.0
9 Thread 0x45920330 (LWP 2026) "socket_th_9" 0x40af25f4 in __libc_do_syscall () from /lib/arm-linux-gnueabihf/libpthread.so.0
8 Thread 0x461c3330 (LWP 2027) "socket_th_9" 0x40af25f4 in __libc_do_syscall () from /lib/arm-linux-gnueabihf/libpthread.so.0
7 Thread 0x46a0c330 (LWP 2028) "socket_th_9" 0x40af25f4 in __libc_do_syscall () from /lib/arm-linux-gnueabihf/libpthread.so.0
6 Thread 0x472a8330 (LWP 2029) "socket_th_5" 0x40af25f4 in __libc_do_syscall () from /lib/arm-linux-gnueabihf/libpthread.so.0
5 Thread 0x47b39330 (LWP 2030) "socket_th_6" 0x40af25f4 in __libc_do_syscall () from /lib/arm-linux-gnueabihf/libpthread.so.0
4 Thread 0x483d3330 (LWP 2031) "socket_th_2" 0x40af25f4 in __libc_do_syscall () from /lib/arm-linux-gnueabihf/libpthread.so.0
3 Thread 0x49441330 (LWP 2032) "socket_th_3" 0x40af25f4 in __libc_do_syscall () from /lib/arm-linux-gnueabihf/libpthread.so.0
2 Thread 0x4a061330 (LWP 2033) "socket_th_4" 0x40af25f4 in __libc_do_syscall () from /lib/arm-linux-gnueabihf/libpthread.so.0
* 1 Thread 0x41750000 (LWP 2004) "remote-viewer" 0x40b178e4 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
(gdb) bt
#0 0x40b178e4 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
#1 0x40b9cd94 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
uj5u.com熱心網友回復:
如果是堆疊破壞的話,通過gdb是無法定位的, 可以使用 valgrind等記憶體檢測工具運行你的程式來找問題uj5u.com熱心網友回復:
您好,我通過gdb大概可以了解到,應該是我的行程處于poll函式的這段呈現??狀態,這個時候還出現了*** Error in `./remote-viewer': malloc(): memory corruption: 0x0018a958 ***,我在arm環境下使用valgrind很麻煩,也沒弄成功,不知道還有其他的方法嗎或者還有其他的可能出錯的地方嗎,謝謝uj5u.com熱心網友回復:
malloc(): memory corruption 這個提示就很明確了, 你malloc申請的某段記憶體, 但是這段記憶體的管理結構被破壞了,需要找一下malloc的記憶體的所有操作, 是否有拷貝(包含初始化/列印等)溢位的情況
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/133686.html
標籤:應用程序開發區
下一篇:linux網路配置
