Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Aug 2004 23:02:13 -0400
From:      Christopher Nehren <apeiron@comcast.net>
To:        FreeBSD GNOME Team <gnome@freebsd.org>
Subject:   Mono core dumping if mcs is called with -pkg
Message-ID:  <20040811030213.GA29912@prophecy.dyndns.org>

next in thread | raw e-mail | index | archive | help
--pf9I7BMVVzbSWLtt
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I have Mono working nicely on my FreeBSD-CURRENT installation, with one
minor issue: whenever mcs tries to build something using the -pkg flag,
it core dumps. Here's a screenlog of a minimal test case:


[(22:46:35) apeiron@prophecy ~] cat foo.cs
using Gtk;

class Foo
{
        public static void Main()
        {
                int bar =3D 1 + 1;
        }
}
[(22:46:40) apeiron@prophecy ~] mcs -pkg:gtk-sharp foo.cs
Segmentation fault (core dumped)
[(22:46:47) apeiron@prophecy ~] mcs -r:/usr/local/lib/mono/gtk-sharp/glib-s=
harp.dll -r:/usr/local/lib/mono/gtk-sharp/pango-sharp.dll -r:/usr/local/lib=
/mono/gtk-sharp/atk-sharp.dll -r:/usr/local/lib/mono/gtk-sharp/gdk-sharp.dl=
l -r:/usr/local/lib/mono/gtk-sharp/gtk-sharp.dll foo.cs
Compilation succeeded
[(22:47:01) apeiron@prophecy ~] gdb `which mono` mono.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain condition=
s.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols fo=
und)...
Core was generated by `mono'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libmono.so.0...done.
Loaded symbols for /usr/local/lib/libmono.so.0
Reading symbols from /usr/local/lib/libgthread-2.0.so.400...done.
Loaded symbols for /usr/local/lib/libgthread-2.0.so.400
Reading symbols from /usr/local/lib/libgmodule-2.0.so.400...done.
Loaded symbols for /usr/local/lib/libgmodule-2.0.so.400
Reading symbols from /usr/local/lib/libglib-2.0.so.400...done.
Loaded symbols for /usr/local/lib/libglib-2.0.so.400
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /usr/lib/libpthread.so.1...done.
Loaded symbols for /usr/lib/libpthread.so.1
Reading symbols from /lib/libm.so.2...done.
Loaded symbols for /lib/libm.so.2
Reading symbols from /lib/libc.so.5...done.
Loaded symbols for /lib/libc.so.5
Reading symbols from /usr/local/lib/libintl.so.6...done.
Loaded symbols for /usr/local/lib/libintl.so.6
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x283a70fb in pthread_testcancel () from /usr/lib/libpthread.so.1
(gdb) bt
#0  0x283a70fb in pthread_testcancel () from /usr/lib/libpthread.so.1
#1  0x2839f2cb in pthread_mutexattr_init () from /usr/lib/libpthread.so.1
#2  0x08053000 in ?? ()
(gdb)

My guess is that mono (and / or its interactions with libpthread) has
difficulty with calling an external program, since that's what the -pkg
flag does. I'm not sure of what else I can provide other than the
boilerplate system information.

FreeBSD prophecy.dyndns.org 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Sun Aug  8 =
22:14:06 EDT 2004     root@prophecy.dyndns.org:/usr/src/sys/i386/compile/PR=
OPHECY  i386

My sources are from the early afternoon || evening of that same Sunday.

[(22:50:17) apeiron@prophecy ~] cat /etc/libmap.conf
libpthread.so           libc_r.so
libpthread.so.1         libc_r.so.5

[/usr/local/bin/mono]
libpthread.so           libpthread.so
libpthread.so.1         libpthread.so.1

[/usr/ports/lang/mono/work/mono-1.0/mono/mini/mono]
libpthread.so.1         libpthread.so.1
libpthread.so           libpthread.so

[lt-mono]
libpthread.so.1         libpthread.so.1
libpthread.so           libpthread.so
[(22:50:21) apeiron@prophecy ~]=20

I found that mono had problems installing unless I added lt-mono. This
is on a machine using nVidia binary drivers, though I'd be glad to try
testing with unconstrained mapping of libpthread.so* to libpthread.so*
if anyone believes that it will yield more information. I'd provide a
full package listing, but I doubt that anyone wants 691 more lines from
me. :) And yes, that *is* with pkg_cutleaves.

--
I abhor a system designed for the "user", if that word is a coded
pejorative meaning "stupid and unsophisticated".  -- Ken Thompson
-
Unix is user friendly. However, it isn't idiot friendly.
--pf9I7BMVVzbSWLtt
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (FreeBSD)

iD8DBQFBGYw1k/lo7zvzJioRAp0VAJ9z5uqOl0bfXvpqp1BdFkChEGVf0wCfegUU
KWa938Qu0+QxZCAfiCJ8e1k=
=m07r
-----END PGP SIGNATURE-----
--pf9I7BMVVzbSWLtt--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040811030213.GA29912>