-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Segmentation fault with R in graph view #13653
Comments
Cant reproduce. Can you provide a backtrace?
… On 8 Apr 2019, at 00:02, tonybounty ***@***.***> wrote:
Work environment
Questions Answers
OS/arch/bits (mandatory) Ubuntu x86 64
File format of the file you reverse (mandatory) any
Architecture/bits of the file (mandatory) any
r2 -v full output, not truncated (mandatory) radare2 3.5.0-git 21446 @ linux-x86-64 git.3.4.1-26-g0096dbfdb commit: 0096dbf build: 2019-04-06__16:17:44
Actual behavior
segmentation fault
Steps to reproduce the behavior
$ r2 yourbinary
> aaa
> s main
> VV
then in graph view, press and maintain for a while : SHIFT+R to randomize color.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
do u have r2 from git and r2 from ubuntu installed at the same time? maybe passte the output of r2 -V ? or a backtrace or build it with asan and paste the crashlog? |
I can't reproduce this crash on my second machine. I try with xterm, gnome-terminal, Tilix + combination of bash and fish shell. Same result, it crash with segfault.
|
So in theory just doing “eco white2” should be enough to reproduce the crash. Build it with asan and paste the crashlog. That should be enough to make me understand the reason for the crash
… On 8 Apr 2019, at 19:43, tonybounty ***@***.***> wrote:
Cant reproduce. Can you provide a backtrace?
…
On 8 Apr 2019, at 00:02, tonybounty ***@***.***> wrote: Work environment Questions Answers OS/arch/bits (mandatory) Ubuntu x86 64 File format of the file you reverse (mandatory) any Architecture/bits of the file (mandatory) any r2 -v full output, not truncated (mandatory) radare2 3.5.0-git 21446 @ linux-x86-64 git.3.4.1-26-g0096dbfdb commit: 0096dbf build: 2019-04-06__16:17:44 Actual behavior segmentation fault Steps to reproduce the behavior $ r2 yourbinary > aaa > s main > VV then in graph view, press and maintain for a while : SHIFT+R to randomize color. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
I can't reproduce this crash on my second machine. I try with xterm, gnome-terminal, Tilix + combination of bash and fish shell. Same result, it crash with segfault.
Program received signal SIGSEGV, Segmentation fault.
tcache_get (tc_idx=1) at malloc.c:2927
2927 malloc.c: No such file or directory.
(gdb) backtrace
#0 tcache_get (tc_idx=1) at malloc.c:2927
#1 __GI___libc_malloc (bytes=40) at malloc.c:3034
#2 0x00007fc1a504ca3c in reserve_kv (ht=0x55c615985ca0, key=0x55c61597bac0, key_len=10, update=false) at ht_inc.c:204
#3 0x00007fc1a504cad8 in ht_pp_insert_kv (ht=0x55c615985ca0, kv=0x55c6159e6e70, update=false) at ht_inc.c:216
#4 0x00007fc1a504c782 in internal_ht_grow (ht=0x55c615b446f0) at ht_inc.c:171
#5 0x00007fc1a504c93c in check_growing (ht=0x55c615b446f0) at ht_inc.c:185
#6 0x00007fc1a504cb11 in ht_pp_insert_kv (ht=0x55c615b446f0, kv=0x55c615936af0, update=true) at ht_inc.c:222
#7 0x00007fc1a504d525 in sdb_ht_insert_kvp (ht=0x55c615b446f0, kvp=0x55c615936af0, update=true) at sdbht.c:46
#8 0x00007fc1a5056df2 in sdb_set_internal (s=0x55c615b86120, key=0x7fc1a50b64a0 <Key.4429+768> "rgb:8787ff", val=0x7fc1a51578ff "1", owned=0, cas=0) at sdb.c:623
#9 0x00007fc1a5056ea3 in sdb_set (s=0x55c615b86120, key=0x7fc1a50b64a0 <Key.4429+768> "rgb:8787ff", val=0x7fc1a51578ff "1", cas=0) at sdb.c:637
#10 0x00007fc1a515126f in cons_pal_update_event (ctx=0x7fc1a515d040 <r_cons_context_default>) at pal.c:600
#11 0x00007fc1a515137e in r_cons_pal_update_event () at pal.c:616
#12 0x00007fc1a4387930 in cmd_eval (data=0x7fc1a53a2080 <r>, input=0x55c615b6e641 "c ai.exec rgb:6d6") at cmd_eval.c:492
#13 0x00007fc1a444311b in r_cmd_call (cmd=0x55c6155f4760, input=0x55c615b6e640 "ec ai.exec rgb:6d6") at cmd_api.c:246
#14 0x00007fc1a43f2454 in r_core_cmd_subst_i (core=0x7fc1a53a2080 <r>, cmd=0x55c615b6e640 "ec ai.exec rgb:6d6", colon=0x0, tmpseek=0x7ffd65f93012) at cmd.c:3040
#15 0x00007fc1a43eecd8 in r_core_cmd_subst (core=0x7fc1a53a2080 <r>, cmd=0x55c615b6e640 "ec ai.exec rgb:6d6") at cmd.c:2026
#16 0x00007fc1a43f4b73 in r_core_cmd (core=0x7fc1a53a2080 <r>, cstr=0x55c615bcea70 "ec ai.exec rgb:6d6", log=0) at cmd.c:3774
#17 0x00007fc1a43f4d98 in r_core_cmd_lines (core=0x7fc1a53a2080 <r>,
lines=0x55c615ba3e60 "ec ai.exec rgb:6d6\nec ai.read rgb:66d\nec ai.write rgb:d66\nec args rgb:2bc\nec b0x00 rgb:878585", ' ' <repeats 13 times>, "# 00 bytes\nec b0x7f rgb:fff\nec b0xff rgb:abb0b6", ' ' <repeats 13 times>, "# ff bytes\nec bin rgb:4F1900 0 bol"...) at cmd.c:3827
#18 0x00007fc1a43f4ef7 in r_core_cmd_file (core=0x7fc1a53a2080 <r>, file=0x55c615905630 "/home/tony/bin/prefix/radare2/share/radare2/3.5.0-git/cons/white2") at cmd.c:3864
#19 0x00007fc1a4386307 in load_theme (core=0x7fc1a53a2080 <r>, path=0x55c615905630 "/home/tony/bin/prefix/radare2/share/radare2/3.5.0-git/cons/white2") at cmd_eval.c:78
#20 0x00007fc1a4386561 in cmd_load_theme (core=0x7fc1a53a2080 <r>, _arg=0x55c615b5cc64 "white2") at cmd_eval.c:134
#21 0x00007fc1a4387108 in cmd_eval (data=0x7fc1a53a2080 <r>, input=0x55c615b5cc61 "co white2") at cmd_eval.c:363
#22 0x00007fc1a444311b in r_cmd_call (cmd=0x55c6155f4760, input=0x55c615b5cc60 "eco white2") at cmd_api.c:246
#23 0x00007fc1a43f2454 in r_core_cmd_subst_i (core=0x7fc1a53a2080 <r>, cmd=0x55c615b5cc60 "eco white2", colon=0x0, tmpseek=0x7ffd65f93772) at cmd.c:3040
#24 0x00007fc1a43eecd8 in r_core_cmd_subst (core=0x7fc1a53a2080 <r>, cmd=0x55c615b5cc60 "eco white2") at cmd.c:2026
#25 0x00007fc1a43f4b73 in r_core_cmd (core=0x7fc1a53a2080 <r>, cstr=0x7ffd65f93880 "eco white2", log=0) at cmd.c:3774
#26 0x00007fc1a43f527b in r_core_cmdf (core=0x7fc1a53a2080 <r>, fmt=0x7fc1a44b4d46 "eco %s") at cmd.c:3933
#27 0x00007fc1a4386bca in nextpal (core=0x7fc1a53a2080 <r>, mode=110) at cmd_eval.c:273
#28 0x00007fc1a4387403 in cmd_eval (data=0x7fc1a53a2080 <r>, input=0x55c61596acd1 "cn") at cmd_eval.c:416
#29 0x00007fc1a444311b in r_cmd_call (cmd=0x55c6155f4760, input=0x55c61596acd0 "ecn") at cmd_api.c:246
#30 0x00007fc1a43f2454 in r_core_cmd_subst_i (core=0x7fc1a53a2080 <r>, cmd=0x55c61596acd0 "ecn", colon=0x0, tmpseek=0x7ffd65f94f42) at cmd.c:3040
#31 0x00007fc1a43eecd8 in r_core_cmd_subst (core=0x7fc1a53a2080 <r>, cmd=0x55c61596acd0 "ecn") at cmd.c:2026
#32 0x00007fc1a43f4b73 in r_core_cmd (core=0x7fc1a53a2080 <r>, cstr=0x7fc1a44dfc81 "ecn", log=0) at cmd.c:3774
#33 0x00007fc1a43f52c8 in r_core_cmd0 (core=0x7fc1a53a2080 <r>, cmd=0x7fc1a44dfc81 "ecn") at cmd.c:3939
#34 0x00007fc1a44280d9 in r_core_visual_graph (core=0x7fc1a53a2080 <r>, g=0x55c61598f860, _fcn=0x0, is_interactive=1) at graph.c:4397
#35 0x00007fc1a4411535 in r_core_visual_cmd (core=0x7fc1a53a2080 <r>, arg=0x55c6159dbd71 "V") at visual.c:2703
#36 0x00007fc1a4415807 in r_core_visual (core=0x7fc1a53a2080 <r>, input=0x55c6159dbd71 "V") at visual.c:3891
#37 0x00007fc1a43ed359 in cmd_visual (data=0x7fc1a53a2080 <r>, input=0x55c6159dbd71 "V") at cmd.c:1397
#38 0x00007fc1a444311b in r_cmd_call (cmd=0x55c6155f4760, input=0x55c6159dbd70 "VV") at cmd_api.c:246
#39 0x00007fc1a43f2454 in r_core_cmd_subst_i (core=0x7fc1a53a2080 <r>, cmd=0x55c6159dbd70 "VV", colon=0x0, tmpseek=0x7ffd65f96a02) at cmd.c:3040
#40 0x00007fc1a43eecd8 in r_core_cmd_subst (core=0x7fc1a53a2080 <r>, cmd=0x55c6159dbd70 "VV") at cmd.c:2026
#41 0x00007fc1a43f4b73 in r_core_cmd (core=0x7fc1a53a2080 <r>, cstr=0x55c61592b640 "VV", log=1) at cmd.c:3774
#42 0x00007fc1a434ec6e in r_core_prompt_exec (r=0x7fc1a53a2080 <r>) at core.c:3001
#43 0x00007fc1a5392875 in r_main_radare2 (argc=2, argv=0x7ffd65f96eb8) at radare2.c:1443
#44 0x000055c613bec155 in main (argc=2, argv=0x7ffd65f96eb8) at radare2.c:48
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I use only the git version, Ubuntu version was never installed. If BT is insufficient, I will compile with Asan
|
"eco white2" work without crash
|
Can you try this patch?
|
please confirm thhe fix with this patch |
sorry I didn't see that you respond. With patch, I can't reproduce the segfault. |
So the second patch is also correct? I will commit it then
… On 9 Apr 2019, at 19:43, tonybounty ***@***.***> wrote:
sorry I didn't see that you respond.
With patch, I can't reproduce the segfault.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
yep 👍 with the last patch I pressed >1min SHIFT+R in graph view without crash. |
Work environment
Actual behavior
segmentation fault
Steps to reproduce the behavior
then in graph view, press and maintain for a while : SHIFT+R to randomize color.
The text was updated successfully, but these errors were encountered: