Changes between Version 9 and Version 10 of Ticket #2338


Ignore:
Timestamp:
Jan 8, 2014, 1:14:45 AM (10 years ago)
Author:
leper
Comment:

Both crashes are because of a free of something that wasn't allocated in the UPnP thread. (FreeUPnPUrls())

Petrsharks: Could you try to host once more and attach the mainlog.html file from GameDataPaths?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2338

    • Property Component UI & SimulationCore engine
    • Property Summary Crash when hosting game on 64 bit MACCrash in FreeUPnPUrls on OS X 64-bit
  • Ticket #2338 – Description

    v9 v10  
    1 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.
     1When 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.
     2
     3The 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)
     4
     5{{{
     6Thread 10 Crashed:
     70   libsystem_kernel.dylib          0x00007fff8dc6b866 __pthread_kill + 10
     81   libsystem_pthread.dylib         0x00007fff94c7b35c pthread_kill + 92
     92   libsystem_c.dylib               0x00007fff9008dbba abort + 125
     103   libsystem_malloc.dylib          0x00007fff91a06093 free + 411
     114   com.wildfiregames.0ad           0x000000010067b328 FreeUPNPUrls + 152
     125   com.wildfiregames.0ad           0x0000000100018aba CNetServerWorker::SetupUPnP(void*) + 1438
     136   libsystem_pthread.dylib         0x00007fff94c7a899 _pthread_body + 138
     147   libsystem_pthread.dylib         0x00007fff94c7a72a _pthread_start + 137
     158   libsystem_pthread.dylib         0x00007fff94c7efc9 thread_start + 13
     16}}}
     17
     18
     19{{{
     20Thread 10 Crashed:
     210   libsystem_kernel.dylib          0x00007fff8dc6b866 __pthread_kill + 10
     221   libsystem_pthread.dylib         0x00007fff94c7b35c pthread_kill + 92
     232   libsystem_c.dylib               0x00007fff9008dbba abort + 125
     243   libsystem_malloc.dylib          0x00007fff91a06093 free + 411
     254   com.wildfiregames.0ad           0x000000010067b328 FreeUPNPUrls + 152
     265   com.wildfiregames.0ad           0x0000000100018aba CNetServerWorker::SetupUPnP(void*) + 1438
     276   libsystem_pthread.dylib         0x00007fff94c7a899 _pthread_body + 138
     287   libsystem_pthread.dylib         0x00007fff94c7a72a _pthread_start + 137
     298   libsystem_pthread.dylib         0x00007fff94c7efc9 thread_start + 13
     30}}}