id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc,phab_field 2338,[PATCH] Crash in FreeUPnPUrls on OS X 64-bit,Petr,Echelon9,"When I go to Multiplayer / Host game, 0AD will crash back to my desktop. This happens always. I am using Alpha 15 64bit, latest MAC OS X, !MacBook Pro. The crashing thread in both reports is thread 10 (the UPnP thread). The error is in both cases ""pointer being freed was not allocated"" in FreeUPnPUrls(), so we seem to have an incorrect pointer in the urls struct. (Possibly unrelated, but GetUPNPUrls() doesn't check for success of malloc) {{{ Thread 10 Crashed: 0 libsystem_kernel.dylib 0x00007fff8dc6b866 __pthread_kill + 10 1 libsystem_pthread.dylib 0x00007fff94c7b35c pthread_kill + 92 2 libsystem_c.dylib 0x00007fff9008dbba abort + 125 3 libsystem_malloc.dylib 0x00007fff91a06093 free + 411 4 com.wildfiregames.0ad 0x000000010067b328 FreeUPNPUrls + 152 5 com.wildfiregames.0ad 0x0000000100018aba CNetServerWorker::SetupUPnP(void*) + 1438 6 libsystem_pthread.dylib 0x00007fff94c7a899 _pthread_body + 138 7 libsystem_pthread.dylib 0x00007fff94c7a72a _pthread_start + 137 8 libsystem_pthread.dylib 0x00007fff94c7efc9 thread_start + 13 }}} {{{ Thread 10 Crashed: 0 libsystem_kernel.dylib 0x00007fff8dc6b866 __pthread_kill + 10 1 libsystem_pthread.dylib 0x00007fff94c7b35c pthread_kill + 92 2 libsystem_c.dylib 0x00007fff9008dbba abort + 125 3 libsystem_malloc.dylib 0x00007fff91a06093 free + 411 4 com.wildfiregames.0ad 0x000000010067b328 FreeUPNPUrls + 152 5 com.wildfiregames.0ad 0x0000000100018aba CNetServerWorker::SetupUPnP(void*) + 1438 6 libsystem_pthread.dylib 0x00007fff94c7a899 _pthread_body + 138 7 libsystem_pthread.dylib 0x00007fff94c7a72a _pthread_start + 137 8 libsystem_pthread.dylib 0x00007fff94c7efc9 thread_start + 13 }}}",defect,closed,Release Blocker,Alpha 17,Core engine,fixed,patch,,