{"action":"created","issue":{"url":"https://api.github.com/repos/radare/radare2/issues/11807","repository_url":"https://api.github.com/repos/radare/radare2","labels_url":"https://api.github.com/repos/radare/radare2/issues/11807/labels{/name}","comments_url":"https://api.github.com/repos/radare/radare2/issues/11807/comments","events_url":"https://api.github.com/repos/radare/radare2/issues/11807/events","html_url":"https://github.com/radare/radare2/issues/11807","id":369838573,"node_id":"MDU6SXNzdWUzNjk4Mzg1NzM=","number":11807,"title":"Segfault in idpi","user":{"login":"Maijin","id":1408600,"node_id":"MDQ6VXNlcjE0MDg2MDA=","avatar_url":"https://avatars2.githubusercontent.com/u/1408600?v=4","gravatar_id":"","url":"https://api.github.com/users/Maijin","html_url":"https://github.com/Maijin","followers_url":"https://api.github.com/users/Maijin/followers","following_url":"https://api.github.com/users/Maijin/following{/other_user}","gists_url":"https://api.github.com/users/Maijin/gists{/gist_id}","starred_url":"https://api.github.com/users/Maijin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maijin/subscriptions","organizations_url":"https://api.github.com/users/Maijin/orgs","repos_url":"https://api.github.com/users/Maijin/repos","events_url":"https://api.github.com/users/Maijin/events{/privacy}","received_events_url":"https://api.github.com/users/Maijin/received_events","type":"User","site_admin":false},"labels":[{"id":8289060,"node_id":"MDU6TGFiZWw4Mjg5MDYw","url":"https://api.github.com/repos/radare/radare2/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/radare/radare2/milestones/32","html_url":"https://github.com/radare/radare2/milestone/32","labels_url":"https://api.github.com/repos/radare/radare2/milestones/32/labels","id":3484549,"node_id":"MDk6TWlsZXN0b25lMzQ4NDU0OQ==","number":32,"title":"3.0","description":"","creator":{"login":"XVilka","id":203261,"node_id":"MDQ6VXNlcjIwMzI2MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/203261?v=4","gravatar_id":"","url":"https://api.github.com/users/XVilka","html_url":"https://github.com/XVilka","followers_url":"https://api.github.com/users/XVilka/followers","following_url":"https://api.github.com/users/XVilka/following{/other_user}","gists_url":"https://api.github.com/users/XVilka/gists{/gist_id}","starred_url":"https://api.github.com/users/XVilka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XVilka/subscriptions","organizations_url":"https://api.github.com/users/XVilka/orgs","repos_url":"https://api.github.com/users/XVilka/repos","events_url":"https://api.github.com/users/XVilka/events{/privacy}","received_events_url":"https://api.github.com/users/XVilka/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":111,"state":"closed","created_at":"2018-07-10T03:42:21Z","updated_at":"2018-10-16T01:26:34Z","due_on":"2018-10-15T07:00:00Z","closed_at":"2018-10-16T01:26:34Z"},"comments":2,"created_at":"2018-10-13T20:32:44Z","updated_at":"2018-10-16T11:15:57Z","closed_at":"2018-10-15T17:38:26Z","author_association":"COLLABORATOR","body":"### Work environment\r\n\r\n| Questions                                            | Answers\r\n|------------------------------------------------------|--------------------\r\n| OS/arch/bits (mandatory)                             | OSX 64 bits\r\n| File format of the file you reverse (mandatory)      | PE\r\n| Architecture/bits of the file (mandatory)            | x86 32bits\r\n| r2 -v full output, **not truncated** (mandatory)     | radare2 3.0.0-git 19909 @ darwin-x86-64 git.2.9.0-356-g33dab09e2 commit: 33dab09e2062d0ec964ad6c61b0bf550ebcabcb4 build: 2018-10-13__19:37:56\r\n\r\n### Steps to reproduce the behavior \r\n\r\n- Get binary: [msvcrt40.dll.zip](https://github.com/radare/radare2/files/2475819/msvcrt40.dll.zip)\r\n- `idpd` to get the PDB\r\n- `idpi` get segfault\r\n\r\n```\r\n[0x78080000]> idpi\r\npdb/tpi.c:1537:8: runtime error: member access within misaligned address 0x60b0000399c2 for type 'SCString', which requires 8 byte alignment\r\n0x60b0000399c2: note: pointer points here\r\n 00 00  00 00 be be be be be be  be be be be be be be be  be be be be be be be be  be be be be be be\r\n              ^\r\nSUMMARY: UndefinedBehaviorSanitizer: undefined-behavior pdb/tpi.c:1537:8 in\r\npdb/tpi.c:1537:8: runtime error: store to misaligned address 0x60b0000399ca for type 'char *', which requires 8 byte alignment\r\n0x60b0000399ca: note: pointer points here\r\n be be  be be be be be be be be  be be be be be be be be  be be be be be be be be  be be 00 00 00 00\r\n              ^\r\nSUMMARY: UndefinedBehaviorSanitizer: undefined-behavior pdb/tpi.c:1537:8 in\r\npdb/tpi.c:1518:8: runtime error: member access within misaligned address 0x60b0000399c2 for type 'SCString', which requires 8 byte alignment\r\n0x60b0000399c2: note: pointer points here\r\n 00 00  00 00 be be be be be be  be be 00 00 00 00 00 00  00 00 be be be be be be  be be be be be be\r\n              ^\r\nSUMMARY: UndefinedBehaviorSanitizer: undefined-behavior pdb/tpi.c:1518:8 in\r\npdb/tpi.c:1518:8: runtime error: store to misaligned address 0x60b0000399c2 for type 'unsigned int', which requires 8 byte alignment\r\n0x60b0000399c2: note: pointer points here\r\n 00 00  00 00 be be be be be be  be be 00 00 00 00 00 00  00 00 be be be be be be  be be be be be be\r\n              ^\r\nSUMMARY: UndefinedBehaviorSanitizer: undefined-behavior pdb/tpi.c:1518:8 in\r\npdb/tpi.c:1519:8: runtime error: member access within misaligned address 0x60b0000399c2 for type 'SCString', which requires 8 byte alignment\r\n0x60b0000399c2: note: pointer points here\r\n 00 00  00 00 4a 00 00 00 be be  be be 00 00 00 00 00 00  00 00 be be be be be be  be be be be be be\r\n              ^\r\nSUMMARY: UndefinedBehaviorSanitizer: undefined-behavior pdb/tpi.c:1519:8 in\r\npdb/tpi.c:1519:8: runtime error: store to misaligned address 0x60b0000399ca for type 'char *', which requires 8 byte alignment\r\n0x60b0000399ca: note: pointer points here\r\n be be  be be 00 00 00 00 00 00  00 00 be be be be be be  be be be be be be be be  be be 00 00 00 00\r\n              ^\r\nSUMMARY: UndefinedBehaviorSanitizer: undefined-behavior pdb/tpi.c:1519:8 in\r\npdb/tpi.c:1520:13: runtime error: member access within misaligned address 0x60b0000399c2 for type 'SCString', which requires 8 byte alignment\r\n0x60b0000399c2: note: pointer points here\r\n 00 00  00 00 4a 00 00 00 be be  be be f0 7e 01 00 70 60  00 00 be be be be be be  be be be be be be\r\n              ^\r\nSUMMARY: UndefinedBehaviorSanitizer: undefined-behavior pdb/tpi.c:1520:13 in\r\npdb/tpi.c:1520:13: runtime error: load of misaligned address 0x60b0000399ca for type 'char *', which requires 8 byte alignment\r\n0x60b0000399ca: note: pointer points here\r\n be be  be be f0 7e 01 00 70 60  00 00 be be be be be be  be be be be be be be be  be be 00 00 00 00\r\n              ^\r\nSUMMARY: UndefinedBehaviorSanitizer: undefined-behavior pdb/tpi.c:1520:13 in\r\npdb/tpi.c:1523:16: runtime error: member access within misaligned address 0x60b0000399c2 for type 'SCString', which requires 8 byte alignment\r\n0x60b0000399c2: note: pointer points here\r\n 00 00  00 00 4a 00 00 00 be be  be be f0 7e 01 00 70 60  00 00 be be be be be be  be be be be be be\r\n              ^\r\nSUMMARY: UndefinedBehaviorSanitizer: undefined-behavior pdb/tpi.c:1523:16 in\r\npdb/tpi.c:1523:16: runtime error: load of misaligned address 0x60b0000399ca for type 'char *', which requires 8 byte alignment\r\n0x60b0000399ca: note: pointer points here\r\n be be  be be f0 7e 01 00 70 60  00 00 be be be be be be  be be be be be be be be  be be 00 00 00 00\r\n              ^\r\nSUMMARY: UndefinedBehaviorSanitizer: undefined-behavior pdb/tpi.c:1523:16 in\r\npdb/pdb.c:1116:7: runtime error: member access within misaligned address 0xbebebebebebebebe for type 'RList' (aka 'struct r_list_t'), which requires 8 byte alignment\r\n0xbebebebebebebebe: note: pointer points here\r\n<memory cannot be printed>\r\nSUMMARY: UndefinedBehaviorSanitizer: undefined-behavior pdb/pdb.c:1116:7 in\r\npdb/pdb.c:1116:7: runtime error: load of misaligned address 0xbebebebebebebebe for type 'RListIter *' (aka 'struct r_list_iter_t *'), which requires 8 byte alignment\r\n0xbebebebebebebebe: note: pointer points here\r\n<memory cannot be printed>\r\nSUMMARY: UndefinedBehaviorSanitizer: undefined-behavior pdb/pdb.c:1116:7 in\r\nAddressSanitizer:DEADLYSIGNAL\r\n=================================================================\r\n==90343==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00010c8e29c6 bp 0x7ffee4eb6110 sp 0x7ffee4eb5cc0 T0)\r\n==90343==The signal is caused by a READ memory access.\r\n==90343==Hint: address points to the zero page.\r\n    #0 0x10c8e29c5 in print_gvars pdb.c:1116\r\n    #1 0x10b353de8 in r_core_pdb_info cbin.c:1023\r\n    #2 0x10af47102 in cmd_info .cmd_info.c:643\r\n    #3 0x10b3d2d94 in r_cmd_call cmd_api.c:239\r\n    #4 0x10aff63f0 in r_core_cmd_subst_i cmd.c:2928\r\n    #5 0x10aec0171 in r_core_cmd_subst cmd.c:1936\r\n    #6 0x10aea8169 in r_core_cmd cmd.c:3648\r\n    #7 0x10ae3fac4 in r_core_prompt_exec core.c:2632\r\n    #8 0x10ad5015b in main radare2.c:1442\r\n    #9 0x7fff55913014 in start (libdyld.dylib:x86_64+0x1014)\r\n\r\n==90343==Register values:\r\nrax = 0x0000100000000000  rbx = 0x00007ffee4eb61c0  rcx = 0x17d7d7d7d7d7d7d7  rdx = 0x0000000000000040\r\nrdi = 0x0000000000000000  rsi = 0x00000001124e5588  rbp = 0x00007ffee4eb6110  rsp = 0x00007ffee4eb5cc0\r\n r8 = 0x0000000000000000   r9 = 0x000000000000ef4b  r10 = 0x00007fff55a6378a  r11 = 0x0000000000000202\r\nr12 = 0x000000010b7413a7  r13 = 0x00007ffee4eb8680  r14 = 0x00007ffee4eb6140  r15 = 0x000000010afe3600\r\nAddressSanitizer can not provide additional info.\r\nSUMMARY: AddressSanitizer: SEGV pdb.c:1116 in print_gvars\r\n==90343==ABORTING\r\n```"},"comment":{"url":"https://api.github.com/repos/radare/radare2/issues/comments/430198578","html_url":"https://github.com/radare/radare2/issues/11807#issuecomment-430198578","issue_url":"https://api.github.com/repos/radare/radare2/issues/11807","id":430198578,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDE5ODU3OA==","user":{"login":"Maijin","id":1408600,"node_id":"MDQ6VXNlcjE0MDg2MDA=","avatar_url":"https://avatars2.githubusercontent.com/u/1408600?v=4","gravatar_id":"","url":"https://api.github.com/users/Maijin","html_url":"https://github.com/Maijin","followers_url":"https://api.github.com/users/Maijin/followers","following_url":"https://api.github.com/users/Maijin/following{/other_user}","gists_url":"https://api.github.com/users/Maijin/gists{/gist_id}","starred_url":"https://api.github.com/users/Maijin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maijin/subscriptions","organizations_url":"https://api.github.com/users/Maijin/orgs","repos_url":"https://api.github.com/users/Maijin/repos","events_url":"https://api.github.com/users/Maijin/events{/privacy}","received_events_url":"https://api.github.com/users/Maijin/received_events","type":"User","site_admin":false},"created_at":"2018-10-16T11:15:57Z","updated_at":"2018-10-16T11:15:57Z","author_association":"COLLABORATOR","body":"we have a lot of tests for pdb but looks like for this case there is none, not sure also what to expect though."}}
{"actor":{"display_login":"Maijin"}}