Skip to content
New issue

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

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

Already on GitHub? # to your account

Dietline segfault #16192

Closed
radare opened this issue Mar 12, 2020 · 3 comments
Closed

Dietline segfault #16192

radare opened this issue Mar 12, 2020 · 3 comments

Comments

@radare
Copy link
Collaborator

radare commented Mar 12, 2020

reproducer:

  • type something
  • press ctrl-a
  • press ctrl-x

segfaullt

@radare radare added this to the 4.4.0 milestone Mar 12, 2020
@XVilka
Copy link
Contributor

XVilka commented Mar 12, 2020

Cannot reproduce in Linux.

@radare
Copy link
Collaborator Author

radare commented Mar 12, 2020

r2 /bin/ls
-- Greetings, human.

==47815==ERROR: AddressSanitizer: strncpy-param-overlap: memory ranges [0x0001094e7498,0x0001094e74a5) and [0x0001094e7498, 0x0001094e74a5) overlap
#0 0x112a25a4e in wrap_strncpy (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x5ba4e)
#1 0x10940d826 in r_line_readline_cb dietline.c:1481
#2 0x10940a252 in r_line_readline dietline.c:830
#3 0x10d13ac52 in r_core_fgets core.c:1996
#4 0x109442aa3 in r_cons_fgets input.c:363
#5 0x10d15569e in r_core_prompt core.c:3021
#6 0x10d1551a6 in r_core_prompt_loop core.c:2888
#7 0x112946fd2 in r_main_radare2 radare2.c:1350
#8 0x1093b4462 in main (r2:x86_64+0x100001462)
#9 0x7fff6d35a7fc in start (libdyld.dylib:x86_64+0x1a7fc)

0x0001094e7498 is located 88 bytes inside of global variable 'r_line_instance' defined in 'line.c:6:14' (0x1094e7440) of size 4384
0x0001094e7498 is located 88 bytes inside of global variable 'r_line_instance' defined in 'line.c:6:14' (0x1094e7440) of size 4384
SUMMARY: AddressSanitizer: strncpy-param-overlap (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x5ba4e) in wrap_strncpy
==47815==ABORTING
Abort trap: 6
pmb:radare2 pancake$

@radare radare closed this as completed in a56d67c Mar 12, 2020
@radare
Copy link
Collaborator Author

radare commented Mar 12, 2020

just do asan, but may be related to the mac libc. fixed now

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants