{"action":"created","issue":{"url":"https://api.github.com/repos/RigsOfRods/rigs-of-rods/issues/233","labels_url":"https://api.github.com/repos/RigsOfRods/rigs-of-rods/issues/233/labels{/name}","comments_url":"https://api.github.com/repos/RigsOfRods/rigs-of-rods/issues/233/comments","events_url":"https://api.github.com/repos/RigsOfRods/rigs-of-rods/issues/233/events","html_url":"https://github.com/RigsOfRods/rigs-of-rods/issues/233","id":85009952,"number":233,"title":"Segfault on Archlinux i686","user":{"login":"tritonas00","id":2660424,"avatar_url":"https://avatars.githubusercontent.com/u/2660424?v=3","gravatar_id":"","url":"https://api.github.com/users/tritonas00","html_url":"https://github.com/tritonas00","followers_url":"https://api.github.com/users/tritonas00/followers","following_url":"https://api.github.com/users/tritonas00/following{/other_user}","gists_url":"https://api.github.com/users/tritonas00/gists{/gist_id}","starred_url":"https://api.github.com/users/tritonas00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tritonas00/subscriptions","organizations_url":"https://api.github.com/users/tritonas00/orgs","repos_url":"https://api.github.com/users/tritonas00/repos","events_url":"https://api.github.com/users/tritonas00/events{/privacy}","received_events_url":"https://api.github.com/users/tritonas00/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RigsOfRods/rigs-of-rods/labels/crash","name":"crash","color":"eb6420"},{"url":"https://api.github.com/repos/RigsOfRods/rigs-of-rods/labels/Linux","name":"Linux","color":"fbca19"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-06-04T09:45:17Z","updated_at":"2015-06-24T10:50:39Z","closed_at":null,"body":"While the game compiles and runs fine on Arch x86_64, on i686 segfaults when loading map (any)\r\n\r\nI tried to compile with -DCMAKE_BUILD_TYPE=DEBUG but gdb doesn't show anything interesting (i think)\r\n\r\n    Executing main()\r\n    [New Thread 0xa3dc2b40 (LWP 5988)]\r\n    [New Thread 0xa45c3b40 (LWP 5987)]\r\n    [New Thread 0xa4dc4b40 (LWP 5986)]\r\n    [New Thread 0xa55c5b40 (LWP 5985)]\r\n    [New Thread 0xa5dc6b40 (LWP 5984)]\r\n    [New Thread 0xa65c7b40 (LWP 5983)]\r\n    [New Thread 0xa6dc8b40 (LWP 5982)]\r\n    [New Thread 0xa75c9b40 (LWP 5981)]\r\n    [New Thread 0xa95ecb40 (LWP 5980)]\r\n    [New Thread 0xa7c01b40 (LWP 5979)]\r\n    [New Thread 0xaaeffb40 (LWP 5976)]\r\n    [New Thread 0xab8ffb40 (LWP 5975)]\r\n    [New Thread 0xac2ffb40 (LWP 5974)]\r\n    [New Thread 0xaccecb40 (LWP 5973)]\r\n    [New Thread 0xae952b40 (LWP 5972)]\r\n    [New Thread 0xaf153b40 (LWP 5971)]\r\n    [New Thread 0xaf954b40 (LWP 5970)]\r\n    [New Thread 0xb0155b40 (LWP 5969)]\r\n\r\n    Program received signal SIGSEGV, Segmentation fault.\r\n    0x00000000 in ?? ()\r\n\r\nAny tips on this?\r\n"},"comment":{"url":"https://api.github.com/repos/RigsOfRods/rigs-of-rods/issues/comments/114824642","html_url":"https://github.com/RigsOfRods/rigs-of-rods/issues/233#issuecomment-114824642","issue_url":"https://api.github.com/repos/RigsOfRods/rigs-of-rods/issues/233","id":114824642,"user":{"login":"tritonas00","id":2660424,"avatar_url":"https://avatars.githubusercontent.com/u/2660424?v=3","gravatar_id":"","url":"https://api.github.com/users/tritonas00","html_url":"https://github.com/tritonas00","followers_url":"https://api.github.com/users/tritonas00/followers","following_url":"https://api.github.com/users/tritonas00/following{/other_user}","gists_url":"https://api.github.com/users/tritonas00/gists{/gist_id}","starred_url":"https://api.github.com/users/tritonas00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tritonas00/subscriptions","organizations_url":"https://api.github.com/users/tritonas00/orgs","repos_url":"https://api.github.com/users/tritonas00/repos","events_url":"https://api.github.com/users/tritonas00/events{/privacy}","received_events_url":"https://api.github.com/users/tritonas00/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T10:50:39Z","updated_at":"2015-06-24T10:50:39Z","body":"Some progress i think. I rebuild everything with debug symbols (verified with *file* and *objdump --syms*). Now gdb bt shows:\r\n\r\n    #0  0x00000000 in ?? ()\r\n    #1  0xb7254b25 in endcopy1 () at ../../source/as_callfunc_x86.cpp:997\r\n    #2  0x00000000 in ?? ()\r\n\r\nas_callfunc_x86.cpp is part of angelscript source code:\r\nhttp://www.angelcode.com/angelscript/sdk/files/angelscript_2.22.1.zip\r\nunder /sdk/angelscript/source/\r\n\r\nNow looking in the file maybe those lines are usefull:\r\n\r\n\t\t\"je    endcopy1       \\n\"\r\n\t\t\"copyloop1:           \\n\"\r\n\t\t\"subl  $4, %eax       \\n\"\r\n\t\t\"pushl (%eax)         \\n\"\r\n\t\t\"subl  $4, %ecx       \\n\"\r\n\t\t\"jne   copyloop1      \\n\"\r\n\t\t\"endcopy1:            \\n\"\r\n\t\t\"movl  8(%ebp), %ecx  \\n\" // move obj into ECX\r\n\t\t\"pushl 8(%ebp)        \\n\" // push obj on the stack\r\n\t\t\"call  *20(%ebp)      \\n\"\r\n\t\t\"addl  16(%ebp), %esp \\n\" // pop arguments\r\n\t\t\"addl  $4, %esp       \\n\" // pop obj\r\n\r\n\t\t// Pop the alignment bytes\r\n\t\t\"popl  %esp           \\n\"\r\n\r\n\t\t\"popl  %ecx           \\n\");\r\n\r\nAlso the dump is not very usefull i thing: http://pastebin.com/DEwt9HSC\r\n\r\n"}}