{"action":"created","issue":{"url":"https://api.github.com/repos/radare/radare2/issues/2158","labels_url":"https://api.github.com/repos/radare/radare2/issues/2158/labels{/name}","comments_url":"https://api.github.com/repos/radare/radare2/issues/2158/comments","events_url":"https://api.github.com/repos/radare/radare2/issues/2158/events","html_url":"https://github.com/radare/radare2/issues/2158","id":59728378,"number":2158,"title":"webfrontend open dialog/0xb70dd404 in r_io_def_mmap_seek","user":{"login":"zonkzonk","id":5694980,"avatar_url":"https://avatars.githubusercontent.com/u/5694980?v=3","gravatar_id":"","url":"https://api.github.com/users/zonkzonk","html_url":"https://github.com/zonkzonk","followers_url":"https://api.github.com/users/zonkzonk/followers","following_url":"https://api.github.com/users/zonkzonk/following{/other_user}","gists_url":"https://api.github.com/users/zonkzonk/gists{/gist_id}","starred_url":"https://api.github.com/users/zonkzonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zonkzonk/subscriptions","organizations_url":"https://api.github.com/users/zonkzonk/orgs","repos_url":"https://api.github.com/users/zonkzonk/repos","events_url":"https://api.github.com/users/zonkzonk/events{/privacy}","received_events_url":"https://api.github.com/users/zonkzonk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-04T00:03:03Z","updated_at":"2015-03-04T21:13:03Z","closed_at":null,"body":"morn,\r\n\r\njust testing a bit the new webfrontend. I got two core dumps. One is using this in the open dialog:\r\n(512xA). I always started by /p then going back to localhost:9090:\r\n\r\n```\r\ndisassemble error at offset 251\r\ndisassemble error at offset 252\r\ndisassemble error at offset 253\r\ndisassemble error at offset 254\r\nSegmentation fault (core dumped)\r\nzlul@debian:~$ gdb -q r2 core\r\nReading symbols from /usr/local/bin/r2...done.\r\n[New LWP 26645]\r\n\r\nwarning: Can't read pathname for load map: Input/output error.\r\n[Thread debugging using libthread_db enabled]\r\nUsing host libthread_db library \"/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1\".\r\nCore was generated by `r2 -c=H /bin/ls'.\r\nProgram terminated with signal 11, Segmentation fault.\r\n#0  0xb70dd404 in r_io_def_mmap_seek (io=0x9346828, mmo=0x20666678, offset=0, \r\n    whence=0) at p/io_default.c:279\r\n279\t\tif (mmo->rawio)\r\n(gdb) list\r\n274\t\r\n275\tstatic ut64 r_io_def_mmap_seek(RIO *io, RIOMMapFileObj *mmo, ut64 offset, int whence) {\r\n276\t\tut64 seek_val = UT64_MAX;\r\n277\t\r\n278\t\tif (!mmo) return UT64_MAX;\r\n279\t\tif (mmo->rawio)\r\n280\t\t\treturn lseek (mmo->fd, offset, whence);\r\n281\t\tif (!mmo->buf) return UT64_MAX;\r\n282\t\r\n283\t\tseek_val = mmo->buf->cur;\r\n\r\n```\r\nGreetings\r\n--zlul\r\n\r\n$ uname -srm; cat /etc/debian_version ; r2 -v\r\nLinux 3.2.0-4-686-pae i686\r\n7.8\r\nradare2 0.9.9-git 7220 @ linux-little-x86-32 git.0.9.8-872-g3c998ab\r\ncommit: 3c998abaa9c3392b7c428847eddfa7f3cf603b4c build: 2015-03-03\r\n\r\n\r\nbtw. the other core dump, I could not get a bt: last lines were:\r\n\"disassemble error at offset 253\r\ndisassemble error at offset 254\r\n[HTTP] 127.0.0.1:48526 /cmd/pdj%20100@0x\r\n^C^C^C^CSegmentation fault (core dumped)\r\n\""},"comment":{"url":"https://api.github.com/repos/radare/radare2/issues/comments/77248600","html_url":"https://github.com/radare/radare2/issues/2158#issuecomment-77248600","issue_url":"https://api.github.com/repos/radare/radare2/issues/2158","id":77248600,"user":{"login":"zonkzonk","id":5694980,"avatar_url":"https://avatars.githubusercontent.com/u/5694980?v=3","gravatar_id":"","url":"https://api.github.com/users/zonkzonk","html_url":"https://github.com/zonkzonk","followers_url":"https://api.github.com/users/zonkzonk/followers","following_url":"https://api.github.com/users/zonkzonk/following{/other_user}","gists_url":"https://api.github.com/users/zonkzonk/gists{/gist_id}","starred_url":"https://api.github.com/users/zonkzonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zonkzonk/subscriptions","organizations_url":"https://api.github.com/users/zonkzonk/orgs","repos_url":"https://api.github.com/users/zonkzonk/repos","events_url":"https://api.github.com/users/zonkzonk/events{/privacy}","received_events_url":"https://api.github.com/users/zonkzonk/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T21:13:03Z","updated_at":"2015-03-04T21:13:03Z","body":"```\r\nProgram terminated with signal 11, Segmentation fault.\r\n#0  0xb697a3f4 in _IO_default_xsputn (f=0xbf9a36fc, data=0xb77b5ce8, n=9)\r\n    at genops.c:480\r\n480\tgenops.c: No such file or directory.\r\n(gdb) bt\r\n#0  0xb697a3f4 in _IO_default_xsputn (f=0xbf9a36fc, data=0xb77b5ce8, n=9)\r\n    at genops.c:480\r\n#1  0xb694b87c in _IO_vfprintf_internal (s=0xbf9a36fc, \r\n    format=0xb77b5ce8 \"\\\"offset\\\":%lld\", ap=0xbf9a3824 \"\\004\\373\\031\\002\")\r\n    at vfprintf.c:1342\r\n#2  0xb6970d80 in _IO_vsnprintf (\r\n    string=0xb6877ffc \"\\\"off\" <Address 0xb6878000 out of bounds>, \r\n    maxlen=4294963211, format=0xb77b5ce8 \"\\\"offset\\\":%lld\", \r\n    args=0xbf9a3824 \"\\004\\373\\031\\002\") at vsnprintf.c:120\r\n#3  0xb76b3d72 in r_cons_printf (format=0xb77b5ce8 \"\\\"offset\\\":%lld\")\r\n    at cons.c:501\r\n#4  0xb778cd80 in r_core_print_disasm_json (core=0x804e4e0, addr=0, \r\n    buf=0xbf9a3cec \"\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\\377\"..., nb_bytes=256, nb_opcodes=100) at disasm.c:2462\r\n---Type <return> to continue, or q <return> to quit---\r\n#5  0xb773b16d in cmd_pdj (core=0x804e4e0, arg=0x95e2cbb \" 100\")\r\n    at cmd_print.c:32\r\n#6  0xb77412c3 in cmd_print (data=0x804e4e0, input=0x95e2cb9 \"dj 100\")\r\n    at cmd_print.c:1534\r\n#7  0xb7773d0e in r_cmd_call (cmd=0x9353238, input=0x95e2cb8 \"pdj 100\")\r\n    at cmd_api.c:179\r\n#8  0xb7750c64 in r_core_cmd_subst_i (core=0x804e4e0, cmd=0x95e2cb8 \"pdj 100\", \r\n    colon=0x0) at cmd.c:1425\r\n#9  0xb774f69b in r_core_cmd_subst (core=0x804e4e0, cmd=0x95e2cb8 \"pdj 100\")\r\n    at cmd.c:982\r\n#10 0xb7751c63 in r_core_cmd_str_pipe (core=0x804e4e0, \r\n    cmd=0x9711675 \"pdj 100@0x\") at cmd.c:1771\r\n#11 0xb7770dab in r_core_rtr_http_run (core=0x804e4e0, launch=72, \r\n    path=0x9373710 \"p\") at rtr.c:575\r\n#12 0xb7771778 in r_core_rtr_http (core=0x804e4e0, launch=72, \r\n    path=0x937634a \"\") at rtr.c:726\r\n#13 0xb774d12c in cmd_rap (data=0x804e4e0, input=0x9376349 \"H\") at cmd.c:186\r\n#14 0xb7773d0e in r_cmd_call (cmd=0x9353238, input=0x9376348 \"=H\")\r\n    at cmd_api.c:179\r\n#15 0xb7750cec in r_core_cmd_subst_i (core=0x804e4e0, cmd=0x9376348 \"=H\", \r\n    colon=0x0) at cmd.c:1438\r\n#16 0xb774f69b in r_core_cmd_subst (core=0x804e4e0, cmd=0x9376348 \"=H\")\r\n    at cmd.c:982\r\n---Type <return> to continue, or q <return> to quit---\r\n```\r\nit seems so"}}