[Mono-bugs] [Bug 507108] New: "Hello World" hangs/crashes on embedded PPC/Linux system with mono version 2.4, versions 2.2 and 1.2.6 are working fine
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue May 26 09:46:20 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=507108
Summary: "Hello World" hangs/crashes on embedded PPC/Linux
system with mono version 2.4, versions 2.2 and 1.2.6
are working fine
Classification: Mono
Product: Mono: Runtime
Version: 2.4.x
Platform: PowerPC
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: P5 - None
Component: misc
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: harald.herrmann at ids.de
QAContact: mono-bugs at lists.ximian.com
Found By: ---
User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.5)
Gecko/2008121622 Fedora/3.0.5-1.fc10 Firefox/3.0.5
We are using mono on an embedded PPC/Linux platform. Versions 2.2 and 1.2.6 are
working fine. With version 2.4 a "Hello World" already hangs/crashes during
assembly initialization.
Reproducible: Always
Steps to Reproduce:
1. Our target system is a Freescale MPC8247 embedded processor board, Linux
kernel version is 2.6.27.
2. For cross development we are using the eldk 4.2 toolchain. Our gcc version
is 4.2.2, glib version is 2.12.13.
3. Mono is built on base of the 2.4 source tar file.
4. Configure command line is "./configure --host=ppc-linux --prefix=/usr/local
mono_cv_uscore=no cv_mono_sizeof_sunpath=108 mono_cv_sizeof_sunpath=108
CPP=ppc_6xx-cpp CC=ppc_6xx-gcc LDFLAGS=-L/opt/eldk/ppc_6xx/usr/lib
--with-tls=pthread --with-sigaltstack=no --without-x --with-glib=system
--with-crosspkgdir=/opt/eldk/ppc_6xx/usr/lib/pkgconfig
--oldincludedir=/opt/eldk/ppc_6xx/usr/include"
5. The source code for our "Hello World" appliance is as follows:
using System;
class HelloWorld
{
public static void Main(string[] args)
{
while (true)
{
Console.WriteLine("Mono: Hello World!");
System.Threading.Thread.Sleep(100);
}
}
}
6. Our "Hello World" appliance is compiled with the Mono c# compiler of our
development system. Mcs version is 2.4.0.0
7. The "Hello World" appliance is started using the following command line:
mono HelloWorld.exe
Actual Results:
The mono command appears to hang and does not give any output. When we start
mono with the --trace=all option we get the following output:
[0x4801f6b0: 0.00001 0] ENTER: (wrapper runtime-invoke)
object:runtime_invoke_void__this___object (object,intptr,intptr,intptr)() ip:
0x1001a17c
[0x4801f6b0: 0.00161 1] ENTER: System.OutOfMemoryException:.ctor (string)() ip:
0x4826d0cc
[0x4801f6b0: 0.00520 2] ENTER: System.SystemException:.ctor (string)() ip:
0x4826d238
[0x4801f6b0: 0.00893 3] ENTER: System.Exception:.ctor (string)() ip: 0x4826d2c8
[0x4801f6b0: 0.01189 3] LEAVE: System.Exception:.ctor (string)
[0x4801f6b0: 0.01381 2] LEAVE: System.SystemException:.ctor (string)
[0x4801f6b0: 0.01799 1] LEAVE: System.OutOfMemoryException:.ctor (string)
[0x4801f6b0: 0.02095 0] LEAVE: (wrapper runtime-invoke)
object:runtime_invoke_void__this___object
(object,intptr,intptr,intptr)[OBJECT:(nil)]
[0x4801f6b0: 0.02911 0] ENTER: (wrapper runtime-invoke)
object:runtime_invoke_void__this___object (object,intptr,intptr,intptr)() ip:
0x1001a17c
[0x4801f6b0: 0.03094 1] ENTER: System.NullReferenceException:.ctor (string)()
ip: 0x4826d0cc
[0x4801f6b0: 0.03198 2] ENTER: System.SystemException:.ctor (string)() ip:
0x4826d3c8
[0x4801f6b0: 0.03419 3] ENTER: System.Exception:.ctor (string)() ip: 0x4826d2c8
[0x4801f6b0: 0.03526 3] LEAVE: System.Exception:.ctor (string)
[0x4801f6b0: 0.03826 2] LEAVE: System.SystemException:.ctor (string)
[0x4801f6b0: 0.04230 1] LEAVE: System.NullReferenceException:.ctor (string)
[0x4801f6b0: 0.04719 0] LEAVE: (wrapper runtime-invoke)
object:runtime_invoke_void__this___object
(object,intptr,intptr,intptr)[OBJECT:(nil)]
[0x4801f6b0: 0.05423 0] ENTER: (wrapper runtime-invoke)
object:runtime_invoke_void__this___object (object,intptr,intptr,intptr)() ip:
0x1001a17c
[0x4801f6b0: 0.05687 1] ENTER: System.StackOverflowException:.ctor (string)()
ip: 0x4826d0cc
[0x4801f6b0: 0.05822 2] ENTER: System.SystemException:.ctor (string)() ip:
0x4826d448
[0x4801f6b0: 0.05914 3] ENTER: System.Exception:.ctor (string)() ip: 0x4826d2c8
[0x4801f6b0: 0.06019 3] LEAVE: System.Exception:.ctor (string)
[0x4801f6b0: 0.06320 2] LEAVE: System.SystemException:.ctor (string)
[0x4801f6b0: 0.06759 1] LEAVE: System.StackOverflowException:.ctor (string)
[0x4801f6b0: 0.07096 0] LEAVE: (wrapper runtime-invoke)
object:runtime_invoke_void__this___object
(object,intptr,intptr,intptr)[OBJECT:(nil)]
[0x4801f6b0: 0.13456 0] ENTER: (wrapper runtime-invoke)
HelloWorld:runtime_invoke_void_object (object,intptr,intptr,intptr)() ip:
0x1001a17c
[0x4801f6b0: 0.13558 1] ENTER: HelloWorld:Main (string[])() ip: 0x4826d510
[0x4801f6b0: 0.20330 2] ENTER: (wrapper runtime-invoke)
object:runtime_invoke_void (object,intptr,intptr,intptr)() ip: 0x1001a17c
[0x4801f6b0: 0.20419 3] ENTER: System.Console:.cctor ()() ip: 0x4826d800
[0x4801f6b0: 0.24112 4] ENTER: (wrapper runtime-invoke)
object:runtime_invoke_void (object,intptr,intptr,intptr)() ip: 0x1001a17c
[0x4801f6b0: 0.24316 5] ENTER: System.Text.Encoding:.cctor ()() ip: 0x4826d800
[0x4801f6b0: 0.25920 6] ENTER: (wrapper runtime-invoke)
object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)() ip:
0x1001a17c
[0x4801f6b0: 0.26026 7] ENTER: System.NullReferenceException:.ctor ()() ip:
0x4826eaf4
[0x4801f6b0: 0.26122 8] ENTER: System.SystemException:.ctor (string)() ip:
0x4826ec60
[0x4801f6b0: 0.26212 9] ENTER: System.Exception:.ctor (string)() ip: 0x4826d2c8
[0x4801f6b0: 0.26506 9] LEAVE: System.Exception:.ctor (string)
[0x4801f6b0: 0.26816 8] LEAVE: System.SystemException:.ctor (string)
[0x4801f6b0: 0.27119 7] LEAVE: System.NullReferenceException:.ctor ()
[0x4801f6b0: 0.27407 6] LEAVE: (wrapper runtime-invoke)
object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)[OBJECT:(nil)]
EXCEPTION handling: NullReferenceException
EXCEPTION: catch found at clause 0 of (wrapper runtime-invoke)
object:runtime_invoke_void (object,intptr,intptr,intptr)
[0x4801f6b0: 0.28419 5] LEAVE: (wrapper runtime-invoke)
object:runtime_invoke_void (object,intptr,intptr,intptr)[OBJECT:(nil)]
[...
Expected Results:
Cyclic output of "Hello World" to the console.
The same procedure as described above works without problems with mono versions
1.2.6 and 2.2.
--
Configure bugmail: http://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