{"action":"created","issue":{"url":"https://api.github.com/repos/tbodt/ish/issues/62","repository_url":"https://api.github.com/repos/tbodt/ish","labels_url":"https://api.github.com/repos/tbodt/ish/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/tbodt/ish/issues/62/comments","events_url":"https://api.github.com/repos/tbodt/ish/issues/62/events","html_url":"https://github.com/tbodt/ish/issues/62","id":379962719,"node_id":"MDU6SXNzdWUzNzk5NjI3MTk=","number":62,"title":"illegal instruction (fsubr)","user":{"login":"lunixbochs","id":117642,"node_id":"MDQ6VXNlcjExNzY0Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/117642?v=4","gravatar_id":"","url":"https://api.github.com/users/lunixbochs","html_url":"https://github.com/lunixbochs","followers_url":"https://api.github.com/users/lunixbochs/followers","following_url":"https://api.github.com/users/lunixbochs/following{/other_user}","gists_url":"https://api.github.com/users/lunixbochs/gists{/gist_id}","starred_url":"https://api.github.com/users/lunixbochs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunixbochs/subscriptions","organizations_url":"https://api.github.com/users/lunixbochs/orgs","repos_url":"https://api.github.com/users/lunixbochs/repos","events_url":"https://api.github.com/users/lunixbochs/events{/privacy}","received_events_url":"https://api.github.com/users/lunixbochs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-12T21:39:20Z","updated_at":"2018-11-18T02:45:46Z","closed_at":"2018-11-18T02:45:46Z","author_association":"CONTRIBUTOR","body":"```\r\n2 080481f7 --- cycle 31533\r\n2 08048357 --- compiling:\r\n2 08048357  55 push obp\r\n2 08048358  89 mov reg, modrm   reg=esp opcode=4 base=ebp\r\n2 0804835a  83 grp1 imm8, modrm reg=ebp opcode=5 base=esp imm 18 sub\r\n2 0804835d  d9 fpu          reg=edi opcode=7 base=ebp offset=-0xfffffff6 fnstcw mem16\r\n2 08048360  dd fpu          reg=eax opcode=0 base=ebp offset=0x8 fld mem64\r\n2 08048363  d9 fpu          reg=eax opcode=0 base=eax fld st(i)\r\n2 08048365  66 entering 16 bit mode\r\n2 08048366  8b mov modrm, reg   reg=eax opcode=0 base=ebp offset=-0xfffffff6\r\n2 08048369  80 grp1 imm8, modrm8    reg=ecx opcode=1 base=esp imm c or\r\n2 0804836c  66 entering 16 bit mode\r\n2 0804836d  89 mov reg, modrm   reg=eax opcode=0 base=ebp offset=-0xfffffff4\r\n2 08048370  d9 fpu          reg=eax opcode=0 base=eax fld st(i)\r\n2 08048372  d9 fpu          reg=ebp opcode=5 base=ebp offset=-0xfffffff4 fldcw mem16\r\n2 08048375  df fpu          reg=edi opcode=7 base=ebp offset=-0xffffffe8 fistp mem64\r\n2 08048378  d9 fpu          reg=ebp opcode=5 base=ebp offset=-0xfffffff6 fldcw mem16\r\n2 0804837b  8b mov modrm, reg   reg=eax opcode=0 base=ebp offset=-0xffffffe8\r\n2 0804837e  8b mov modrm, reg   reg=edx opcode=2 base=ebp offset=-0xffffffec\r\n2 08048381  89 mov reg, modrm   reg=eax opcode=0 base=ebp offset=-0xffffffe8\r\n2 08048384  89 mov reg, modrm   reg=edx opcode=2 base=ebp offset=-0xffffffec\r\n2 08048387  df fpu          reg=ebp opcode=5 base=ebp offset=-0xffffffe8 fild mem64\r\n2 0804838a  dd fpu          reg=ebx opcode=3 base=ebp offset=-0xfffffff8 fstp mem64\r\n2 0804838d  dd fpu          reg=eax opcode=0 base=ebp offset=-0xfffffff8 fld mem64\r\n2 08048390  d8 fpu          reg=ebp opcode=5 base=edx undefined2 08048357 --- cycle 31534\r\n\r\n2 illegal instruction at 0x8048390: d8 ea dd 5d f8 dd 45 f8\r\n```\r\n\r\n```\r\n$ rasm2 -d 'd8eadd5df8dd45f8'\r\nfsubr st(2)\r\nfstp qword [ebp - 8]\r\nfld qword [ebp - 8]\r\n```\r\n\r\nRepro: [x86.linux.elf.zip](https://github.com/tbodt/ish/files/2573705/x86.linux.elf.zip)\r\n\r\nHere's the block executing correctly in usercorn:\r\n\r\n```\r\nmain+0x110\r\n0x8048357: push ebp                         |    esp = 0xbffff938 | W bffff938\r\nR 0xbffff940: 9a999999 9999f13f             [.......?            ] R\r\nW 0xbffff93c: 08820408                      [....                ] W\r\n0x8048358: mov ebp, esp                     |    ebp = 0xbffff938\r\n0x804835a: sub esp, 0x18                    | eflags = 0x00000080\r\n                                            +    esp = 0xbffff920\r\n0x804835d: fnstcw word ptr [ebp - 0xa]      |                     | W bffff92e\r\n0x8048360: fld qword ptr [ebp + 8]          |                     | R bffff940\r\n0x8048363: fld st(0)                        |                    \r\n0x8048365: mov ax, word ptr [ebp - 0xa]     |                     | R bffff92e\r\n0x8048369: or ah, 0xc                       |    eax = 0x00000c00\r\n                                            + eflags = 0x00000004\r\n0x804836c: mov word ptr [ebp - 0xc], ax     |                     | W bffff92c\r\n0x8048370: fld st(0)                        |                    \r\n0x8048372: fldcw word ptr [ebp - 0xc]       |                     | R bffff92c\r\n0x8048375: fistp qword ptr [ebp - 0x18]     |                     | W bffff920\r\n0x8048378: fldcw word ptr [ebp - 0xa]       |                     | R bffff92e\r\n0x804837b: mov eax, dword ptr [ebp - 0x18]  |    eax = 0x00000001 | R bffff920\r\n0x804837e: mov edx, dword ptr [ebp - 0x14]  |    edx = 0x00000000 | R bffff924\r\n0x8048381: mov dword ptr [ebp - 0x18], eax  |                     | W bffff920\r\n0x8048384: mov dword ptr [ebp - 0x14], edx  |                     | W bffff924\r\n0x8048387: fild qword ptr [ebp - 0x18]      |                     | R bffff920\r\n0x804838a: fstp qword ptr [ebp - 8]         |                     | W bffff930\r\n0x804838d: fld qword ptr [ebp - 8]          |                     | R bffff930\r\n0x8048390: fsubr st(2)                      |                    \r\n0x8048392: fstp qword ptr [ebp - 8]         |                     | W bffff930\r\n0x8048395: fld qword ptr [ebp - 8]          |                     | R bffff930\r\n0x8048398: fldz                             |                    \r\n0x804839a: fxch st(1)                       |                    \r\n0x804839c: fucomi st(1)                     | eflags = 0x00000000\r\n0x804839e: fstp st(1)                       |                    \r\n0x80483a0: jp 0x80483a8                     |                    \r\n```\r\n\r\nEdit: looks like this is just some fpu instructions generally missing"},"comment":{"url":"https://api.github.com/repos/tbodt/ish/issues/comments/439663357","html_url":"https://github.com/tbodt/ish/issues/62#issuecomment-439663357","issue_url":"https://api.github.com/repos/tbodt/ish/issues/62","id":439663357,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTY2MzM1Nw==","user":{"login":"tbodt","id":5678977,"node_id":"MDQ6VXNlcjU2Nzg5Nzc=","avatar_url":"https://avatars1.githubusercontent.com/u/5678977?v=4","gravatar_id":"","url":"https://api.github.com/users/tbodt","html_url":"https://github.com/tbodt","followers_url":"https://api.github.com/users/tbodt/followers","following_url":"https://api.github.com/users/tbodt/following{/other_user}","gists_url":"https://api.github.com/users/tbodt/gists{/gist_id}","starred_url":"https://api.github.com/users/tbodt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbodt/subscriptions","organizations_url":"https://api.github.com/users/tbodt/orgs","repos_url":"https://api.github.com/users/tbodt/repos","events_url":"https://api.github.com/users/tbodt/events{/privacy}","received_events_url":"https://api.github.com/users/tbodt/received_events","type":"User","site_admin":false},"created_at":"2018-11-18T02:45:46Z","updated_at":"2018-11-18T02:45:46Z","author_association":"OWNER","body":"Fixed in some commit I forgot which"}}
{"actor":{"display_login":"tbodt"}}