[Mono-bugs] [Bug 708856] New: Crash in XCreateFontSet if package libX11-dev isn't installed

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jul 28 04:01:51 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=708856

https://bugzilla.novell.com/show_bug.cgi?id=708856#c0


           Summary: Crash in XCreateFontSet if package libX11-dev isn't
                    installed
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.8.x
          Platform: Other
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: packaging
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: eb1 at sil.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101
Firefox/5.0

On Ubuntu (10.10 and 11.04 at least) if libX11-dev is not installed WinForm
apps fire an assertion 
mono: ../../src/xcb_io.c:668: _XRead: Assertion `dpy->xcb->reply_data != ((void
*)0)' failed.

Callstack:
  at (wrapper managed-to-native)
System.Windows.Forms.X11Keyboard.XCreateFontSet
(intptr,string,intptr&,int&,intptr) <0x00003>
  at (wrapper managed-to-native)
System.Windows.Forms.X11Keyboard.XCreateFontSet
(intptr,string,intptr&,int&,intptr) <0x00003>
  at System.Windows.Forms.X11Keyboard.CreateOverTheSpotXic (intptr,intptr)
[0x00023] in
/tmp/buildd/fieldworks-mono-2.8.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11Keyboard.cs:998
  at System.Windows.Forms.X11Keyboard.CreateXic (intptr,intptr) [0x00055] in
/tmp/buildd/fieldworks-mono-2.8.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11Keyboard.cs:958
  at System.Windows.Forms.X11Keyboard.CreateXicForWindow (intptr) [0x00000] in
/tmp/buildd/fieldworks-mono-2.8.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11Keyboard.cs:151
  at System.Windows.Forms.X11Keyboard.FocusIn (intptr) [0x00038] in
/tmp/buildd/fieldworks-mono-2.8.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11Keyboard.cs:216
  at System.Windows.Forms.XplatUIX11.SetFocus (intptr) [0x0005d] in
/tmp/buildd/fieldworks-mono-2.8.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:5636
  at System.Windows.Forms.XplatUI.SetFocus (intptr) [0x00000] in
/tmp/buildd/fieldworks-mono-2.8.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:1021
  at System.Windows.Forms.ContainerControl.SendControlFocus
(System.Windows.Forms.Control) [0x0000b] in
/tmp/buildd/fieldworks-mono-2.8.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ContainerControl.cs:332
  at System.Windows.Forms.Form.SetVisibleCore (bool) [0x001a6] in
/tmp/buildd/fieldworks-mono-2.8.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2522
  at System.Windows.Forms.Control.set_Visible (bool) [0x0000c] in
/tmp/buildd/fieldworks-mono-2.8.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3424
  at System.Windows.Forms.Control.Show () [0x00000] in
/tmp/buildd/fieldworks-mono-2.8.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4422
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.Show ()
<IL 0x00032, 0x00053>
..



Reproducible: Always




It turns out that $prefix/etc/mono/config maps libX11 to libX11.so instead of
libX11.so.6. libX11.so gets installed/symlinked by package libx11-dev.

Further investigation shows that the configure script looks in /usr/lib and
/usr/lib64 for libX11.so.6, but on Ubuntu it's in
/usr/lib/(x86_64|i386)-linux-gnu

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list