Bug 59223 - *** Error in `mono': free(): invalid pointer: 0x80a21008 ***
Summary: *** Error in `mono': free(): invalid pointer: 0x80a21008 ***
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Runtime
Classification: Mono
Component: General ()
Version: 5.0 (2017-02)
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-09-05 07:55 UTC by Roman
Modified: 2017-09-22 19:45 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_REPRODUCIBLE

Description Roman 2017-09-05 07:55:03 UTC
[root@8581 AtlasBuilding]# mono --version
Mono JIT compiler version 5.0.0 (Stable 5.0.0.100/9667aa6 Wed Jul 12 17:11:19 UTC 2017)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  x86
        Disabled:      none
        Misc:          softdebug 
        LLVM:          supported, not enabled.
        GC:            sgen (concurrent by default)


I try to compile monogame resource and get such error:


[root@8581 AtlasBuilding]# mgcb -compress -profile:Reach -build:Atlas.png -workingDir:/root/Programm/Content/AtlasBuilding
Build started 05.09.2017 10:42:15

/root/Programm/Content/AtlasBuilding/Atlas.png
*** Error in `mono': free(): invalid pointer: 0x80a21008 ***
======= Backtrace: =========
/usr/lib/libc.so.6(+0x6a1e0)[0xb752e1e0]
/usr/lib/libc.so.6(+0x70fd5)[0xb7534fd5]
/usr/lib/libc.so.6(+0x721e1)[0xb75361e1]
/usr/lib/libfreeimage-3.17.0.so(FreeImage_Unload+0x3b)[0xb3e3aacb]
[0xb44b72ec]
[0xb44b7294]
[0xb44b7108]
[0xb44b6f5c]
[0xb44b4c54]
[0xb44b4a57]
[0xb44b4245]
[0xb44ad820]
[0xb44ac788]
[0xb7024ed8]
[0xb7123208]
[0xb7123462]
mono(+0x266b9)[0x800906b9]
======= Memory map: ========
8006a000-804b5000 r-xp 00000000 08:02 62809      /usr/bin/mono-sgen
804b5000-804b8000 r--p 0044a000 08:02 62809      /usr/bin/mono-sgen
804b8000-804ba000 rw-p 0044d000 08:02 62809      /usr/bin/mono-sgen
804ba000-804d4000 rw-p 00000000 00:00 0 
80865000-80d7f000 rw-p 00000000 00:00 0          [heap]
b3c60000-b3c7c000 r-xp 00000000 08:02 3620       /usr/lib/libgcc_s.so.1
b3c7c000-b3c7d000 r--p 0001b000 08:02 3620       /usr/lib/libgcc_s.so.1
b3c7d000-b3c7e000 rw-p 0001c000 08:02 3620       /usr/lib/libgcc_s.so.1
b3c7e000-b3df4000 r-xp 00000000 08:02 6337       /usr/lib/libstdc++.so.6.0.22
b3df4000-b3dfa000 r--p 00175000 08:02 6337       /usr/lib/libstdc++.so.6.0.22
b3dfa000-b3dfb000 rw-p 0017b000 08:02 6337       /usr/lib/libstdc++.so.6.0.22
b3dfb000-b3dfe000 rw-p 00000000 00:00 0 
b3e1d000-b4422000 r-xp 00000000 08:02 63306      /usr/lib/libfreeimage-3.17.0.so
b4422000-b4423000 ---p 00605000 08:02 63306      /usr/lib/libfreeimage-3.17.0.so
b4423000-b442f000 r--p 00605000 08:02 63306      /usr/lib/libfreeimage-3.17.0.so
b442f000-b4478000 rw-p 00611000 08:02 63306      /usr/lib/libfreeimage-3.17.0.so
b4478000-b447b000 rw-p 00000000 00:00 0 
b447b000-b44aa000 r--p 00000000 08:02 63155      /usr/lib/mono/xbuild/MonoGame/v3.0/Tools/FreeImageNET.dll
b44aa000-b44fd000 rwxp 00000000 00:00 0 
b44fd000-b4800000 r--p 00000000 08:02 58161      /usr/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll
b4800000-b4900000 rw-p 00000000 00:00 0 
b4903000-b4913000 rwxp 00000000 00:00 0 
b4913000-b49f7000 r--p 00000000 08:02 59157      /usr/lib/mono/gac/System.Runtime.Serialization/4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
b49f7000-b4a44000 r--p 00000000 08:02 58157      /usr/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll
b4a44000-b4b3b000 r--p 00000000 08:02 58585      /usr/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll
b4b3b000-b4dc6000 r--p 00000000 08:02 58159      /usr/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll
b4dc6000-b4f00000 r--p 00000000 08:02 63170      /usr/lib/mono/xbuild/MonoGame/v3.0/Tools/MonoGame.Framework.dll
b4f00000-b4f21000 rw-p 00000000 00:00 0 
b4f21000-b5000000 ---p 00000000 00:00 0 
b5004000-b5014000 rwxp 00000000 00:00 0 
b5014000-b501d000 ---p 00000000 00:00 0 
b501d000-b5115000 rw-p 00000000 00:00 0 
b5115000-b5846000 r-xp 00000000 08:02 52918      /usr/lib/mono/4.5/mscorlib.dll.so
b5846000-b5847000 r--p 00730000 08:02 52918      /usr/lib/mono/4.5/mscorlib.dll.so
b5847000-b5848000 rw-p 00731000 08:02 52918      /usr/lib/mono/4.5/mscorlib.dll.so
b5848000-b5856000 rw-p 00000000 00:00 0 
b5856000-b5bff000 r--p 00000000 08:02 58011      /usr/lib/mono/4.5/mscorlib.dll
b5bff000-b63ff000 rw-p 00000000 00:00 0 
b63ff000-b6400000 ---p 00000000 00:00 0 
b6400000-b7001000 rw-p 00000000 00:00 0 
b7001000-b7002000 rw-p 00000000 00:00 0 
b7002000-b7032000 rwxp 00000000 00:00 0 
b7032000-b7050000 r--p 00000000 08:02 58589      /usr/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
b7050000-b7098000 r--p 00000000 08:02 63168      /usr/lib/mono/xbuild/MonoGame/v3.0/Tools/MonoGame.Framework.Content.Pipeline.dll
b7098000-b7121000 rw-p 00000000 00:00 0 
b7121000-b7122000 rw-p 00000000 00:00 0 
b7122000-b7132000 rwxp 00000000 00:00 0 
b7132000-b7161000 r--p 00000000 08:02 126227     /usr/share/locale/ru/LC_MESSAGES/libc.mo
b7161000-b7162000 rw-p 00000000 00:00 0 
b7162000-b7191000 ---p 00000000 00:00 0 
b7191000-b72c2000 r--p 00229000 08:02 126232     /usr/lib/locale/locale-archive
b72c2000-b74c2000 r--p 00000000 08:02 126232     /usr/lib/locale/locale-archive
b74c2000-b74c4000 rw-p 00000000 00:00 0 
b74c4000-b767d000 r-xp 00000000 08:02 2584       /usr/lib/libc-2.25.so
b767d000-b767f000 r--p 001b8000 08:02 2584       /usr/lib/libc-2.25.so
b767f000-b7680000 rw-p 001ba000 08:02 2584       /usr/lib/libc-2.25.so
b7680000-b7683000 rw-p 00000000 00:00 0 
b7683000-b769d000 r-xp 00000000 08:02 2556       /usr/lib/libpthread-2.25.so
b769d000-b769e000 r--p 00019000 08:02 2556       /usr/lib/libpthread-2.25.so
b769e000-b769f000 rw-p 0001a000 08:02 2556       /usr/lib/libpthread-2.25.so
b769f000-b76a1000 rw-p 00000000 00:00 0 
b76a1000-b76a4000 r-xp 00000000 08:02 2613       /usr/lib/libdl-2.25.so
b76a4000-b76a5000 r--p 00002000 08:02 2613       /usr/lib/libdl-2.25.so
b76a5000-b76a6000 rw-p 00003000 08:02 2613       /usr/lib/libdl-2.25.so
b76a6000-b76ad000 r-xp 00000000 08:02 2553       /usr/lib/librt-2.25.so
b76ad000-b76ae000 r--p 00006000 08:02 2553       /usr/lib/librt-2.25.so
b76ae000-b76af000 rw-p 00007000 08:02 2553       /usr/lib/librt-2.25.so
b76af000-b7709000 r-xp 00000000 08:02 2620       /usr/lib/libm-2.25.so
b7709000-b770a000 r--p 00059000 08:02 2620       /usr/lib/libm-2.25.so
b770a000-b770b000 rw-p 0005a000 08:02 2620       /usr/lib/libm-2.25.so
b770b000-b7712000 r--p 00000000 08:02 63166      /usr/lib/mono/xbuild/MonoGame/v3.0/Tools/MGCB.exe
b7712000-b7719000 rw-p 00000000 00:00 0 
b7719000-b771a000 rw-s 00000000 00:13 160701     /dev/shm/mono.17225
b771a000-b772a000 rwxp 00000000 00:00 0 
b772a000-b772c000 rw-p 00000000 00:00 0 
b772c000-b772e000 r--p 00000000 00:00 0          [vvar]
b772e000-b7730000 r-xp 00000000 00:00 0          [vdso]
b7730000-b7753000 r-xp 00000000 08:02 2574       /usr/lib/ld-2.25.so
b7753000-b7754000 r--p 00022000 08:02 2574       /usr/lib/ld-2.25.so
b7754000-b7755000 rw-p 00023000 08:02 2574       /usr/lib/ld-2.25.so
bf2d0000-bf2d8000 ---p 00000000 00:00 0 
bfaae000-bfacf000 rw-p 00000000 00:00 0          [stack]
Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) FreeImageAPI.FreeImage.Unload (FreeImageAPI.FIBITMAP) <0x00012>
  at FreeImageAPI.FreeImage.UnloadEx (FreeImageAPI.FIBITMAP&) [0x00008] in <f706b8ca83a34e888e47eb199bbc0923>:0
  at Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.SwitchRedAndBlueChannels (FreeImageAPI.FIBITMAP) [0x00022] in <775ee6b08f8441cd9946f7532ebffc51>:0
  at Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.ConvertAndSwapChannels (FreeImageAPI.FIBITMAP,FreeImageAPI.FREE_IMAGE_TYPE) [0x00068] in <775ee6b08f8441cd9946f7532ebffc51>:0
  at Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.Import (string,Microsoft.Xna.Framework.Content.Pipeline.ContentImporterContext) [0x0009d] in <775ee6b08f8441cd9946f7532ebffc51>:0
  at Microsoft.Xna.Framework.Content.Pipeline.ContentImporter`1<T_REF>.Microsoft.Xna.Framework.Content.Pipeline.IContentImporter.Import (string,Microsoft.Xna.Framework.Content.Pipeline.ContentImporterContext) [0x00022] in <775ee6b08f8441cd9946f7532ebffc51>:0
  at MonoGame.Framework.Content.Pipeline.Builder.PipelineManager.ProcessContent (MonoGame.Framework.Content.Pipeline.Builder.PipelineBuildEvent) [0x00081] in <775ee6b08f8441cd9946f7532ebffc51>:0
  at MonoGame.Framework.Content.Pipeline.Builder.PipelineManager.BuildContent (MonoGame.Framework.Content.Pipeline.Builder.PipelineBuildEvent,MonoGame.Framework.Content.Pipeline.Builder.PipelineBuildEvent,string) [0x00177] in <775ee6b08f8441cd9946f7532ebffc51>:0
  at MonoGame.Framework.Content.Pipeline.Builder.PipelineManager.BuildContent (string,string,string,string,Microsoft.Xna.Framework.Content.Pipeline.OpaqueDataDictionary) [0x00060] in <775ee6b08f8441cd9946f7532ebffc51>:0
  at MGCB.BuildContent.Build (int&,int&) [0x00310] in <b6e7ba2900cb4296b3cc3c096527a10c>:0
  at MGCB.Program.Main (string[]) [0x0009a] in <b6e7ba2900cb4296b3cc3c096527a10c>:0
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) [0x00054] in <b6e7ba2900cb4296b3cc3c096527a10c>:0
/proc/self/maps:
8006a000-804b5000 r-xp 00000000 08:02 62809      /usr/bin/mono-sgen
804b5000-804b8000 r--p 0044a000 08:02 62809      /usr/bin/mono-sgen
804b8000-804ba000 rw-p 0044d000 08:02 62809      /usr/bin/mono-sgen
804ba000-804d4000 rw-p 00000000 00:00 0 
80865000-80d7f000 rw-p 00000000 00:00 0          [heap]
b3c60000-b3c7c000 r-xp 00000000 08:02 3620       /usr/lib/libgcc_s.so.1
b3c7c000-b3c7d000 r--p 0001b000 08:02 3620       /usr/lib/libgcc_s.so.1
b3c7d000-b3c7e000 rw-p 0001c000 08:02 3620       /usr/lib/libgcc_s.so.1
b3c7e000-b3df4000 r-xp 00000000 08:02 6337       /usr/lib/libstdc++.so.6.0.22
b3df4000-b3dfa000 r--p 00175000 08:02 6337       /usr/lib/libstdc++.so.6.0.22
b3dfa000-b3dfb000 rw-p 0017b000 08:02 6337       /usr/lib/libstdc++.so.6.0.22
b3dfb000-b3dfe000 rw-p 00000000 00:00 0 
b3e1d000-b4422000 r-xp 00000000 08:02 63306      /usr/lib/libfreeimage-3.17.0.so
b4422000-b4423000 ---p 00605000 08:02 63306      /usr/lib/libfreeimage-3.17.0.so
b4423000-b442f000 r--p 00605000 08:02 63306      /usr/lib/libfreeimage-3.17.0.so
b442f000-b4478000 rw-p 00611000 08:02 63306      /usr/lib/libfreeimage-3.17.0.so
b4478000-b447b000 rw-p 00000000 00:00 0 
b447b000-b44aa000 r--p 00000000 08:02 63155      /usr/lib/mono/xbuild/MonoGame/v3.0/Tools/FreeImageNET.dll
b44aa000-b44fd000 rwxp 00000000 00:00 0 
b44fd000-b4800000 r--p 00000000 08:02 58161      /usr/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll
b4800000-b4900000 rw-p 00000000 00:00 0 
b4903000-b4913000 rwxp 00000000 00:00 0 
b4913000-b49f7000 r--p 00000000 08:02 59157      /usr/lib/mono/gac/System.Runtime.Serialization/4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
b49f7000-b4a44000 r--p 00000000 08:02 58157      /usr/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll
b4a44000-b4b3b000 r--p 00000000 08:02 58585      /usr/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll
b4b3b000-b4dc6000 r--p 00000000 08:02 58159      /usr/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll
b4dc6000-b4f00000 r--p 00000000 08:02 63170      /usr/lib/mono/xbuild/MonoGame/v3.0/Tools/MonoGame.Framework.dll
b4f00000-b4f21000 rw-p 00000000 00:00 0 
b4f21000-b5000000 ---p 00000000 00:00 0 
b5004000-b5014000 rwxp 00000000 00:00 0 
b5014000-b501d000 ---p 00000000 00:00 0 
b501d000-b5115000 rw-p 00000000 00:00 0 
b5115000-b5846000 r-xp 00000000 08:02 52918      /usr/lib/mono/4.5/mscorlib.dll.so
b5846000-b5847000 r--p 00730000 08:02 52918      /usr/lib/mono/4.5/mscorlib.dll.so
b5847000-b5848000 rw-p 00731000 08:02 52918      /usr/lib/mono/4.5/mscorlib.dll.so
b5848000-b5856000 rw-p 00000000 00:00 0 
b5856000-b5bff000 r--p 00000000 08:02 58011      /usr/lib/mono/4.5/mscorlib.dll
b5bff000-b63ff000 rw-p 00000000 00:00 0 
b63ff000-b6400000 ---p 00000000 00:00 0 
b6400000-b7001000 rw-p 00000000 00:00 0 
b7001000-b7002000 rw-p 00000000 00:00 0 
b7002000-b7032000 rwxp 00000000 00:00 0 
b7032000-b7050000 r--p 00000000 08:02 58589      /usr/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
b7050000-b7098000 r--p 00000000 08:02 63168      /usr/lib/mono/xbuild/MonoGame/v3.0/Tools/MonoGame.Framework.Content.Pipeline.dll
b7098000-b7121000 rw-p 00000000 00:00 0 
b7121000-b7122000 rw-p 00000000 00:00 0 
b7122000-b7132000 rwxp 00000000 00:00 0 
b7132000-b7161000 r--p 00000000 08:02 126227     /usr/share/locale/ru/LC_MESSAGES/libc.mo
b7161000-b7162000 rw-p 00000000 00:00 0 
b7162000-b7191000 ---p 00000000 00:00 0 
b7191000-b72c2000 r--p 00229000 08:02 126232     /usr/lib/locale/locale-archive
b72c2000-b74c2000 r--p 00000000 08:02 126232     /usr/lib/locale/locale-archive
b74c2000-b74c4000 rw-p 00000000 00:00 0 
b74c4000-b767d000 r-xp 00000000 08:02 2584       /usr/lib/libc-2.25.so
b767d000-b767f000 r--p 001b8000 08:02 2584       /usr/lib/libc-2.25.so
b767f000-b7680000 rw-p 001ba000 08:02 2584       /usr/lib/libc-2.25.so
b7680000-b7683000 rw-p 00000000 00:00 0 
b7683000-b769d000 r-xp 00000000 08:02 2556       /usr/lib/libpthread-2.25.so
b769d000-b769e000 r--p 00019000 08:02 2556       /usr/lib/libpthread-2.25.so
b769e000-b769f000 rw-p 0001a000 08:02 2556       /usr/lib/libpthread-2.25.so
b769f000-b76a1000 rw-p 00000000 00:00 0 
b76a1000-b76a4000 r-xp 00000000 08:02 2613       /usr/lib/libdl-2.25.so
b76a4000-b76a5000 r--p 00002000 08:02 2613       /usr/lib/libdl-2.25.so
b76a5000-b76a6000 rw-p 00003000 08:02 2613       /usr/lib/libdl-2.25.so
b76a6000-b76ad000 r-xp 00000000 08:02 2553       /usr/lib/librt-2.25.so
b76ad000-b76ae000 r--p 00006000 08:02 2553       /usr/lib/librt-2.25.so
b76ae000-b76af000 rw-p 00007000 08:02 2553       /usr/lib/librt-2.25.so
b76af000-b7709000 r-xp 00000000 08:02 2620       /usr/lib/libm-2.25.so
b7709000-b770a000 r--p 00059000 08:02 2620       /usr/lib/libm-2.25.so
b770a000-b770b000 rw-p 0005a000 08:02 2620       /usr/lib/libm-2.25.so
b770b000-b7712000 r--p 00000000 08:02 63166      /usr/lib/mono/xbuild/MonoGame/v3.0/Tools/MGCB.exe
b7712000-b7719000 rw-p 00000000 00:00 0 
b7719000-b771a000 rw-s 00000000 00:13 160701     /dev/shm/mono.17225
b771a000-b772a000 rwxp 00000000 00:00 0 
b772a000-b772c000 rw-p 00000000 00:00 0 
b772c000-b772e000 r--p 00000000 00:00 0          [vvar]
b772e000-b7730000 r-xp 00000000 00:00 0          [vdso]
b7730000-b7753000 r-xp 00000000 08:02 2574       /usr/lib/ld-2.25.so
b7753000-b7754000 r--p 00022000 08:02 2574       /usr/lib/ld-2.25.so
b7754000-b7755000 rw-p 00023000 08:02 2574       /usr/lib/ld-2.25.so
bf2d0000-bf2d8000 ---p 00000000 00:00 0 
bfaae000-bfacf000 rw-p 00000000 00:00 0          [stack]

Native stacktrace:

        mono(+0xbb474) [0x80125474]
        linux-gate.so.1(__kernel_rt_sigreturn+0) [0xb772ecfc]
        linux-gate.so.1(__kernel_vsyscall+0x9) [0xb772ece5]
        /usr/lib/libc.so.6(gsignal+0xc2) [0xb74f02a2]
        /usr/lib/libc.so.6(abort+0x195) [0xb74f1a85]
        /usr/lib/libc.so.6(+0x6a1e5) [0xb752e1e5]
        /usr/lib/libc.so.6(+0x70fd5) [0xb7534fd5]
        /usr/lib/libc.so.6(+0x721e1) [0xb75361e1]
        /usr/lib/libfreeimage-3.17.0.so(FreeImage_Unload+0x3b) [0xb3e3aacb]
        [0xb44b72ec]
        [0xb44b7294]
        [0xb44b7108]
        [0xb44b6f5c]
        [0xb44b4c54]
        [0xb44b4a57]
        [0xb44b4245]
        [0xb44ad820]
        [0xb44ac788]
        [0xb7024ed8]
        [0xb7123208]
        [0xb7123462]
        mono(+0x266b9) [0x800906b9]

Debug info from gdb:

[New LWP 17226]
[New LWP 17227]
warning: File "/usr/bin/mono-sgen-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
        add-auto-load-safe-path /usr/bin/mono-sgen-gdb.py
line to your configuration file "/root/.gdbinit".
To completely disable this security protection add
        set auto-load safe-path /
line to your configuration file "/root/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
        info "(gdb)Auto-loading safe path"
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
0xb772ece5 in __kernel_vsyscall ()
  Id   Target Id         Frame 
* 1    Thread 0xb74c2700 (LWP 17225) "mono" 0xb772ece5 in __kernel_vsyscall ()
  2    Thread 0xb6bffb40 (LWP 17226) "SGen worker" 0xb772ece5 in __kernel_vsyscall ()
  3    Thread 0xb5114b40 (LWP 17227) "Finalizer" 0xb772ece5 in __kernel_vsyscall ()

Thread 3 (Thread 0xb5114b40 (LWP 17227)):
#0  0xb772ece5 in __kernel_vsyscall ()
#1  0xb7692316 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
#2  0xb76923f7 in __new_sem_wait_slow.constprop.1 () from /usr/lib/libpthread.so.0
#3  0x8026c9ca in ?? ()
#4  0x80241b2f in ?? ()
#5  0x80309596 in ?? ()
#6  0xb7688e62 in start_thread () from /usr/lib/libpthread.so.0
#7  0xb75b1d96 in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0xb6bffb40 (LWP 17226)):
#0  0xb772ece5 in __kernel_vsyscall ()
#1  0xb768f290 in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#2  0x802f3fbe in ?? ()
#3  0xb7688e62 in start_thread () from /usr/lib/libpthread.so.0
#4  0xb75b1d96 in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0xb74c2700 (LWP 17225)):
#0  0xb772ece5 in __kernel_vsyscall ()
#1  0xb76941af in waitpid () from /usr/lib/libpthread.so.0
#2  0x8012551a in ?? ()
#3  <signal handler called>
#4  0xb772ece5 in __kernel_vsyscall ()
#5  0xb74f02a2 in raise () from /usr/lib/libc.so.6
#6  0xb74f1a85 in abort () from /usr/lib/libc.so.6
#7  0xb752e1e5 in __libc_message () from /usr/lib/libc.so.6
#8  0xb7534fd5 in malloc_printerr () from /usr/lib/libc.so.6
#9  0xb75361e1 in _int_free () from /usr/lib/libc.so.6
#10 0xb3e3aacb in FreeImage_Unload () from /usr/lib/libfreeimage-3.17.0.so
#11 0xb44b72ec in ?? ()
#12 0xb44b7294 in ?? ()
#13 0xb44b7108 in ?? ()
#14 0xb44b6f5c in ?? ()
#15 0xb44b4c54 in ?? ()
#16 0xb44b4a57 in ?? ()
#17 0xb44b4245 in ?? ()
#18 0xb44ad820 in ?? ()
#19 0xb44ac788 in ?? ()
#20 0xb7024ed8 in ?? ()
#21 0xb7123208 in ?? ()
#22 0xb7123462 in ?? ()
#23 0x800906b9 in ?? ()
#24 0x8027749b in ?? ()
#25 0x8027c293 in ?? ()
#26 0x800f2568 in mono_jit_exec ()
#27 0x800f3f53 in mono_main ()
#28 0x8008b246 in ?? ()
#29 0xb74dc1d3 in __libc_start_main () from /usr/lib/libc.so.6
#30 0x8008b89f in _start ()

=================================================================
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.
=================================================================

/usr/bin/mgcb: строка 2: 17225 Аварийный останов         (стек памяти сброшен на диск) mono /usr/lib/mono/xbuild/MonoGame/v3.0/Tools/MGCB.exe "$@"
Comment 1 Ludovic Henry 2017-09-21 19:19:26 UTC
The SIGSEGV happens in a free called by FreeImage_Unload which is not Mono code. Could you please provide a repro case that we could have a look at, as the provided stacktraces do not have enough information. Thank you.
Comment 2 Roman 2017-09-21 19:45:35 UTC
Additionally I've written to monogame community for this issue. And I've gotten answer that monogame content builder (mgcb) works on x86 platform olny
Comment 3 Roman 2017-09-21 19:48:31 UTC
But if you really want this problem. You need install Arch Linux x86 and install monogame using monogame.run installer from monogame.org. And execute my command
Comment 4 Ludovic Henry 2017-09-22 19:45:15 UTC
Issue isn't related to Mono.