pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/46283: /usr/pkg/bin/mono sometimes hangs



>Number:         46283
>Category:       pkg
>Synopsis:       /usr/pkg/bin/mono sometimes hangs
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 30 19:45:00 +0000 2012
>Originator:     Greg Oster
>Release:        NetBSD 6.0_BETA
>Organization:

Later...

Greg Oster
>Environment:
        
        
System: NetBSD quad 6.0_BETA NetBSD 6.0_BETA (QUAD) #0: Sun Mar 25 17:28:55 CST 
2012 
oster@quad:/u1/builds/build205/src/obj/amd64/u1/builds/build205/src/sys/arch/amd64/compile/QUAD
 amd64
Architecture: x86_64
Machine: amd64
>Description:
        While attempting to build gnome on netbsd-6 (BETA) I once again
encountered the issue of /usr/pkg/bin/mono just hanging for indeterminate
periods of time.  I've seen this issue on NetBSD 5.1/amd64 as well.
For the hang mentioned here, the hang happens thusly:

gmake[3]: Entering directory `/usr/pkgsrc/x11/gnome-sharp/work.thog/gnome-sharp-
2.24.2/gconf/doc'
gmake[3]: Nothing to be done for `all'.
gmake[3]: Leaving directory `/usr/pkgsrc/x11/gnome-sharp/work.thog/gnome-sharp-2
.24.2/gconf/doc'
gmake[3]: Entering directory `/usr/pkgsrc/x11/gnome-sharp/work.thog/gnome-sharp-
2.24.2/gconf'
gmake[3]: Nothing to be done for `all-am'.
gmake[3]: Leaving directory `/usr/pkgsrc/x11/gnome-sharp/work.thog/gnome-sharp-2
.24.2/gconf'
gmake[2]: Leaving directory `/usr/pkgsrc/x11/gnome-sharp/work.thog/gnome-sharp-2
.24.2/gconf'
Making all in sample
gmake[2]: Entering directory `/usr/pkgsrc/x11/gnome-sharp/work.thog/gnome-sharp-
2.24.2/sample'
Making all in gconf
gmake[3]: Entering directory `/usr/pkgsrc/x11/gnome-sharp/work.thog/gnome-sharp-
2.24.2/sample/gconf'
MONO_PATH=../../gconf/GConf/gconf-sharp.dll: mono ../../gconf/tools/gconfsharp-s
chemagen.exe Sample ./sample.schema > Settings.cs
/usr/pkg/bin/mcs /out:sample.exe Settings.cs ./main.cs -r:/usr/pkg/lib/mono/gtk-
sharp-2.0/pango-sharp.dll -r:/usr/pkg/lib/mono/gtk-sharp-2.0/atk-sharp.dll -r:/u
sr/pkg/lib/mono/gtk-sharp-2.0/gdk-sharp.dll -r:/usr/pkg/lib/mono/gtk-sharp-2.0/g
tk-sharp.dll -r:/usr/pkg/lib/mono/gtk-sharp-2.0/glib-sharp.dll   -r:/usr/pkg/lib
/mono/gtk-sharp-2.0/glade-sharp.dll -r:/usr/pkg/lib/mono/gtk-sharp-2.0/pango-sha
rp.dll -r:/usr/pkg/lib/mono/gtk-sharp-2.0/atk-sharp.dll -r:/usr/pkg/lib/mono/gtk
-sharp-2.0/gdk-sharp.dll -r:/usr/pkg/lib/mono/gtk-sharp-2.0/gtk-sharp.dll -r:/us
r/pkg/lib/mono/gtk-sharp-2.0/glib-sharp.dll   /r:../../art/art-sharp.dll /r:../.
./gconf/GConf/gconf-sharp.dll /r:../../gnome/gnome-sharp.dll /r:../../gconf/GCon
f.PropertyEditors/gconf-sharp-peditors.dll /resource:./sample.glade
Settings.cs(102,59): warning CS0219: The variable `e' is assigned but its value 
is never used
Settings.cs(126,59): warning CS0219: The variable `e' is assigned but its value 
is never used
Compilation succeeded - 2 warning(s)
gmake[3]: Leaving directory `/usr/pkgsrc/x11/gnome-sharp/work.thog/gnome-sharp-2
.24.2/sample/gconf'
Making all in gnomevfs
gmake[3]: Entering directory 
`/usr/pkgsrc/x11/gnome-sharp/work.thog/gnome-sharp-2.24.2/sample/gnomevfs'
/usr/pkg/bin/mcs /out:TestAsync.exe 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/pango-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/atk-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/gdk-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/gtk-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/glib-sharp.dll   
/r:../../gnomevfs/gnome-vfs-sharp.dll ./TestAsync.cs
./TestAsync.cs(10,39): warning CS0414: The private field 
`TestGnomeVfs.TestAsync.handle' is assigned but its value is never used
Compilation succeeded - 1 warning(s)
/usr/pkg/bin/mcs /out:TestAsyncStream.exe 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/pango-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/atk-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/gdk-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/gtk-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/glib-sharp.dll   
/r:../../gnomevfs/gnome-vfs-sharp.dll ./TestAsyncStream.cs
./TestAsyncStream.cs(35,38): warning CS0219: The variable `result' is assigned 
but its value is never used
Compilation succeeded - 1 warning(s)
/usr/pkg/bin/mcs /out:TestCallback.exe 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/pango-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/atk-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/gdk-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/gtk-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/glib-sharp.dll   
/r:../../gnomevfs/gnome-vfs-sharp.dll ./TestCallback.cs
./TestCallback.cs(8,41): warning CS0169: The private field 
`TestGnomeVfs.TestCallback.loop' is never used
Compilation succeeded - 1 warning(s)
/usr/pkg/bin/mcs /out:TestDirectory.exe 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/pango-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/atk-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/gdk-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/gtk-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/glib-sharp.dll   
/r:../../gnomevfs/gnome-vfs-sharp.dll ./TestDirectory.cs
/usr/pkg/bin/mcs /out:TestInfo.exe 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/pango-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/atk-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/gdk-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/gtk-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/glib-sharp.dll   
/r:../../gnomevfs/gnome-vfs-sharp.dll ./TestInfo.cs
/usr/pkg/bin/mcs /out:TestMime.exe 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/pango-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/atk-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/gdk-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/gtk-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/glib-sharp.dll   
/r:../../gnomevfs/gnome-vfs-sharp.dll ./TestMime.cs
/usr/pkg/bin/mcs /out:TestMonitor.exe 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/pango-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/atk-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/gdk-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/gtk-sharp.dll 
-r:/usr/pkg/lib/mono/gtk-sharp-2.0/glib-sharp.dll   
/r:../../gnomevfs/gnome-vfs-sharp.dll ./TestMonitor.cs

*hang*



At this point the process has been hung for about 18 hours.  Investigating with
gdb reveals:

gdb ./mono 18372
GNU gdb (GDB) 7.3.1
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64--netbsd".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /u1/sandbox/usr/pkg/bin/mono...(no debugging symbols 
found)...done.
Attaching to program: /u1/sandbox/usr/pkg/bin/mono, process 18372
Reading symbols from /usr/lib/libm.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libm.so.0
Reading symbols from /usr/lib/libpthread.so.1...(no debugging symbols 
found)...done.
[New LWP 9]
[New LWP 8]
[New LWP 7]
[New LWP 6]
[New LWP 5]
[New LWP 4]
[New LWP 3]
[New LWP 2]
[New LWP 1]
Loaded symbols for /usr/lib/libpthread.so.1
Reading symbols from /usr/lib/libc.so.12...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libc.so.12
Reading symbols from /usr/lib/libgcc_s.so.1...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libgcc_s.so.1
Reading symbols from /usr/libexec/ld.elf_so...(no debugging symbols 
found)...done.
Loaded symbols for /usr/libexec/ld.elf_so
0x00007f7ff7038eca in _sys___sigsuspend14 () from /usr/lib/libc.so.12
(gdb) where
#0  0x00007f7ff7038eca in _sys___sigsuspend14 () from /usr/lib/libc.so.12
#1  0x00007f7ff7406692 in __sigsuspend14 () from /usr/lib/libpthread.so.1
#2  0x00000000005bf98d in ?? ()
#3  <signal handler called>
#4  0x00007f7ff7076eda in ___lwp_park50 () from /usr/lib/libc.so.12
#5  0x00007f7ff7408854 in pthread_cond_wait () from /usr/lib/libpthread.so.1
#6  0x00007f7ff7405c21 in sem_wait () from /usr/lib/libpthread.so.1
#7  0x00000000005a9361 in mono_sem_wait ()
#8  0x00000000004ff2d0 in ?? ()
#9  0x00000000005747e0 in ?? ()
#10 0x000000000059f361 in ?? ()
#11 0x00000000005bf17c in ?? ()
#12 0x00007f7ff7409cd5 in ?? () from /usr/lib/libpthread.so.1
#13 0x00007f7ff7076ef0 in ___lwp_park50 () from /usr/lib/libc.so.12
#14 0x00007f7fb8000000 in ?? ()
#15 0x00007f7ff7ff0780 in ?? ()
#16 0x0000000111110001 in ?? ()
#17 0x0000000033330003 in ?? ()
#18 0x0000000000000000 in ?? ()
(gdb) info threads
  Id   Target Id         Frame 
  10   LWP 1             0x00007f7ff7076eda in ___lwp_park50 ()
   from /usr/lib/libc.so.12
  9    LWP 2             0x00007f7ff7076eda in ___lwp_park50 ()
   from /usr/lib/libc.so.12
  8    LWP 3             0x00007f7ff7076eda in ___lwp_park50 ()
   from /usr/lib/libc.so.12
  7    LWP 4             0x00007f7ff7076eda in ___lwp_park50 ()
   from /usr/lib/libc.so.12
  6    LWP 5             0x00007f7ff7076eda in ___lwp_park50 ()
   from /usr/lib/libc.so.12
  5    LWP 6             0x00007f7ff7076eda in ___lwp_park50 ()
   from /usr/lib/libc.so.12
  4    LWP 7             0x00007f7ff7076eda in ___lwp_park50 ()
   from /usr/lib/libc.so.12
  3    LWP 8             0x00007f7ff7076eda in ___lwp_park50 ()
   from /usr/lib/libc.so.12
  2    LWP 9             0x00007f7ff7038eca in _sys___sigsuspend14 ()
   from /usr/lib/libc.so.12
* 1    LWP 0             0x00007f7ff7038eca in _sys___sigsuspend14 ()
   from /usr/lib/libc.so.12
(gdb) thread 2
[Switching to thread 2 (LWP 9)]
#0  0x00007f7ff7038eca in _sys___sigsuspend14 () from /usr/lib/libc.so.12
(gdb) where
#0  0x00007f7ff7038eca in _sys___sigsuspend14 () from /usr/lib/libc.so.12
#1  0x00007f7ff7406692 in __sigsuspend14 () from /usr/lib/libpthread.so.1
#2  0x00000000005bf98d in ?? ()
#3  <signal handler called>
#4  0x00007f7ff7076eda in ___lwp_park50 () from /usr/lib/libc.so.12
#5  0x00007f7ff7408854 in pthread_cond_wait () from /usr/lib/libpthread.so.1
#6  0x00007f7ff7405c21 in sem_wait () from /usr/lib/libpthread.so.1
#7  0x00000000005a9361 in mono_sem_wait ()
#8  0x00000000004ff2d0 in ?? ()
#9  0x00000000005747e0 in ?? ()
#10 0x000000000059f361 in ?? ()
#11 0x00000000005bf17c in ?? ()
#12 0x00007f7ff7409cd5 in ?? () from /usr/lib/libpthread.so.1
#13 0x00007f7ff7076ef0 in ___lwp_park50 () from /usr/lib/libc.so.12
#14 0x00007f7fb8000000 in ?? ()
#15 0x00007f7ff7ff0780 in ?? ()
#16 0x0000000111110001 in ?? ()
#17 0x0000000033330003 in ?? ()
#18 0x0000000000000000 in ?? ()
(gdb) 


I can let the box sit like this for a while if there is something in particular
that can be gleaned from gdb.  What I've noticed before is that by hitting
CTRL-C and resuming the build that it will happily continue on.... perhaps to
completion, or perhaps to hanging on the next spot that it feels like hanging.
So far there has been no specific .exe that it hangs on...



>How-To-Repeat:
        cd /usr/pkgsrc/meta-pkgs/gnome
        make install clean
        *wait for the boom*
>Fix:
        Please.  Thanks.

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index