[Mono-dev] Still working on AIX ;-)

Rodrigo Kumpera kumpera at gmail.com
Mon May 11 17:26:52 EDT 2009

On Mon, May 11, 2009 at 6:19 PM, Randall Stewart <rrs at lakerest.net> wrote:

> Hi all:
> I am still working on AIX trying to make mono run..
> I am now to the point where I can get most
> of the regression tests to pass... but I am still
> a ways out.
> One thing that I have not figured out how to fix is the way
> AIX works with null pointer references.
> It appears that you can do a read NULL pointer
> reference and NOT get a SIGSEGV.
> I.e.:
> {
>    int *foo, x;
>    foo = NULL;
>    x = *foo;
> }
> Will NOT get you a segv but instead will get
> x set to 0.
> This causes some of the regressions to fail...
> Does anyone know some magic way to get AIX to give a SEGV on
> a null pointer reference?? Or is there a flag or some machine dependent
> thing I can flip to make Mono happy with this?
Mono doesn't support any other null check mode than the implicit SEGV when
reading from the first page. I have no knowledge on how to fix this AIX

On mono's side you can change the JIT to emit explicit null checks, this is
the consensus
between the runtime developers on how to approach this problem.

Good luck,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090511/481c333c/attachment-0001.html 

More information about the Mono-devel-list mailing list