Using mdb on a "hardened" system?

2 messages Options
Embed this post
Permalink
Mike Edenfield

Using mdb on a "hardened" system?

Reply Threaded More More options
Print post
Permalink
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  -  [hidden email]
http://lists.ximian.com/mailman/listinfo/mono-list
Miguel de Icaza

Re: Using mdb on a "hardened" system?

Reply Threaded More More options
Print post
Permalink
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  -  [hidden email]
> http://lists.ximian.com/mailman/listinfo/mono-list

_______________________________________________
Mono-list maillist  -  [hidden email]
http://lists.ximian.com/mailman/listinfo/mono-list