Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alias description crashes #1316

Closed
q6r opened this issue Sep 8, 2014 · 0 comments
Closed

alias description crashes #1316

q6r opened this issue Sep 8, 2014 · 0 comments

Comments

@q6r
Copy link
Contributor

q6r commented Sep 8, 2014

zeus:radare2 git:(master*) # r2 malloc://10
 -- Print the contents of the current block with the 'p' command
 [0x00000000]> $whoami=!whoami
 [0x00000000]> $whoami?
 *** Error in `r2': munmap_chunk(): invalid pointer: 0x084c02ef ***
 ======= Backtrace: =========
 /usr/lib/libc.so.6(+0x6c449)[0xb69f5449]
 /usr/lib/libc.so.6(+0x72557)[0xb69fb557]
 /usr/lib/libc.so.6(+0x72608)[0xb69fb608]
 /usr/lib/libr_core.so.0.9.8.git(+0x3f7a7)[0xb770b7a7]
 /usr/lib/libr_core.so.0.9.8.git(r_cmd_call+0xe5)[0xb772a676]
 /usr/lib/libr_core.so.0.9.8.git(+0x429ae)[0xb770e9ae]
 /usr/lib/libr_core.so.0.9.8.git(+0x41478)[0xb770d478]
 /usr/lib/libr_core.so.0.9.8.git(r_core_cmd+0x2c4)[0xb770f2ab]
 /usr/lib/libr_core.so.0.9.8.git(r_core_prompt_exec+0x29)[0xb76e4ebf]
 r2(main+0x1b37)[0x804bcad]
 /usr/lib/libc.so.6(__libc_start_main+0xde)[0xb69a0e2e]
 r2[0x8049cf1]
 ======= Memory map: ========
 08048000-0804d000 r-xp 00000000 08:01 17837906   /usr/src/radare2/binr/radare2/radare2
 0804d000-0804e000 rw-p 00005000 08:01 17837906   /usr/src/radare2/binr/radare2/radare2
 0804e000-080af000 rw-p 00000000 00:00 0
 0845f000-084e5000 rw-p 00000000 00:00 0          [heap]
 b68cc000-b68e8000 r-xp 00000000 08:01 16128421   /usr/lib/libgcc_s.so.1
 b68e8000-b68e9000 rw-p 0001b000 08:01 16128421   /usr/lib/libgcc_s.so.1
 b690b000-b690d000 rw-p 00000000 00:00 0
 b690d000-b6910000 r-xp 00000000 08:01 16125135   /usr/lib/libdl-2.19.so
 b6910000-b6911000 r--p 00002000 08:01 16125135   /usr/lib/libdl-2.19.so
 b6911000-b6912000 rw-p 00003000 08:01 16125135   /usr/lib/libdl-2.19.so
 b6912000-b692b000 r-xp 00000000 08:01 16125200   /usr/lib/libpthread-2.19.so
 b692b000-b692c000 r--p 00018000 08:01 16125200   /usr/lib/libpthread-2.19.so
 b692c000-b692d000 rw-p 00019000 08:01 16125200   /usr/lib/libpthread-2.19.so
 b692d000-b692f000 rw-p 00000000 00:00 0
 b692f000-b6979000 r-xp 00000000 08:01 16125118   /usr/lib/libm-2.19.so
 b6979000-b697a000 r--p 00049000 08:01 16125118   /usr/lib/libm-2.19.so
 b697a000-b697b000 rw-p 0004a000 08:01 16125118   /usr/lib/libm-2.19.so
 b697b000-b6983000 r-xp 00000000 08:01 17958566   /usr/src/radare2/libr/socket/libr_socket.so
 b6983000-b6984000 rw-p 00007000 08:01 17958566   /usr/src/radare2/libr/socket/libr_socket.so
 b6984000-b6985000 rw-p 00000000 00:00 0
 b6985000-b6988000 r-xp 00000000 08:01 17958949   /usr/src/radare2/libr/lang/libr_lang.so
 b6988000-b6989000 rw-p 00002000 08:01 17958949   /usr/src/radare2/libr/lang/libr_lang.so
 b6989000-b6b44000 r-xp 00000000 08:01 16125181   /usr/lib/libc-2.19.so
 b6b44000-b6b47000 r--p 001ba000 08:01 16125181   /usr/lib/libc-2.19.so
 b6b47000-b6b49000 rw-p 001bd000 08:01 16125181   /usr/lib/libc-2.19.so
 b6b49000-b6b4b000 rw-p 00000000 00:00 0
 b6b4b000-b6b4e000 r-xp 00000000 08:01 17958955   /usr/src/radare2/libr/crypto/libr_crypto.so
 b6b4e000-b6b52000 rw-p 00002000 08:01 17958955   /usr/src/radare2/libr/crypto/libr_crypto.so
 b6b52000-b6b5e000 r-xp 00000000 08:01 17959419   /usr/src/radare2/libr/egg/libr_egg.so
 b6b5e000-b6b5f000 rw-p 0000b000 08:01 17959419   /usr/src/radare2/libr/egg/libr_egg.so
 b6b5f000-b6b61000 rw-p 00000000 00:00 0
 b6b61000-b6b9f000 r-xp 00000000 08:01 17958553   /usr/src/radare2/libr/util/libr_util.so
 b6b9f000-b6ba0000 rw-p 0003d000 08:01 17958553   /usr/src/radare2/libr/util/libr_util.so
 b6ba0000-b6ba2000 rw-p 00000000 00:00 0
 b6ba2000-b6ba6000 r-xp 00000000 08:01 17958952   /usr/src/radare2/libr/flags/libr_flags.so
 b6ba6000-b6ba7000 rw-p 00003000 08:01 17958952   /usr/src/radare2/libr/flags/libr_flags.so
 b6ba7000-b6bb9000 r-xp 00000000 08:01 17837501   /usr/src/radare2/libr/magic/libr_magic.so
 b6bb9000-b6bba000 rw-p 00011000 08:01 17837501   /usr/src/radare2/libr/magic/libr_magic.so
 b6bba000-b6bc4000 r-xp 00000000 08:01 17958825   /usr/src/radare2/libr/hash/libr_hash.so
 b6bc4000-b6bc5000 rw-p 00009000 08:01 17958825   /usr/src/radare2/libr/hash/libr_hash.so
 b6bc5000-b6bdc000 r-xp 00000000 08:01 17958849   /usr/src/radare2/libr/db/libr_db.so
 b6bdc000-b6bde000 rw-p 00016000 08:01 17958849   /usr/src/radare2/libr/db/libr_db.so
 b6bde000-b6bf8000 rw-p 00000000 00:00 0
 b6bf8000-b6bfa000 r-xp 00000000 08:01 17958938   /usr/src/radare2/libr/syscall/libr_syscall.so
 b6bfa000-b6bfb000 rw-p 00002000 08:01 17958938   /usr/src/radare2/libr/syscall/libr_syscall.so
 b6bfb000-b6bfc000 rw-p 00000000 00:00 0
 b6bfc000-b6ef4000 r-xp 00000000 08:01 17837884   /usr/src/radare2/libr/asm/libr_asm.so
 b6ef4000-b7108000 rw-p 002f7000 08:01 17837884   /usr/src/radare2/libr/asm/libr_asm.so
 b7108000-b711c000 rw-p 00000000 00:00 0
 b711c000-b7147000 r-xp 00000000 08:01 17959104   /usr/src/radare2/libr/fs/libr_fs.so
 b7147000-b7148000 rw-p 0002b000 08:01 17959104   /usr/src/radare2/libr/fs/libr_fs.so
 b7148000-b714f000 rw-p 00000000 00:00 0
 b714f000-b7184000 r-xp 00000000 08:01 17959013   /usr/src/radare2/libr/io/libr_io.so
 b7184000-b718a000 rw-p 00035000 08:01 17959013   /usr/src/radare2/libr/io/libr_io.so
 b718a000-b718f000 rw-p 00000000 00:00 0
 b718f000-b7192000 r-xp 00000000 08:01 17958907   /usr/src/radare2/libr/bp/libr_bp.so
 b7192000-b7193000 rw-p 00003000 08:01 17958907   /usr/src/radare2/libr/bp/libr_bp.so
 b7193000-b7198000 r-xp 00000000 08:01 17958861   /usr/src/radare2/libr/reg/libr_reg.so
 b7198000-b7199000 rw-p 00004000 08:01 17958861   /usr/src/radare2/libr/reg/libr_reg.so
 b7199000-b719a000 rw-p 00000000 00:00 0
 b719a000-b719d000 r-xp 00000000 08:01 17958834   /usr/src/radare2/libr/diff/libr_diff.so
 b719d000-b719e000 rw-p 00002000 08:01 17958834   /usr/src/radare2/libr/diff/libr_diff.so
 b719e000-b7427000 r-xp 00000000 08:01 17837859   /usr/src/radare2/libr/anal/libr_anal.so
 b7427000-b75e0000 rw-p 00288000 08:01 17837859   /usr/src/radare2/libr/anal/libr_anal.so
 b75e0000-b75e3000 rw-p 00000000 00:00 0
 b75e3000-b75f4000 r-xp 00000000 08:01 17959256   /usr/src/radare2/libr/debug/libr_debug.so
 b75f4000-b75f5000 rw-p 00010000 08:01 17959256   /usr/src/radare2/libr/debug/libr_debug.so
 b75f5000-b7681000 r-xp 00000000 08:01 17959179   /usr/src/radare2/libr/bin/libr_bin.so
 b7681000-b7686000 rw-p 0008c000 08:01 17959179   /usr/src/radare2/libr/bin/libr_bin.so
 b7686000-b7689000 r-xp 00000000 08:01 17958852   /usr/src/radare2/libr/config/libr_config.so
 b7689000-b768a000 rw-p 00003000 08:01 17958852   /usr/src/radare2/libr/config/libr_config.so
 b768a000-b768b000 rw-p 00000000 00:00 0
 b768b000-b769a000 r-xp 00000000 08:01 17958918   /usr/src/radare2/libr/cons/libr_cons.so
 b769a000-b769b000 rw-p 0000f000 08:01 17958918   /usr/src/radare2/libr/cons/libr_cons.so
 b769b000-b769c000 rw-p 00000000 00:00 0
 b769c000-b76a0000 r-xp 00000000 08:01 17958894   /usr/src/radare2/libr/search/libr_search.so
 b76a0000-b76a1000 rw-p 00004000 08:01 17958894   /usr/src/radare2/libr/search/libr_search.so
 b76a1000-b76bb000 r-xp 00000000 08:01 17959216   /usr/src/radare2/libr/parse/libr_parse.so
 b76bb000-b76bd000 rw-p 00019000 08:01 17959216   /usr/src/radare2/libr/parse/libr_parse.so
 b76bd000-b76cc000 rw-p 00000000 00:00 0
 b76cc000-b776a000 r-xp 00000000 08:01 17959474   /usr/src/radare2/libr/core/libr_core.so
 b776a000-b776f000 rw-p 0009e000 08:01 17959474   /usr/src/radare2/libr/core/libr_core.so
 b776f000-b7770000 rw-p 00000000 00:00 0
 b7773000-b7775000 r--s 00000000 08:01 17958919   /usr/src/radare2/libr/syscall/d/linux-x86-32.sdb
 b7775000-b7777000 r-xp 00000000 08:01 17959395   /usr/src/radare2/libr/asm/p/asm_psosvm.so
 b7777000-b7778000 rw-p 00001000 08:01 17959395   /usr/src/radare2/libr/asm/p/asm_psosvm.so
 b7778000-b777a000 r-xp 00000000 08:01 17959399   /usr/src/radare2/libr/asm/p/asm_snes.so
 b777a000-b777b000 rw-p 00002000 08:01 17959399   /usr/src/radare2/libr/asm/p/asm_snes.so
 b777b000-b777c000 r-xp 00000000 08:01 17959396   /usr/src/radare2/libr/asm/p/asm_x86_nasm.so
 b777c000-b777d000 rw-p 00000000 08:01 17959396   /usr/src/radare2/libr/asm/p/asm_x86_nasm.so
 b777d000-b777e000 r-xp 00000000 08:01 17959392   /usr/src/radare2/libr/asm/p/asm_x86_as.so
 b777e000-b777f000 rw-p 00000000 08:01 17959392   /usr/src/radare2/libr/asm/p/asm_x86_as.so
 b777f000-b7782000 r-xp 00000000 08:01 17959402   /usr/src/radare2/libr/asm/p/asm_6502.so
 b7782000-b7783000 rw-p 00002000 08:01 17959402   /usr/src/radare2/libr/asm/p/asm_6502.so
 b7783000-b7785000 r--s 00000000 08:01 17958919   /usr/src/radare2/libr/syscall/d/linux-x86-32.sdb
 b778e000-b7790000 rw-p 00000000 00:00 0
 b7790000-b7792000 r--s 00000000 08:01 17958919   /usr/src/radare2/libr/syscall/d/linux-x86-32.sdb
 b7792000-b7794000 r--p 00000000 00:00 0
 b7794000-b7795000 r-xp 00000000 00:00 0          [vdso]
 b7795000-b77b6000 r-xp 00000000 08:01 16125158   /usr/lib/ld-2.19.so
 b77b6000-b77b7000 rw-p 00000000 00:00 0
 b77b7000-b77b8000 r--p 00021000 08:01 16125158   /usr/lib/ld-2.19.so
 b77b8000-b77b9000 rw-p 00022000 08:01 16125158   /usr/lib/ld-2.19.so
 bfaff000-bfb20000 rw-p 00000000 00:00 0          [stack]

BT

#0  0xb7fdbb2c in __kernel_vsyscall ()
#1  0xb71fc297 in raise () from /usr/lib/libc.so.6
#2  0xb71fd8ea in abort () from /usr/lib/libc.so.6
#3  0xb723c44e in __libc_message () from /usr/lib/libc.so.6
#4  0xb7242557 in malloc_printerr () from /usr/lib/libc.so.6
#5  0xb7242608 in munmap_chunk () from /usr/lib/libc.so.6
#6  0xb7f527a7 in cmd_alias (data=0x804d500 <r>, input=0x81102d9 "whoami?") at cmd.c:139
#7  0xb7f71676 in r_cmd_call (cmd=0x80e4230, input=0x81102d8 "$whoami?") at cmd_api.c:179
#8  0xb7f559ae in r_core_cmd_subst_i (core=0x804d500 <r>, cmd=0x81102d8 "$whoami?") at cmd.c:1237
#9  0xb7f54478 in r_core_cmd_subst (core=0x804d500 <r>, cmd=0x81102d8 "$whoami?") at cmd.c:790
#10 0xb7f562ab in r_core_cmd (core=0x804d500 <r>, cstr=0x8110350 "$whoami?", log=0x1) at cmd.c:1435
#11 0xb7f2bebf in r_core_prompt_exec (r=0x804d500 <r>) at core.c:776
#12 0x0804bcad in main (argc=0x2, argv=0xbffff204, envp=0xbffff210) at radare2.c:647
#13 0xb71e7e2e in __libc_start_main () from /usr/lib/libc.so.6
#14 0x08049cf1 in _start ()
@jvoisin jvoisin closed this as completed in e4b1246 Sep 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant