Skip to content

Instantly share code, notes, and snippets.


Nokius/gdb-run Secret

Created Nov 19, 2015
What would you like to do?
[SFOS] find7s gdb test_hwcomposer
sh-3.2# EGL_PLATFORM=hwcomposer gdb --args test_hwcomposer
GNU gdb (GDB) Mer (7.5.1+git3)
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "armv7hl-meego-linux-gnueabi".
For bug reporting instructions, please see:
Reading symbols from /usr/bin/test_hwcomposer...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/test_hwcomposer
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/".
*** Error in `/usr/bin/test_hwcomposer': malloc(): memory corruption: 0x00017fc0 ***
Program received signal SIGABRT, Aborted.
__libc_do_syscall () at ../ports/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:44
44 ../ports/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S: No such file or directory.
(gdb) bt
#0 __libc_do_syscall () at ../ports/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:44
#1 0xb6cc4cde in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#2 0xb6cc7b64 in __GI_abort () at abort.c:89
#3 0xb6ced968 in __libc_message (do_abort=do_abort@entry=1, fmt=0xb6d7f940 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#4 0xb6cf7a2c in malloc_printerr (ptr=0x17fc0, str=0xb6d7fe0c "malloc(): memory corruption", action=1) at malloc.c:4996
#5 _int_malloc (av=av@entry=0xb6d9d4f4 <main_arena>, bytes=bytes@entry=360) at malloc.c:3447
#6 0xb6cf86ec in __GI___libc_malloc (bytes=360) at malloc.c:2891
#7 0xb6ce9f9e in __fopen_internal (filename=0xb69cfc38 "/sys/class/graphics/fb0/msm_fb_type", mode=0xb69cfc5c "r", is32=1) at iofopen.c:73
#8 0xb69ce432 in ?? ()
#9 0xb69ce432 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.