c - gdb weird backtrace -


My program is compiled with dietlibc, it has been compiled at Ubuntu x64 (compiled for x86-m32 flag) and one The sensor runs on x86.

The compiled size is only about 100 KB, I do not compile it with GGD3 and any optimization flag.

My program uses signal.h to handle the SIGSEGV signal and then calls abort ().

The program runs without problems for days but sometimes segfaults. This is when I get weird batteries which I do not understand:

 Username @ Ubuntu: ~ / Desktop $ gdb -c core.28569 Program-Name GNU GDB (GDB) 7.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3 +: GNU GPL version 3 or later it's free software: You are free to change and redistribute it. To the extent permitted by law, there is no warranty, type "copy show" and "show warranty" for details, configure it as GDB "--host = x86_64-linux-gnu -target = i386-linux-gnu" it was done. For bug reporting instructions, please see: ... Reading the symbols by program name ... done [New Thread 28569] The program was created by the 'program-name' core that ended with signal 6, canceled # 0x00914410 __kernel_vsyscall () setting the environment for debugging The gdb function is not defined "internal-panic" Pause the breakpoint at the shared library load in the future? (Y or [N]) [North N; Not input terminal) function "info_command" is not defined Pause breakpoint on shared library load in the future? (Y or [N]) [North N; Terminal does not have input] .gdbinit: 8: error in sourced command file: logic required (one or more breakpoint numbers). (GDB) BT # 0x00914410 __kernel_vsyscall () during reading the symbol, incomplete CFI data; Unspecified registers (e.g., EX) on 0x914411 in # 1 0x0804d7f4 __unified_syscall () in # 2 0xbf8966c0 ?? () # 3 # 4 in 0x2054454e ?? () # 5 in 0x20524c43 ?? () # 6 in 0x2e352e33 ?? () # 7 in 0x32373033 ?? () # 8 in 0x2e203b39 ?? () # 9xx2054454e ?? () # 10 in 0x20524c43 ?? () # 11 in 0x2e302e33 ?? () # 12 in 0x32373033 ?? () # 13 0x4d203b39 ?? () # 14 in 0x61696465 ?? () # 15 in 0x6e654320 ?? () # 16 in 0x20726574 ?? () # 17 in 0x36204350 ?? () # 18 in 0x203b302e ?? () # 19 in 0x54454e2e ?? () # 20 in 0x43302e34 ?? () # 21 in 0x00000029 ?? () # 22 in 0xbf8989a8 ?? () Backtrace stopped: any frame table in __kernel_vsyscall () is not available in the previous frame this frame (corrupt stack?) (GDB) BT Full # 0x00914410. No symbol table information is available in # 1 0x0804d7f4 __unified_syscall (). # 2 in 0xbf8966c0 ?? () No symbol table info available. # 3 No symbol table information is available. # 4 in 0x2054454e ?? () No symbol table info available. # 5 in 0x20524c43 ?? () No symbol table info available. # 6 in 0x2e352e33 ?? () No symbol table info available. # 7 in 0x32373033 ?? () No symbol table info available. # 8 in 0x2e203b39 ?? () No symbol table info available. # 9xx2054454e ?? () No symbol table info available. # 10 in 0x20524c43 ?? () No symbol table info available. # 11 in 0x2e302e33 ?? () No symbol table info available. # 12 in 0x32373033 ?? () No symbol table info available. # 13 in 0x4d203b39 ?? () No symbol table info available. # 14 in 0x61696465 ?? () No symbol table info available. # 15 in 0x6e654320 ?? () No symbol table info available. # 16 in 0x20726574 ?? () No symbol table info available. # 17 in 0x36204350 ?? () No symbol table info available. # 18 in 0x203b302e ?? () No symbol table info available. # 19 in 0x54454e2e ?? () No symbol table info available. # 20 in 0x43302e34 ?? () No symbol table info available. # 21 in 0x00000029 ?? () No symbol table info available. # 22 in 0xbf8989a8 ?? () No symbol table info available. Backtrack stopped: exit from the frame outside the frame (corrupted stack?) (GDB) 

It's a stack grows.

  # 4 0x2054454e ?? ()  

It looks like text, "ten" or "net"

  in # 5 0x20524c43 ?? ()  

"RLC" or "CLR"

and so on.

Treat with the address as if they were text - see if it can recognize that this text overwrites your stack.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -