Menu

#83 "Disassemble" leads to stack smash

open
liuym
5
2016-03-16
2011-11-23
fish47
No

Here is my computer's info.

Distribution: Ubuntu11.04
Kernel: 2.6.38-12-generic
GCC Version: 4.5.2
Skyey Version: dyncom_arm_ppc branch(I have done the "git fetch" and built again today)

Here are the messages which were popped out after the skyeye crashed.

fish47@fish47-Ideapad-V460:/opt/skyeye/testsuite/arm_hello$ /opt/skyeye/bin/skyeye -e arm_hello
SkyEye 1.3.2
SkyEye is an Open Source project under GPL. All rights of different parts or modules are reserved by their author. Any modification or redistributions of SkyEye should not remove or modify the annoucement of SkyEye copyright.
Get more information about it, please visit the homepage http://www.skyeye.org.
Type "help" to get command list.
LLVM EXIST
In SKY_register_class, register the class s3c6410_lcd

In SKY_register_class, register the class pcie

LLVM EXIST
In SKY_register_class, register the class s3c6410_sdhci

In SKY_register_class, register the class gtk_lcd

(skyeye) start
arch: arm
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
In do_mach_option, mach info: name at91, mach_init addr 0x6756a0

uart_mod:3, desc_in:, desc_out:, converter:
In create_uart_console
1 core is initialized.
SKYEYE: use arm7100 mmu ops
SKYEYE: use arm7100 mmu ops
exec file "arm_hello"'s format is elf32-i386.
In SIM_start, Set PC to the address 0x1000000

(skyeye) run
In start_all_thread, the thread 1 is set to running
In start_all_thread, the thread 2 is set to running
(running) stop
In stop_all_thread, the thread 1 is set to stopped
In stop_all_thread, the thread 2 is set to stopped
(skyeye) disassemble
*** stack smashing detected ***: /opt/skyeye/bin/skyeye terminated
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x50)[0x519df0]
/lib/i386-linux-gnu/libc.so.6(+0xe5d9a)[0x519d9a]
/opt/skyeye/lib/libopcodes-2.18.50.20070907.so(+0x1ad0c4)[0x29120c4]
/opt/skyeye/lib/libopcodes-2.18.50.20070907.so(+0x12936d)[0x288e36d]
/opt/skyeye/lib/skyeye/libdisasm.so(disassemble+0x5e)[0x1854e4e]
/opt/skyeye/lib/skyeye/libdisasm.so(com_disassemble+0x5d)[0x185501d]
/usr/lib/python2.7/lib-dynload/_ctypes.so(ffi_call_SYSV+0x17)[0x9368767]
/usr/lib/python2.7/lib-dynload/_ctypes.so(ffi_call+0x6f)[0x93684bf]
/usr/lib/python2.7/lib-dynload/_ctypes.so(_ctypes_callproc+0x2d3)[0x9360e63]
/usr/lib/python2.7/lib-dynload/_ctypes.so(+0x6e6e)[0x9358e6e]
/usr/lib/libpython2.7.so.1.0(PyObject_Call+0x5c)[0x14008c]
/usr/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x3df2)[0x1eb8b2]
/usr/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5203)[0x1eccc3]
/usr/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5203)[0x1eccc3]
/usr/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x1ee4c8]
/usr/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x4c62)[0x1ec722]
/usr/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x1ee4c8]
/usr/lib/libpython2.7.so.1.0(PyEval_EvalCode+0x63)[0x1ee623]
/usr/lib/libpython2.7.so.1.0(PyRun_StringFlags+0x8e)[0x20f31e]
/usr/lib/libpython2.7.so.1.0(PyRun_SimpleStringFlags+0x54)[0x20ff64]
/opt/skyeye/lib/skyeye/libpycli.so(cli+0xae)[0x707c74e]
/opt/skyeye/lib/skyeye/libcommon.so.0(SIM_init+0x15f)[0xa030cf]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x44ae37]
/opt/skyeye/bin/skyeye[0x8048a01]
======= Memory map: ========
00110000-00348000 r-xp 00000000 08:08 658422 /usr/lib/libpython2.7.so.1.0
00348000-00349000 ---p 00238000 08:08 658422 /usr/lib/libpython2.7.so.1.0
00349000-0034a000 r--p 00238000 08:08 658422 /usr/lib/libpython2.7.so.1.0
0034a000-0039f000 rw-p 00239000 08:08 658422 /usr/lib/libpython2.7.so.1.0
0039f000-003ab000 rw-p 00000000 00:00 0
003ab000-003b2000 r-xp 00000000 08:08 393509 /lib/i386-linux-gnu/librt-2.13.so
003b2000-003b3000 r--p 00006000 08:08 393509 /lib/i386-linux-gnu/librt-2.13.so
003b3000-003b4000 rw-p 00007000 08:08 393509 /lib/i386-linux-gnu/librt-2.13.so
003b4000-003bb000 r-xp 00000000 08:08 658249 /usr/lib/libltdl.so.7.2.1
003bb000-003bc000 r--p 00006000 08:08 658249 /usr/lib/libltdl.so.7.2.1
003bc000-003bd000 rw-p 00007000 08:08 658249 /usr/lib/libltdl.so.7.2.1
003bd000-003f1000 r-xp 00000000 08:08 392666 /lib/libncurses.so.5.7
003f1000-003f2000 ---p 00034000 08:08 392666 /lib/libncurses.so.5.7
003f2000-003f4000 r--p 00034000 08:08 392666 /lib/libncurses.so.5.7
003f4000-003f5000 rw-p 00036000 08:08 392666 /lib/libncurses.so.5.7
003f5000-0040a000 r-xp 00000000 08:08 393505 /lib/i386-linux-gnu/libpthread-2.13.so
0040a000-0040b000 r--p 00015000 08:08 393505 /lib/i386-linux-gnu/libpthread-2.13.so
0040b000-0040c000 rw-p 00016000 08:08 393505 /lib/i386-linux-gnu/libpthread-2.13.so
0040c000-0040e000 rw-p 00000000 00:00 0
0040e000-00432000 r-xp 00000000 08:08 393477 /lib/i386-linux-gnu/libm-2.13.so
00432000-00433000 r--p 00023000 08:08 393477 /lib/i386-linux-gnu/libm-2.13.so
00433000-00434000 rw-p 00024000 08:08 393477 /lib/i386-linux-gnu/libm-2.13.so
00434000-0058e000 r-xp 00000000 08:08 393440 /lib/i386-linux-gnu/libc-2.13.so
0058e000-0058f000 ---p 0015a000 08:08 393440 /lib/i386-linux-gnu/libc-2.13.so
0058f000-00591000 r--p 0015a000 08:08 393440 /lib/i386-linux-gnu/libc-2.13.so
00591000-00592000 rw-p 0015c000 08:08 393440 /lib/i386-linux-gnu/libc-2.13.so
00592000-00595000 rw-p 00000000 00:00 0
00595000-005af000 r-xp 00000000 08:08 393468 /lib/i386-linux-gnu/libgcc_s.so.1
005af000-005b0000 r--p 00019000 08:08 393468 /lib/i386-linux-gnu/libgcc_s.so.1
005b0000-005b1000 rw-p 0001a000 08:08 393468 /lib/i386-linux-gnu/libgcc_s.so.1
005b1000-005c4000 r-xp 00000000 08:08 393523 /lib/i386-linux-gnu/libz.so.1.2.3.4
005c4000-005c5000 r--p 00012000 08:08 393523 /lib/i386-linux-gnu/libz.so.1.2.3.4
005c5000-005c6000 rw-p 00013000 08:08 393523 /lib/i386-linux-gnu/libz.so.1.2.3.4
005c6000-005d4000 r-xp 00000000 08:08 140795 /opt/skyeye/lib/skyeye/libsparc.so.0.0.0
005d4000-005d5000 r--p 0000e000 08:08 140795 /opt/skyeye/lib/skyeye/libsparc.so.0.0.0
005d5000-005d6000 rw-p 0000f000 08:08 140795 /opt/skyeye/lib/skyeye/libsparc.so.0.0.0
005d6000-005d7000 rw-p 00000000 00:00 0
005d7000-005d9000 r-xp 00000000 08:08 140767 /opt/skyeye/lib/skyeye/libs3c4510b.so.0.0.0
005d9000-005da000 r--p 00001000 08:08 140767 /opt/skyeye/lib/skyeye/libs3c4510b.so.0.0.0
005da000-005db000 rw-p 00002000 08:08 140767 /opt/skyeye/lib/skyeye/libs3c4510b.so.0.0.0
005db000-005e0000 r-xp 00000000 08:08 138281 /opt/skyeye/lib/skyeye/libnet.so.0.0.0
005e0000-005e1000 r--p 00004000 08:08 138281 /opt/skyeye/lib/skyeye/libnet.so.0.0.0
005e1000-005e2000 rw-p 00005000 08:08 138281 /opt/skyeye/lib/skyeye/libnet.so.0.0.0
005e2000-005e4000 r-xp 00000000 08:08 140606 /opt/skyeye/lib/skyeye/liblcd_s3c6410.so.0.0.0
005e4000-005e5000 r--p 00001000 08:08 140606 /opt/skyeye/lib/skyeye/liblcd_s3c6410.so.0.0.0
005e5000-005e6000 rw-p 00002000 08:08 140606 /opt/skyeye/lib/skyeye/liblcd_s3c6410.so.0.0.0
005e6000-005e8000 r-xp 00000000 08:08 140755 /opt/skyeye/lib/skyeye/liblh79520.so.0.0.0
005e8000-005e9000 r--p 00001000 08:08 140755 /opt/skyeye/lib/skyeye/liblh79520.so.0.0.0
005e9000-005ea000 rw-p 00002000 08:08 140755 /opt/skyeye/lib/skyeye/liblh79520.so.0.0.0
005ea000-005ec000 r-xp 00000000 08:08 140751 /opt/skyeye/lib/skyeye/liblpc2210.so.0.0.0
005ec000-005ed000 r--p 00001000 08:08 140751 /opt/skyeye/lib/skyeye/liblpc2210.so.0.0.0
005ed000-005ee000 rw-p 00002000 08:08 140751 /opt/skyeye/lib/skyeye/liblpc2210.so.0.0.0
005ee000-005f3000 r-xp 00000000 08:08 137046 /opt/skyeye/lib/skyeye/libflash.so.0.0.0
005f3000-005f4000 r--p 00004000 08:08 137046 /opt/skyeye/lib/skyeye/libflash.so.0.0.0
005f4000-005f5000 rw-p 00005000 08:08 137046 /opt/skyeye/lib/skyeye/libflash.so.0.0.0
005f5000-005f6000 r-xs 00000000 08:08 8916 /tmp/ffi9P4dMf (deleted)
005f6000-005f8000 r-xp 00000000 08:08 393518 /lib/i386-linux-gnu/libutil-2.13.so
005f8000-005f9000 r--p 00001000 08:08 393518 /lib/i386-linux-gnu/libutil-2.13.so
005f9000-005fa000 rw-p 00002000 08:08 393518 /lib/i386-linux-gnu/libutil-2.13.so
005fa000-0063e000 r-xp 00000000 08:08 392701 /lib/libssl.so.0.9.8
0063e000-0063f000 r--p 00044000 08:08 392701 /lib/libssl.so.0.9.8
0063f000-00642000 rw-p 00045000 08:08 392701 /lib/libssl.so.0.9.8
00642000-00668000 r-xp 00000000 08:08 140783 /opt/skyeye/lib/skyeye/libmips.so.0.0.0
00668000-00669000 r--p 00025000 08:08 140783 /opt/skyeye/lib/skyeye/libmips.so.0.0.0
00669000-0066a000 rw-p 00026000 08:08 140783 /opt/skyeye/lib/skyeye/libmips.so.0.0.00x1000050:bne 已放弃

If you want to get more detail information, you can email fish47@126.com. I will reply your email as soon as possible.
Thanks all developers :-)

Discussion

  • fish47

    fish47 - 2011-11-23
    • summary: "Disassemble" make skyeye crash --> "Disassemble" leads to stack smash
     
  • kangsh

    kangsh - 2011-11-23
    • assigned_to: nobody --> laohixdxm
     
  • sai ganesh

    sai ganesh - 2016-03-16

    But what about these ?

    (skyeye)disassemble
    Can not find the suitable bank for the address 0x0
    Can not find the suitable bank for the address 0x1
    Can not find the suitable bank for the address 0x2
    Can not find the suitable bank for the address 0x3
    andeq r0, r0, r0
    Can not find the suitable bank for the address 0x4
    Can not find the suitable bank for the address 0x5
    Can not find the suitable bank for the address 0x6
    Can not find the suitable bank for the address 0x7
    andeq r0, r0, r0

     

Log in to post a comment.