Bug 2605 - Build an unsaved file hangs the MonoDevelop
Summary: Build an unsaved file hangs the MonoDevelop
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C Binding ()
Version: 2.8.5
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
: 2433 2714 ()
Depends on:
Blocks:
 
Reported: 2011-12-21 19:23 UTC by Tony Alexander Hild
Modified: 2012-04-04 22:28 UTC (History)
5 users (show)

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


Attachments
debug file (1.43 KB, text/plain)
2011-12-22 22:39 UTC, Tony Alexander Hild
Details
gdb trace (36.39 KB, text/plain)
2011-12-24 21:23 UTC, Tony Alexander Hild
Details


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 Developer Community or GitHub 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 FIXED

Description Tony Alexander Hild 2011-12-21 19:23:40 UTC
When I try to build an C++ project with an unsaved file the MonoDevelop hangs indefinitely.

Steps to reproduce:
-Create an C++ solution.
-Modify a file.
-Build the project.

Version 2.8.5

OpenSuse 11.4

Linux version 2.6.37.6-0.7-desktop (geeko@buildhost) (gcc version 4.5.1 20101208 [gcc-4_5-branch revision 167585] (SUSE Linux) ) #1 SMP PREEMPT 2011-07-21 02:17:24 +0200
Comment 1 Mikayla Hutchinson [MSFT] 2011-12-22 11:22:18 UTC
Could you please obtain stack traces from the hung process?

http://monodevelop.com/Developers/Reporting_Bugs#Debugging_Hangs_on_Mac_and_Linux
Comment 2 Tony Alexander Hild 2011-12-22 22:39:41 UTC
Created attachment 1090 [details]
debug file

Actually, debugging a project with unsaved file hangs monodevelop.

Sometimes it just works, or sometimes it give me a message asking to reload the file.

The log file don't give any relevant information.

ERROR [2011-12-22 23:46:06Z]: Error while reading welcome page contents.
System.ArgumentNullException: Argument cannot be null.
Parameter name: stream
  at System.IO.StreamReader.Initialize (System.IO.Stream stream, System.Text.Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) [0x001a0] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/corlib/System.IO/StreamReader.cs:233 
  at System.IO.StreamReader..ctor (System.IO.Stream stream, System.Text.Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) [0x00006] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/corlib/System.IO/StreamReader.cs:143 
  at System.IO.StreamReader..ctor (System.IO.Stream stream) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.StreamReader:.ctor (System.IO.Stream)
  at System.Xml.Linq.XDocument.Load (System.IO.Stream stream) [0x00000] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/System.Xml.Linq/System.Xml.Linq/XDocument.cs:109 
  at MonoDevelop.Ide.WelcomePage.WelcomePageBranding..cctor () [0x00056] in /usr/src/packages/BUILD/monodevelop-2.8.5/src/core/MonoDevelop.Ide/MonoDevelop.Ide.WelcomePage/WelcomePageBranding.cs:50 
Error: did not find one of the files in sources//usr/lib/monodoc/sources/gd2i
node `classlib-webkit' is not defined on the documentation map
Error: duplicate keyword true
Error: duplicate keyword false
Error: duplicate keyword void
Unknown event: running
Comment 3 Tony Alexander Hild 2011-12-22 22:52:37 UTC
Please tell me if this is not correct.

tony@tony-note:~> ps -A | grep monodevelop
24066 pts/3    00:00:00 monodevelop
tony@tony-note:~> kill -QUIT 24066
tony@tony-note:~> gdb attach 24066
GNU gdb (GDB) SUSE (7.2-3.3)
Copyright (C) 2010 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-suse-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
attach: Arquivo ou diretório não encontrado.
Attaching to process 24066
Reading symbols from /bin/bash...Missing separate debuginfo for /bin/bash
Try: zypper install -C "debuginfo(build-id)=e647140d0573a772216998e31cae5bab250e9794"
(no debugging symbols found)...done.
Reading symbols from /lib64/libreadline.so.6...Missing separate debuginfo for /lib64/libreadline.so.6
Try: zypper install -C "debuginfo(build-id)=4e5274556a452cc2d307cbdf4bde2ad3fba46ba8"
(no debugging symbols found)...done.
Loaded symbols for /lib64/libreadline.so.6
Reading symbols from /lib64/libncurses.so.5...Missing separate debuginfo for /lib64/libncurses.so.5
Try: zypper install -C "debuginfo(build-id)=814f4903ea29639ec9b902309ec5ae0fb263027b"
(no debugging symbols found)...done.
Loaded symbols for /lib64/libncurses.so.5
Reading symbols from /lib64/libdl.so.2...Reading symbols from /usr/lib/debug/lib64/libdl-2.11.3.so.debug...done.
done.
Loaded symbols for /lib64/libdl.so.2
Reading symbols from /lib64/libc.so.6...Reading symbols from /usr/lib/debug/lib64/libc-2.11.3.so.debug...done.
done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/lib64/ld-2.11.3.so.debug...done.
done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
0x00007f6bc96b726e in __libc_waitpid (pid=-1, stat_loc=0x7ffffb8ca64c, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:32
32      ../sysdeps/unix/sysv/linux/waitpid.c: Arquivo ou diretório não encontrado.
        in ../sysdeps/unix/sysv/linux/waitpid.c
(gdb) t
[Current thread is 1 (process 24066)]
(gdb) a
Ambiguous command "a": actions, add-inferior, add-symbol-file, add-symbol-file-from-memory, advance, aliases, append...
(gdb) a
Ambiguous command "a": actions, add-inferior, add-symbol-file, add-symbol-file-from-memory, advance, aliases, append...
(gdb) bt
#0  0x00007f6bc96b726e in __libc_waitpid (pid=-1, stat_loc=0x7ffffb8ca64c, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:32
#1  0x0000000000475af8 in ?? ()
#2  0x00000000004289a4 in wait_for ()
#3  0x000000000045ec30 in execute_command_internal ()
#4  0x00000000004223c7 in ?? ()
#5  0x0000000000422e51 in ?? ()
#6  0x000000000045dee6 in execute_command_internal ()
#7  0x0000000000422de8 in ?? ()
#8  0x000000000045dee6 in execute_command_internal ()
#9  0x000000000045ee21 in execute_command ()
#10 0x000000000045dddc in execute_command_internal ()
#11 0x000000000045ee21 in execute_command ()
#12 0x00000000004521e6 in reader_loop ()
#13 0x000000000041a88c in main ()
(gdb)
Comment 4 Mikayla Hutchinson [MSFT] 2011-12-23 18:17:45 UTC
That gdb trace isn't the monodevelop process, it's bash. Try looking through the process list to find the real PID, then try the kill -QUIT and gdb attach with that.
Comment 5 Tony Alexander Hild 2011-12-24 21:23:03 UTC
Created attachment 1096 [details]
gdb trace
Comment 6 Mikayla Hutchinson [MSFT] 2012-02-18 19:12:45 UTC
This looks like a manifestation of a bug we fixed recently where building with unsaved files caused a crash on MacOS, because the build thread was touching the UI. I guess it causes this hang on X11 - can you update and confirm it's fixed for you?
Comment 7 Tony Alexander Hild 2012-03-07 14:31:30 UTC
It was fixed in 2.8.6.3.
Comment 8 Alan McGovern 2012-04-01 17:55:32 UTC
Closing the bug as it has been confirmed as fixed
Comment 9 Mikayla Hutchinson [MSFT] 2012-04-04 22:28:22 UTC
*** Bug 2433 has been marked as a duplicate of this bug. ***
Comment 10 Mikayla Hutchinson [MSFT] 2012-04-04 22:28:38 UTC
*** Bug 2714 has been marked as a duplicate of this bug. ***