Using mdb on a "hardened" system?

View: New views
2 Messages — Rating Filter:   Alert me  

Using mdb on a "hardened" system?

by Kutulu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've recently put MonoDevelop onto a system that's running Hardened
Gentoo -- the kernel has PaX active and the compiler defaults to PIE +
SSP for all applications.

I can successfully run applications normally by disabling some of the
PaX protections on /usr/bin/mono, but I've been unable to debug
applications.  When I try to start an application via mdb (or via the
monodevelop-debugger plugin) I get this:

EXCEPTION: Mono.Debugger.TargetMemoryException: Cannot read 8 bytes from
target memory at address 0x0049de20

Does anyone have experience with this kind of setup?  Is there something
I can do to make this work, or is it just never going to work on this
system?

--Mike

_______________________________________________
Mono-list maillist  -  Mono-list@...
http://lists.ximian.com/mailman/listinfo/mono-list

Re: Using mdb on a "hardened" system?

by Miguel de Icaza-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Mike,

    Although I do not have an answer for you when it comes to PaX or any
other hardened features, I can tell you that you might want to try Mono
2.6 from SVN (not the releases tarballs) and MonoDevelop 2.2 from SVN as
they both support the new Soft Debugger.

    The support is not complete, but we expect to have this finished
this week.

> I've recently put MonoDevelop onto a system that's running Hardened
> Gentoo -- the kernel has PaX active and the compiler defaults to PIE +
> SSP for all applications.
>
> I can successfully run applications normally by disabling some of the
> PaX protections on /usr/bin/mono, but I've been unable to debug
> applications.  When I try to start an application via mdb (or via the
> monodevelop-debugger plugin) I get this:
>
> EXCEPTION: Mono.Debugger.TargetMemoryException: Cannot read 8 bytes from
> target memory at address 0x0049de20
>
> Does anyone have experience with this kind of setup?  Is there something
> I can do to make this work, or is it just never going to work on this
> system?
>
> --Mike
>
> _______________________________________________
> Mono-list maillist  -  Mono-list@...
> http://lists.ximian.com/mailman/listinfo/mono-list

_______________________________________________
Mono-list maillist  -  Mono-list@...
http://lists.ximian.com/mailman/listinfo/mono-list