Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

From: Roland Dreier (rdreier_at_[hidden])
Date: 2006-12-11 18:04:59


> > Breakpoint 1, main (argc=1, argv=0xbf81fae4) at mpitest.c:6
> > 6 MPI_Init(&argc, &argv);
> > (gdb) p argc
> > $1 = 1
> > (gdb) n
> > 7 MPI_Finalize();
> > (gdb) p argc
> > Cannot access memory at address 0x0
> > (gdb)
>
> That's very odd. I don't see where this is happening in the code --
> we literally never assign that value. Can you run this through
> valgrind and see if there's something else going on?

It seems extremely likely that this is some sort of gdb or toolchain
bug. MPI_Init is passed &argc, so it could easily corrupt the value
in argc, but I don't see how it could change the address of the
parameter argc itself.

 - R.