#738501 "resgen frequently crashes on NUnit source"

Package:
mono-devel
Source:
mono
Description:
Framework Mono - development tools
Submitter:
Daniel Schepler
Date:
2025-08-17 18:51:02 UTC
Severity:
normal
Tags:
#738501#5
Date:
2014-02-10 00:46:34 UTC
From:
To:
From my latest pbuilder build log (on amd64):

...
xbuild /property:Configuration=Debug ./src/GuiRunner/nunit-gui/nunit-gui.csproj
XBuild Engine Version 3.0.6.0
Mono, Version 3.0.6.0
Copyright (C) Marek Sieradzki 2005-2008, Novell 2008-2011.

Build started 02/10/2014 00:44:02.
/tmp/buildd/nunit-2.6.0.12051+dfsg/src/GuiComponents/UiKit/nunit.uikit.dll.csproj
(default targets) ->
/usr/lib/mono/4.0/Microsoft.Common.targets (ResolveProjectReferences target) -
/tmp/buildd/nunit-2.6.0.12051+dfsg/src/GuiException/UiException/nunit.uiexception.dll.csproj
(default targets) ->
/usr/lib/mono/4.0/Microsoft.Common.targets (GenerateResources target) ->

        /usr/lib/mono/4.0/Microsoft.Common.targets: error : Tool exited with
code: 134. Output: No protocol specified
Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native)
System.Drawing.GDIPlus.GdipLoadImageFromDelegate_linux
(System.Drawing.GDIPlus/StreamGetHeaderDelegate,System.Drawing.GDIPlus/StreamGetBytesDelegate,System.Drawing.GDIPlus/StreamPutBytesDelegate,System.Drawing.GDIPlus/StreamSeekDelegate,System.Drawing.GDIPlus/StreamCloseDelegate,System.Drawing.GDIPlus/StreamSizeDelegate,intptr&)
<0xffffffff>
  at System.Drawing.Image.InitFromStream (System.IO.Stream) <0x001ab>
  at System.Drawing.Bitmap..ctor (System.IO.Stream,bool) <0x00023>
  at System.Drawing.Bitmap..ctor (System.IO.Stream) <0x00013>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object
(object,intptr,intptr,intptr) <0xffffffff>
  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke
(System.Reflection.MonoCMethod,object,object[],System.Exception&) <0xffffffff>
  at System.Reflection.MonoCMethod.Invoke
(object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
<0x0011f>
  at System.Reflection.MonoCMethod.Invoke
(System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
<0x0003d>
  at System.Activator.CreateInstance
(System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[])
<0x002d3>
  at System.Activator.CreateInstance
(System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
<0x0002b>
  at System.Resources.ResXFileRef/Converter.ConvertFrom
(System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,object)
<0x003ff>
  at System.ComponentModel.TypeConverter.ConvertFromString
(System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,string)
<0x00023>
  at System.ComponentModel.TypeConverter.ConvertFromInvariantString
(System.ComponentModel.ITypeDescriptorContext,string) <0x00033>
  at System.ComponentModel.TypeConverter.ConvertFromInvariantString (string)
<0x0001b>
  at System.Resources.FileRefHandler.GetValue () <0x0004b>
  at System.Resources.FileRefHandler.GetValue
(System.ComponentModel.Design.ITypeResolutionService) <0x0000f>
  at System.Resources.ResXDataNode.GetValue
(System.ComponentModel.Design.ITypeResolutionService) <0x00021>
  at System.Resources.ResXResourceReader.ParseDataNode (bool) <0x0030f>
  at System.Resources.ResXResourceReader.LoadData () <0x002d7>
  at System.Resources.ResXResourceReader.GetEnumerator () <0x0001b>
  at ResGen.CompileResourceFile (string,string,bool) <0x00176>
  at ResGen.Main (string[]) <0x005b3>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        /usr/bin/mono() [0x4acc91]
        /usr/bin/mono() [0x5022cb]
        /usr/bin/mono() [0x421e82]
        /lib/x86_64-linux-gnu/libpthread.so.0(+0xf210) [0x2baa04daa210]
        /usr/lib/libgdiplus.so.0(+0x40b4d) [0x2baa0741ab4d]
        /usr/lib/libgdiplus.so.0(GdipLoadImageFromDelegate_linux+0x192)
[0x2baa07401892]
        [0x40c7f85c]

Debug info from gdb:


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



         0 Warning(s)
         1 Error(s)

Time Elapsed 00:00:00.4390590
make[1]: *** [override_dh_auto_build] Error 1
make[1]: Leaving directory `/tmp/buildd/nunit-2.6.0.12051+dfsg'
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

This is not 100% reproducible, but it does happen often enough to be very
noticeable when I'm trying to do archive rebuilds.

#738501#22
Date:
2014-09-25 16:34:04 UTC
From:
To:
reassign 738501 mono-devel
retitle 738501 "resgen frequently crashes on NUnit source"
found 738501 3.0.6+dfsg2-12
severity 738501 normal
stop

Daniel,

I've shuffled this bug around a bit, and reduced the severity.

Despite manifesting in NUnit's source tree, the problem is with
"resgen", which generates compiled embeddable resources from sets of
non-source files. Your log shows it happening in Mono 3.0.6, which I've
indicated with a "found" tag in the latest 3.0.6 in the archive.

I'm lowering the severity to "normal" for now. Can you see if the
problem persists with the current in-archive version of Mono (3.2.8),
and either close the bug or raise severity accordingly?

Thanks.

#738501#39
Date:
2025-08-17 18:08:09 UTC
From:
To:
I see you marked a couple bugs reported against src:mono as affecting
forky. Did you actually reproduce them yourself, or did you assume they
would apply to forky as they have not been marked as fixed yet?

If you actually reproduced these bugs, could you give a try to either
the package in sid or, even better, the one in experimental and see if
these packages fix the reported bugs for you?

#738501#44
Date:
2025-08-17 18:49:22 UTC
From:
To:
This is a mass bug-update of all bugs tagged sid. Post release, they are
updated to include the new testing suite. None of the bugs have been
reproduced.

If they are incorrectly marked as forky, please also check if they
actually should be tagged with sid.

Cheers