Home > OS >  I ask this time how to find problems, looking for three days, seek help from a great god, thank you
I ask this time how to find problems, looking for three days, seek help from a great god, thank you

Time:10-21

0 x40b178e4 in?? () the from/lib/arm - Linux - gnueabihf/libc. So. 6
(GDB) info threads
Id Target Id Frame
15 Thread 0 x41f74330 (LWP) 2012 "remote - the viewer" 0 x40b8ad22 poll () in the from/lib/arm - Linux - gnueabihf/libc. So. 6
14 Thread 0 x42774330 (LWP) 2017 "usb_ev_thread" 0 x40b8ad22 poll () in the from/lib/arm - Linux - gnueabihf/libc. So. 6
13 Thread 0 x430ff330 (LWP) 2018 "socket_th_1" 0 x40af25f4 __libc_do_syscall in () the from/lib/arm - Linux - gnueabihf/libpthreads. So. 0
12 Thread 0 x43aff330 (LWP) 2019 "gmain" 0 x40b8ad22 poll () in the from/lib/arm - Linux - gnueabihf/libc. So. 6
11 Thread 0 x444ff330 (LWP) 2024 "socket_th_9" 0 x40af25f4 __libc_do_syscall in () the from/lib/arm - Linux - gnueabihf/libpthreads. So. 0
10 Thread 0 x45120330 (LWP) 2025 "socket_th_9" 0 x40af25f4 __libc_do_syscall in () the from/lib/arm - Linux - gnueabihf/libpthreads. So. 0
9 Thread 0 x45920330 (LWP) 2026 "socket_th_9" 0 x40af25f4 __libc_do_syscall in () the from/lib/arm - Linux - gnueabihf/libpthreads. So. 0
8 Thread 0 x461c3330 (LWP) 2027 "socket_th_9" 0 x40af25f4 __libc_do_syscall in () the from/lib/arm - Linux - gnueabihf/libpthreads. So. 0
7 Thread 0 x46a0c330 (LWP) 2028 "socket_th_9" 0 x40af25f4 __libc_do_syscall in () the from/lib/arm - Linux - gnueabihf/libpthreads. So. 0
6 Thread 0 x472a8330 (LWP) 2029 "socket_th_5" 0 x40af25f4 __libc_do_syscall in () the from/lib/arm - Linux - gnueabihf/libpthreads. So. 0
5 Thread 0 x47b39330 (LWP) 2030 "socket_th_6" 0 x40af25f4 __libc_do_syscall in () the from/lib/arm - Linux - gnueabihf/libpthreads. So. 0
4 Thread 0 x483d3330 (LWP) 2031 "socket_th_2" 0 x40af25f4 __libc_do_syscall in () the from/lib/arm - Linux - gnueabihf/libpthreads. So. 0
3 Thread 0 x49441330 (LWP) 2032 "socket_th_3" 0 x40af25f4 __libc_do_syscall in () the from/lib/arm - Linux - gnueabihf/libpthreads. So. 0
Thread 2 0 x4a061330 (LWP) 2033 "socket_th_4" 0 x40af25f4 __libc_do_syscall in () the from/lib/arm - Linux - gnueabihf/libpthreads. So. 0
2004 * 1 Thread 0 x41750000 (LWP) "remote - the viewer" 0 x40b178e4 in?? () the from/lib/arm - Linux - gnueabihf/libc. So. 6
Bt (GDB)
# 0 0 x40b178e4 in?? () the from/lib/arm - Linux - gnueabihf/libc. So. 6
# 1 0 x40b9cd94 in?? () the from/lib/arm - Linux - gnueabihf/libc. So. 6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

CodePudding user response:

If the stack is destroyed by GDB is unable to locate, you can use the memory testing tools such as valgrind run your program to find the problem

CodePudding user response:

Hello, I through the GDB can probably learned that should be me in the process of the poll function present?? State, this time also appeared a * * * Error in `./remote - viewer ': malloc () : the memory corruption: 0 x0018a958 * * *, I use valgrind in arm environment very troublesome, also didn't get success, don't know is there any other way or there are other places you can go wrong, thank you

CodePudding user response:

Malloc () : the memory corruption the tip is very clear, you apply for a certain period of malloc memory, but this period of memory management structure has been destroyed,
Need to find a malloc memory all the operations, is there a copy (contains initialization/printing, etc.) to overflow
  • Related