Sorry, I need to recommend against my patch. It seems to break the
debugger. :( I'd still like to see the exec stack issue fixed. Forcing
exec stack for all mono apps seems... unfun. ;)
$ echo 'class MainClass { static void Main() { System.Console.WriteLine("Hello
World!"); } }' > hello.cs
$ gmcs hello.cs
$ ./hello.exe
Hello World!
$ mdb ./hello.exe
Mono Debugger
(mdb) run
Starting program: ./hello.exe
Cannot read symbol file `/usr/lib/mono/2.0/mscorlib.dll.mdb': Could not
find file "/usr/lib/mono/2.0/mscorlib.dll.mdb".
Cannot read symbol file `/home/kees/hello.exe.mdb': Could not find file
"/home/kees/hello.exe.mdb".
(mdb) Thread @1 received signal 11 at #0: 0xff87c909.
0xff87c909 push $0xff87c932
quit
The program is running. Exit anyway? (y or n) y
Thread @1 exited.
Process #1 exited.
Target exited.
A good run would be:
$ mdb ./hello.exe
Mono Debugger
(mdb) run
Starting program: ./hello.exe
Cannot read symbol file `/usr/lib/mono/2.0/mscorlib.dll.mdb': Could not
find file "/usr/lib/mono/2.0/mscorlib.dll.mdb".
Cannot read symbol file `/home/kees/hello.exe.mdb': Could not find file
"/home/kees/hello.exe.mdb".
Thread @1 stopped at #0: 0xf79bb2d6 in <MainClass:Main ()>+0x6 at 1.
1 IL_0000: ldstr
(mdb) cont
Hello World!
Thread @1 exited.
(mdb) Process #1 exited.
Target exited.
quit
--
Kees Cook @debian.org
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]