Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sertion at mono-threads.c:1031, condition `info' not met #13813

Open
Miscellaneous opened this issue Apr 3, 2019 · 8 comments
Open

sertion at mono-threads.c:1031, condition `info' not met #13813

Miscellaneous opened this issue Apr 3, 2019 · 8 comments

Comments

@Miscellaneous
Copy link

@Miscellaneous Miscellaneous commented Apr 3, 2019

we are experiencing a critical threading crash with Mono / Unity 2017 on Linux, does anyone know if this been fixed in newer version? or what makes it unstable?

Platform:

  • Linux (headless build), Debian 9, compiled with Unity 2017.4.24f1

Stacktrace:

sertion at mono-threads.c:1031, condition `info' not met                                                                                                                                                                                                                                          [0/0]

/proc/self/maps:                                                                                                                                                                                                                                                     
00400000-02061000 r-xp 00000000 fe:01 132064                             /home/x/Game1/Instance4/server_linux
02260000-022db000 r-xp 01c60000 fe:01 132064                             /home/x/Game1/Instance4/server_linux                                                                                                                                                    
022db000-02311000 rwxp 01cdb000 fe:01 132064                             /home/x/Game1/Instance4/server_linux
02311000-023d8000 rwxp 00000000 00:00 0
02698000-03b6f000 rwxp 00000000 00:00 0                                  [heap]
40b1d000-40c61000 rwxp 00000000 00:00 0
41a3b000-41a4b000 rwxp 00000000 00:00 0
7f1cd4000000-7f1cd4029000 rwxp 00000000 00:00 0                                                                                                                                                                                                               
7f1cd4029000-7f1cd8000000 ---p 00000000 00:00 0
7f1cdba93000-7f1cdba9c000 ---p 00000000 00:00 0
7f1cdba9c000-7f1cdbc94000 rwxp 00000000 00:00 0                                                                                                                                                                                                            
7f1cdbc94000-7f1cdbc95000 ---p 00000000 00:00 0
7f1cdbc95000-7f1cdbfc2000 rwxp 00000000 00:00 0
7f1cdbfc2000-7f1cdc000000 ---p 00000000 00:00 0
7f1cdc000000-7f1cdc029000 rwxp 00000000 00:00 0                                                                                                                                                                                                        
7f1cdc029000-7f1ce0000000 ---p 00000000 00:00 0
7f1ce0000000-7f1ce0029000 rwxp 00000000 00:00 0
7f1ce0029000-7f1ce4000000 ---p 00000000 00:00 0                                                                                                                                                                                                    
7f1ce4000000-7f1ce4034000 rwxp 00000000 00:00 0
7f1ce4034000-7f1ce8000000 ---p 00000000 00:00 0
7f1ce8000000-7f1ce83cc000 rwxp 00000000 00:00 0
7f1ce83cc000-7f1cec000000 ---p 00000000 00:00 0                                                                                                                                                                                             
7f1cec000000-7f1cec324000 rwxp 00000000 00:00 0                                                                                                                                                                                             
7f1cec324000-7f1cf0000000 ---p 00000000 00:00 0                                                                                                                                                                                          
7f1cf0116000-7f1cf0156000 rwxp 00000000 00:00 0                                                                                                                                                                                         
7f1cf0156000-7f1cf015f000 ---p 00000000 00:00 0                                                                                                                                                                                       
7f1cf015f000-7f1cf0467000 rwxp 00000000 00:00 0                                                                                                                                                                                      
7f1cf0467000-7f1cf0470000 ---p 00000000 00:00 0
7f1cf0470000-7f1cf0734000 rwxp 00000000 00:00 0                                                                                                                                                                                  
7f1cf0734000-7f1cf0735000 ---p 00000000 00:00 0
7f1cf0735000-7f1cf0f35000 rwxp 00000000 00:00 0
7f1cf0f35000-7f1cf0f3e000 ---p 00000000 00:00 0                                                                                                                                                                           
7f1cf0f3e000-7f1cf1136000 rwxp 00000000 00:00 0                                                                                                                                                                         
7f1cf1136000-7f1cf1137000 ---p 00000000 00:00 0
7f1cf1137000-7f1cf1337000 rwxp 00000000 00:00 0                                                                                                                                                                      
7f1cf1337000-7f1cf134b000 r-xp 00000000 fe:01 3106                       /lib/x86_64-linux-gnu/libresolv-2.24.so
7f1cf134b000-7f1cf154a000 ---p 00014000 fe:01 3106                       /lib/x86_64-linux-gnu/libresolv-2.24.so                                                                                                   
7f1cf154a000-7f1cf154b000 r-xp 00013000 fe:01 3106                       /lib/x86_64-linux-gnu/libresolv-2.24.so
7f1cf154b000-7f1cf154c000 rwxp 00014000 fe:01 3106                       /lib/x86_64-linux-gnu/libresolv-2.24.so                                                                                               
7f1cf154c000-7f1cf154e000 rwxp 00000000 00:00 0
7f1cf154e000-7f1cf1553000 r-xp 00000000 fe:01 1585                       /lib/x86_64-linux-gnu/libnss_dns-2.24.so
7f1cf1553000-7f1cf1752000 ---p 00005000 fe:01 1585                       /lib/x86_64-linux-gnu/libnss_dns-2.24.so                                                                                         
7f1cf1752000-7f1cf1753000 r-xp 00004000 fe:01 1585                       /lib/x86_64-linux-gnu/libnss_dns-2.24.so
7f1cf1753000-7f1cf1754000 rwxp 00005000 fe:01 1585                       /lib/x86_64-linux-gnu/libnss_dns-2.24.so
7f1cf1754000-7f1cf175e000 r-xp 00000000 fe:01 1586                       /lib/x86_64-linux-gnu/libnss_files-2.24.so                                                                                       
7f1cf175e000-7f1cf195e000 ---p 0000a000 fe:01 1586                       /lib/x86_64-linux-gnu/libnss_files-2.24.so                                                                                       
7f1cf195e000-7f1cf195f000 r-xp 0000a000 fe:01 1586                       /lib/x86_64-linux-gnu/libnss_files-2.24.so                                                                                       
7f1cf195f000-7f1cf1960000 rwxp 0000b000 fe:01 1586                       /lib/x86_64-linux-gnu/libnss_files-2.24.so
7f1cf1960000-7f1cf1966000 rwxp 00000000 00:00 0                                                                                                                                                           
7f1cf1966000-7f1cf1967000 ---p 00000000 00:00 0
7f1cf1967000-7f1cf1b67000 rwxp 00000000 00:00 0
7f1cf1b67000-7f1cf1b68000 ---p 00000000 00:00 0
7f1cf1b68000-7f1cf1e74000 rwxp 00000000 00:00 0
7f1cf1e74000-7f1cf2177000 r-xp 00000000 fe:01 132103                     /home/x/Game1/Instance4/server_linux_Data/Managed/System.Xml.dll                                                                
7f1cf2177000-7f1cf2578000 rwxp 00000000 00:00 0
7f1cf2578000-7f1cf27f5000 r-xp 00000000 fe:01 132097                     /home/x/Game1/Instance4/server_linux_Data/Managed/System.dll
7f1cf27f5000-7f1cf27f6000 ---p 00000000 00:00 0                                                                                                                                                           
7f1cf27f6000-7f1cf2ff6000 rwxp 00000000 00:00 0
7f1cf2ff6000-7f1cf2ff7000 ---p 00000000 00:00 0
7f1cf2ff7000-7f1cf37f7000 rwxp 00000000 00:00 0
7f1cf37f7000-7f1cf37f8000 ---p 00000000 00:00 0
7f1cf37f8000-7f1cf3ff8000 rwxp 00000000 00:00 0
7f1cf3ff8000-7f1cf3ff9000 ---p 00000000 00:00 0
7f1cf3ff9000-7f1cf47f9000 rwxp 00000000 00:00 0                                                                                                                                                           
7f1cf47f9000-7f1cf47fa000 ---p 00000000 00:00 0
7f1cf47fa000-7f1cf4ffa000 rwxp 00000000 00:00 0
7f1cf4ffa000-7f1cf4ffb000 ---p 00000000 00:00 0
7f1cf4ffb000-7f1cf57fb000 rwxp 00000000 00:00 0                                                                                                                                                           
7f1cf57fb000-7f1cf57fc000 ---p 00000000 00:00 0
7f1cf57fc000-7f1cf5ffc000 rwxp 00000000 00:00 0
7f1cf5ffc000-7f1cf5ffd000 ---p 00000000 00:00 0
7f1cf5ffd000-7f1cf67fd000 rwxp 00000000 00:00 0                                                                                                                                                           
7f1cf67fd000-7f1cf67fe000 ---p 00000000 00:00 0
7f1cf67fe000-7f1cf6ffe000 rwxp 00000000 00:00 0
7f1cf6ffe000-7f1cf6fff000 ---p 00000000 00:00 0
7f1cf6fff000-7f1cf77ff000 rwxp 00000000 00:00 0
7f1cf77ff000-7f1cf7800000 ---p 00000000 00:00 0                                                                                                                                                           
7f1cf7800000-7f1cf8000000 rwxp 00000000 00:00 0
7f1cf8000000-7f1cf803c000 rwxp 00000000 00:00 0
7f1cf803c000-7f1cfc000000 ---p 00000000 00:00 0                                                                                                                                                           
7f1cfc031000-7f1cfc049000 rwxp 00000000 00:00 0
7f1cfc049000-7f1cfc067000 r-xp 00000000 fe:01 132094                     /home/x/Game1/Instance4/server_linux_Data/Managed/System.Configuration.dll                                                      
7f1cfc067000-7f1cfc1b8000 rwxp 00000000 00:00 0                                                                                                                                                           
7f1cfc1bc000-7f1cfc209000 r-xp 00000000 fe:01 132092                     /home/x/Game1/Instance4/server_linux_Data/Managed/Mono.Security.dll                                                             
7f1cfc209000-7f1cfc2e0000 rwxp 00000000 00:00 0                                                                                                                                                           
7f1cfc2e0000-7f1cfc2e9000 ---p 00000000 00:00 0                                                                                                                                                           
7f1cfc2e9000-7f1cfc301000 rwxp 00000000 00:00 0                                                                                                                                                           
7f1cfc301000-7f1cfc3f8000 r-xp 00000000 fe:01 132095                     /home/x/Game1/Instance4/server_linux_Data/Managed/System.Core.dll
7f1cfc3f8000-7f1cfc7f9000 rwxp 00000000 00:00 0                                                                                                                                                           
7f1cfc7f9000-7f1cfc7fa000 ---p 00000000 00:00 0                                                                                                                                                           
7f1cfc7fa000-7f1cfcffa000 rwxp 00000000 00:00 0                                                                                                                                                           
7f1cfcffa000-7f1cfcffb000 ---p 00000000 00:00 0                                                                                                                                                           
7f1cfcffb000-7f1cfd7fb000 rwxp 00000000 00:00 0                                                                                                                                                           
7f1cfd7fb000-7f1cfd7fc000 ---p 00000000 00:00 0                                                                                                                                                           
7f1cfd7fc000-7f1cfdffc000 rwxp 00000000 00:00 0                                                                                                                                                           
7f1cfdffc000-7f1cfdffd000 ---p 00000000 00:00 0
7f1cfdffd000-7f1cfe7fd000 rwxp 00000000 00:00 0                                                                                                                                                           
7f1cfe7fd000-7f1cfe7fe000 ---p 00000000 00:00 0                                                                                                                                                           
7f1cfe7fe000-7f1cfeffe000 rwxp 00000000 00:00 0                                                                                                                                                           
7f1cfeffe000-7f1cfefff000 ---p 00000000 00:00 0                                                                                                                                                           
7f1cfefff000-7f1cff7ff000 rwxp 00000000 00:00 0
7f1cff7ff000-7f1cff800000 ---p 00000000 00:00 0                                                                                                                                                           
7f1cff800000-7f1d00000000 rwxp 00000000 00:00 0                                                                                                                                                           
7f1d00000000-7f1d00053000 rwxp 00000000 00:00 0
7f1d00053000-7f1d04000000 ---p 00000000 00:00 0                                                                                                                                                           
7f1d04001000-7f1d04381000 rwxp 00000000 00:00 0                                                                                                                                                           
7f1d04381000-7f1d04382000 ---p 00000000 00:00 0                                                                                                                                                           
7f1d04382000-7f1d04b82000 rwxp 00000000 00:00 0
7f1d04b82000-7f1d04b8b000 ---p 00000000 00:00 0                                                                                                                                                           
7f1d04b8b000-7f1d04d83000 rwxp 00000000 00:00 0
7f1d04d83000-7f1d0513f000 r-xp 00000000 fe:01 132093                     /home/x/Game1/Instance4/server_linux_Data/Managed/mscorlib.dll                                                                  
7f1d0513f000-7f1d05140000 rwxp 00000000 00:00 0                                                                                                                                                           
7f1d05140000-7f1d0519f000 ---p 00000000 00:00 0                                                                                                                                                           
7f1d0519f000-7f1d051df000 rwxp 00000000 00:00 0
7f1d051df000-7f1d054e4000 r-xp 00000000 fe:01 132187                     /home/x/Game1/Instance4/server_linux_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so                                           
7f1d054e4000-7f1d056e3000 ---p 00305000 fe:01 132187                     /home/x/Game1/Instance4/server_linux_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so                                           
7f1d056e3000-7f1d056e9000 r-xp 00304000 fe:01 132187                     /home/x/Game1/Instance4/server_linux_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so                                           
7f1d056e9000-7f1d056ed000 rwxp 0030a000 fe:01 132187                     /home/x/Game1/Instance4/server_linux_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so                                           
7f1d056ed000-7f1d05786000 rwxp 00000000 00:00 0                                                                                                                                                           
7f1d05786000-7f1d06e8d000 rwxp 00000000 00:00 0                                                                                                                                                           
7f1d06e8d000-7f1d07022000 r-xp 00000000 fe:01 1574                       /lib/x86_64-linux-gnu/libc-2.24.so                                                                                               
7f1d07022000-7f1d07222000 ---p 00195000 fe:01 1574                       /lib/x86_64-linux-gnu/libc-2.24.so                                                                                               
7f1d07222000-7f1d07226000 r-xp 00195000 fe:01 1574                       /lib/x86_64-linux-gnu/libc-2.24.so                                                                                               
7f1d07226000-7f1d07228000 rwxp 00199000 fe:01 1574                       /lib/x86_64-linux-gnu/libc-2.24.so                                                                                               
7f1d07228000-7f1d0722c000 rwxp 00000000 00:00 0                                                                                                                                                           
7f1d0722c000-7f1d07242000 r-xp 00000000 fe:01 1497                       /lib/x86_64-linux-gnu/libgcc_s.so.1                                                                                              
7f1d07242000-7f1d07441000 ---p 00016000 fe:01 1497                       /lib/x86_64-linux-gnu/libgcc_s.so.1                                                                                              
7f1d07441000-7f1d07442000 r-xp 00015000 fe:01 1497                       /lib/x86_64-linux-gnu/libgcc_s.so.1                                                                                              
7f1d07442000-7f1d07443000 rwxp 00016000 fe:01 1497                       /lib/x86_64-linux-gnu/libgcc_s.so.1                                                                                              
7f1d07443000-7f1d07546000 r-xp 00000000 fe:01 1578                       /lib/x86_64-linux-gnu/libm-2.24.so                                                                                               
7f1d07546000-7f1d07745000 ---p 00103000 fe:01 1578                       /lib/x86_64-linux-gnu/libm-2.24.so                                                                                               
7f1d07745000-7f1d07746000 r-xp 00102000 fe:01 1578                       /lib/x86_64-linux-gnu/libm-2.24.so                                                                                               
7f1d07746000-7f1d07747000 rwxp 00103000 fe:01 1578                       /lib/x86_64-linux-gnu/libm-2.24.so                                                                                               
7f1d07747000-7f1d078b9000 r-xp 00000000 fe:01 12104                      /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22                                                                                    
7f1d078b9000-7f1d07ab9000 ---p 00172000 fe:01 12104                      /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22                                                                                    
7f1d07ab9000-7f1d07ac3000 r-xp 00172000 fe:01 12104                      /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22                                                                                    
7f1d07ac3000-7f1d07ac5000 rwxp 0017c000 fe:01 12104                      /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22                                                                                    
7f1d07ac5000-7f1d07ac9000 rwxp 00000000 00:00 0
7f1d07ac9000-7f1d07ad0000 r-xp 00000000 fe:01 3108                       /lib/x86_64-linux-gnu/librt-2.24.so                                                                                              
7f1d07ad0000-7f1d07ccf000 ---p 00007000 fe:01 3108                       /lib/x86_64-linux-gnu/librt-2.24.so                                                                                              
7f1d07ccf000-7f1d07cd0000 r-xp 00006000 fe:01 3108                       /lib/x86_64-linux-gnu/librt-2.24.so                                                                                              
7f1d07cd0000-7f1d07cd1000 rwxp 00007000 fe:01 3108                       /lib/x86_64-linux-gnu/librt-2.24.so                                                                                              
7f1d07cd1000-7f1d07ce9000 r-xp 00000000 fe:01 3104                       /lib/x86_64-linux-gnu/libpthread-2.24.so
7f1d07ce9000-7f1d07ee8000 ---p 00018000 fe:01 3104                       /lib/x86_64-linux-gnu/libpthread-2.24.so                                                                                         
7f1d07ee8000-7f1d07ee9000 r-xp 00017000 fe:01 3104                       /lib/x86_64-linux-gnu/libpthread-2.24.so
7f1d07ee9000-7f1d07eea000 rwxp 00018000 fe:01 3104                       /lib/x86_64-linux-gnu/libpthread-2.24.so                                                                                         
7f1d07eea000-7f1d07eee000 rwxp 00000000 00:00 0                                                                                                                                                           
7f1d07eee000-7f1d07ef1000 r-xp 00000000 fe:01 1577                       /lib/x86_64-linux-gnu/libdl-2.24.so                                                                                              
7f1d07ef1000-7f1d080f0000 ---p 00003000 fe:01 1577                       /lib/x86_64-linux-gnu/libdl-2.24.so
7f1d080f0000-7f1d080f1000 r-xp 00002000 fe:01 1577                       /lib/x86_64-linux-gnu/libdl-2.24.so
7f1d080f1000-7f1d080f2000 rwxp 00003000 fe:01 1577                       /lib/x86_64-linux-gnu/libdl-2.24.so
7f1d080f2000-7f1d08115000 r-xp 00000000 fe:01 1569                       /lib/x86_64-linux-gnu/ld-2.24.so
7f1d0811b000-7f1d0811f000 rwxp 00000000 00:00 0
7f1d0811f000-7f1d08120000 ---p 00000000 00:00 0
7f1d08120000-7f1d08130000 rwxp 00000000 00:00 0
7f1d08130000-7f1d08131000 ---p 00000000 00:00 0
7f1d08131000-7f1d0830e000 rwxp 00000000 00:00 0
7f1d08311000-7f1d08312000 rwxs 00000000 00:14 51461069                   /dev/shm/mono.15041
7f1d08312000-7f1d08315000 rwxp 00000000 00:00 0
7f1d08315000-7f1d08316000 r-xp 00023000 fe:01 1569                       /lib/x86_64-linux-gnu/ld-2.24.so
7f1d08316000-7f1d08317000 rwxp 00024000 fe:01 1569                       /lib/x86_64-linux-gnu/ld-2.24.so
7f1d08317000-7f1d08318000 rwxp 00000000 00:00 0
7fff5e2b4000-7fff5e2bc000 ---p 00000000 00:00 0
7fff5ea92000-7fff5eab3000 rwxp 00000000 00:00 0                          [stack]
7fff5ebe3000-7fff5ebe5000 r--p 00000000 00:00 0                          [vvar]
7fff5ebe5000-7fff5ebe7000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]

Native stacktrace:

        /home/sj/Game1/Instance4/server_linux_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so(+0xbff15) [0x7f1d0529ef15]
        /lib/x86_64-linux-gnu/libpthread.so.0(+0x110bf) [0x7f1d07ce20bf]
        /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcf) [0x7f1d06ebffff]
        /lib/x86_64-linux-gnu/libc.so.6(abort+0x169) [0x7f1d06ec1429]
        /home/sj/Game1/Instance4/server_linux_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so(+0x1dd066) [0x7f1d053bc066]
        /home/sj/Game1/Instance4/server_linux_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so(+0x1ece3f) [0x7f1d053cbe3f]
        /home/sj/Game1/Instance4/server_linux_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so(+0x1ecf70) [0x7f1d053cbf70]
        /home/sj/Game1/Instance4/server_linux_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so(+0x1e60dd) [0x7f1d053c50dd]
        /home/sj/Game1/Instance4/server_linux_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so(+0x1d4d05) [0x7f1d053b3d05]
        /home/sj/Game1/Instance4/server_linux_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so(GC_stopped_mark+0x2f) [0x7f1d053da87e]
        /home/sj/Game1/Instance4/server_linux_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so(GC_try_to_collect_inner+0xdd) [0x7f1d053db70c]
        /home/sj/Game1/Instance4/server_linux_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so(GC_collect_or_expand+0xbd) [0x7f1d053db83d]
        /home/sj/Game1/Instance4/server_linux_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so(GC_allocobj+0xe2) [0x7f1d053dba6a]
        /home/sj/Game1/Instance4/server_linux_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so(GC_generic_malloc_inner+0xc4) [0x7f1d053dc4dd]
        /home/sj/Game1/Instance4/server_linux_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so(GC_new_thread+0x35) [0x7f1d053dc69f]
        /home/sj/Game1/Instance4/server_linux_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so(GC_register_my_thread_inner+0x1a) [0x7f1d053dcb42]
        /home/sj/Game1/Instance4/server_linux_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so(GC_start_rtn_prepare_thread+0x4b) [0x7f1d053e159e]
        /home/sj/Game1/Instance4/server_linux_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so(GC_inner_start_routine+0x1a) [0x7f1d053e15fc]
        /home/sj/Game1/Instance4/server_linux_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so(GC_call_with_stack_base+0x16) [0x7f1d053d7ae2]
        /lib/x86_64-linux-gnu/libpthread.so.0(+0x7493) [0x7f1d07cd8493]
        /lib/x86_64-linux-gnu/libc.so.6(clone+0x3e) [0x7f1d06f75ace]

Debug info from gdb:

mono_gdb_render_native_backtraces not supported on this platform, unable to find gdb or lldb

=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

bash: line 1: 15041 Aborted                 ./Game1/Instance4/server_linux -batchmode -nographics -logfile Game1/logFile4
jaykrell pushed a commit to jaykrell/mono that referenced this issue Apr 3, 2019
Granted, it is not much information.
@jaykrell

This comment has been minimized.

Copy link
Collaborator

@jaykrell jaykrell commented Apr 3, 2019

Can you install lldb or gdb on the machine, and then get a stack?

@jaykrell

This comment has been minimized.

Copy link
Collaborator

@jaykrell jaykrell commented Apr 3, 2019

Guessing it is here:
https://github.com/Unity-Technologies/mono/blob/unity-2017.4-mbe/mono/utils/mono-threads.c#L1031

Still a debugger or repro would be nice. :(

@jaykrell

This comment has been minimized.

Copy link
Collaborator

@jaykrell jaykrell commented Apr 3, 2019

The comments in the code seem to somewhat explain the problem, and try workaround it, but then maybe other code forgets to?

/*
 * The following are used when detaching a thread. We need to pass the MonoThreadInfo*
 * as a paramater as the thread info TLS key is being destructed, meaning that
 * mono_thread_info_current_unchecked will return NULL, which would lead to a
 * runtime assertion error when trying to switch the state of the current thread.
 */
@romanianstrife

This comment has been minimized.

Copy link

@romanianstrife romanianstrife commented Jul 13, 2019

was fix? i trouble same too

* Assertion at mono-threads.c:518, condition info' not met`

@Miscellaneous

This comment has been minimized.

Copy link
Author

@Miscellaneous Miscellaneous commented Jul 13, 2019

@jleaders

This comment has been minimized.

Copy link

@jleaders jleaders commented Dec 12, 2019

I get this constantly, any workaround? I'm running nUnit tests from the latest Rider (2019.3) via Ubuntu 19.04.


=================================================================
                                                                        Native Crash Reporting
                                                                                              =================================================================
                                                                                                                                                               Got a SIGSEGV while executing native code. This usually indicates
                                                                                                                                                                                                                                a fatal error in the mono runtime or one of the native libraries 
                                   used by your application.
                                                            =================================================================
                                                                                                                             /proc/self/maps:
                                                                                                                                             00400000-00871000 r-xp 00000000 08:02 13013011                           /home/jonny/.local/share/JetBrains/Toolbox/apps/Rider/ch-0/193.5233.171/lib/ReSharperHost/linux-x64/mono/bin/mono-sgen
                                                                              00a71000-00a7f000 rw-p 00471000 08:02 13013011                           /home/jonny/.local/share/JetBrains/Toolbox/apps/Rider/ch-0/193.5233.171/lib/ReSharperHost/linux-x64/mono/bin/mono-sgen
               00a7f000-00a9a000 rw-p 00000000 00:00 0 
                                                       02171000-02324000 rw-p 00000000 00:00 0                                  [heap]
                                                                                                                                      400d7000-40687000 rwxp 00000000 00:00 0 
                                                                                                                                                                              41d5d000-41d6d000 rwxp 00000000 00:00 0 
                                                                                                                                                                                                                      7f3183d00000-7f3183e00000 rw-p 00000000 00:00 0 
        7f3183ec9000-7f3184000000 rw-p 00000000 00:00 0 
                                                        7f3184000000-7f3184023000 rw-p 00000000 00:00 0 
                                                                                                        7f3184023000-7f3188000000 ---p 00000000 00:00 0 
                                                                                                                                                        7f3188000000-7f3188021000 rw-p 00000000 00:00 0 
                                                                                                                                                                                                        7f3188021000-7f318c000000 ---p 00000000 00:00 0 
                                                                                                                                                                                                                                                        7f318c000000-7f318c135000 rw-p 00000000 00:00 0 
                                          7f318c135000-7f3190000000 ---p 00000000 00:00 0 
                                                                                          7f3190000000-7f3190b7b000 rw-p 00000000 00:00 0 
                                                                                                                                          7f3190b7b000-7f3194000000 ---p 00000000 00:00 0 
                                                                                                                                                                                          7f3194000000-7f3194021000 rw-p 00000000 00:00 0 
                                                                                                                                                                                                                                          7f3194021000-7f3198000000 ---p 00000000 00:00 0 
                            7f3198000000-7f3198021000 rw-p 00000000 00:00 0 
                                                                            7f3198021000-7f319c000000 ---p 00000000 00:00 0 
                                                                                                                            7f319c0c9000-7f319c300000 rw-p 00000000 00:00 0 
                                                                                                                                                                            7f319c400000-7f319c500000 rw-p 00000000 00:00 0 
                                                                                                                                                                                                                            7f319c600000-7f319c700000 rw-p 00000000 00:00 0 
              7f319c705000-7f319ca15000 rw-p 00000000 00:00 0 
                                                              7f319cd10000-7f319cd90000 rw-p 00000000 00:00 0 

                                                                                                              =================================================================
                                                                                                                                                                                Native stacktrace:
                                                                                                                                                                                                  =================================================================
        0x4ba122 - /home/jonny/.local/share/JetBrains/Toolbox/apps/Rider/ch-0/193.5233.171/lib/ReSharperHost/linux-x64/mono/bin/mono-sgen : (null)
                                                                                                                                                        0x4ba421 - /home/jonny/.local/share/JetBrains/Toolbox/apps/Rider/ch-0/193.5233.171/lib/ReSharperHost/linux-x64/mono/bin/mono-sgen : (null)
                                        0x467a49 - /home/jonny/.local/share/JetBrains/Toolbox/apps/Rider/ch-0/193.5233.171/lib/ReSharperHost/linux-x64/mono/bin/mono-sgen : (null)
                                                                                                                                                                                        0x42ef82 - /home/jonny/.local/share/JetBrains/Toolbox/apps/Rider/ch-0/193.5233.171/lib/ReSharperHost/linux-x64/mono/bin/mono-sgen : (null)
                                                                        0x7f31f5156f40 - /lib/x86_64-linux-gnu/libpthread.so.0 : (null)
                                                                                                                                        0x7f319f8fc400 - Unknown

                                                                                                                                                                =================================================================
                                                                                                                                                                                                                                        Telemetry Dumper:
                                                                                                                                                                                                                                                         =================================================================
                                                            * Assertion at mono-threads.c:638, condition `info' not met


@jleaders

This comment has been minimized.

Copy link

@jleaders jleaders commented Dec 12, 2019

Rolling back to Rider 2019.2.3 solved it (one click via Jetbrains Toolbox)

@lambdageek

This comment has been minimized.

Copy link
Member

@lambdageek lambdageek commented Dec 12, 2019

Many different codepaths end up at * Assertion at mono-threads.c:518, condition info' not met` .
What would be most helpful for us on the Mono team is if folks who experience this consistently install either lldb or gdb on the machine. When mono crashes when a debugger is installed, it will try to gather a stack trace, which can help us to identify the underlying issue.

(If you installed Mono using a package manager, you may also need to install the mono-dbg package to get debug symbols which would improve the quality of the stack trace).

As a workaround you can set the environment variable MONO_THREADS_SUSPEND=preemptive which will likely make that assertion much less frequent. If you get a crash even with "preemptive", definitely file a new issue.

Also I should mention that over the past several months we've fixed a number of bugs related to this assertion (as I said, the assertion is like the final symptom of a variety of underlying bugs), so if you haven't tried a recent official package of Mono you may want to give it a try.


For folks using Unity, you don't have the luxury of updating Mono independently, although the Unity team does regularly update their copy of Mono to include upstream bugfixes. As far as I know, Unity's Mono should also dump a stack trace if you install lldb or gdb - so you can still help us to track down more of these issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants
You can’t perform that action at this time.