Nullified pointers and xlf (Fock)
Nullified pointers and xlf (Fock)
Hello everybody,
After Xavier's mail about a partial merge of v6.1.0, I take the opportunity because I encounter a problem with xlf on Fock and I don't know how to solve it.
According to Xavier's email:
Not merged because of failing tests or problems with abirules :
torrent revno 137 (segfault on Fock for two tests, unfortunately)
The segfault in my branch is due to a "nullified" pointer which is not accepted by xlf as argument of a routine.
This is not the first time I encounter the problem and I find it "un-elegant" to solve it.
More precisely:
when I nullifed a pointer (nullify(ptr)), xlf does not accept it as an argument:
"call subrout(..., ptr,...)" crashes, EVEN if the pointer is NOT USED inside the routine.
The only solution I found is to give a target to the pointer... which can be dangerous...
I thought that nullifying a pointer was sufficient to handle it without problems; apparently not...
This problem occurs only on Fock under xlf...
Any idea ?
Marc
After Xavier's mail about a partial merge of v6.1.0, I take the opportunity because I encounter a problem with xlf on Fock and I don't know how to solve it.
According to Xavier's email:
Not merged because of failing tests or problems with abirules :
torrent revno 137 (segfault on Fock for two tests, unfortunately)
The segfault in my branch is due to a "nullified" pointer which is not accepted by xlf as argument of a routine.
This is not the first time I encounter the problem and I find it "un-elegant" to solve it.
More precisely:
when I nullifed a pointer (nullify(ptr)), xlf does not accept it as an argument:
"call subrout(..., ptr,...)" crashes, EVEN if the pointer is NOT USED inside the routine.
The only solution I found is to give a target to the pointer... which can be dangerous...
I thought that nullifying a pointer was sufficient to handle it without problems; apparently not...
This problem occurs only on Fock under xlf...
Any idea ?
Marc
Marc Torrent
CEA - Bruyères-le-Chatel
France
CEA - Bruyères-le-Chatel
France
Re: Nullified pointers and xlf (Fock)
In passing:
I didn't know where to place this thread in the forum...
There is no appropriate folder for such messages...
Should we add another topic ?...
I didn't know where to place this thread in the forum...
There is no appropriate folder for such messages...
Should we add another topic ?...
Marc Torrent
CEA - Bruyères-le-Chatel
France
CEA - Bruyères-le-Chatel
France
Re: Nullified pointers and xlf (Fock)
Maybe "Troubleshooting compiler issues"?
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain
Simune Atomistics
Donostia-San Sebastián, Spain
Re: Nullified pointers and xlf (Fock)
Yes, its a compiler issue...
but you also can have "help request" from one developer... we also could include this in the title...
but you also can have "help request" from one developer... we also could include this in the title...
Marc Torrent
CEA - Bruyères-le-Chatel
France
CEA - Bruyères-le-Chatel
France
Re: Nullified pointers and xlf (Fock)
What about "Help wanted"?
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain
Simune Atomistics
Donostia-San Sebastián, Spain
Re: Nullified pointers and xlf (Fock)
Just for info:
same error on the ibm6 station (under xlf12.1) ; fock is under xlf9...
So, my problem is not connected to Fock but to xlf
same error on the ibm6 station (under xlf12.1) ; fock is under xlf9...
So, my problem is not connected to Fock but to xlf
Marc Torrent
CEA - Bruyères-le-Chatel
France
CEA - Bruyères-le-Chatel
France
Re: Nullified pointers and xlf (Fock)
What happens if you configure with the following?
Code: Select all
FCFLAGS_EXTRA="-qinit=f90ptr"
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain
Simune Atomistics
Donostia-San Sebastián, Spain
Re: Nullified pointers and xlf (Fock)
Code: Select all
FCFLAGS_EXTRA="-qinit=f90ptr"
It does not change the behaviour (at least on xlf12).
This was expected because my pointers are in NULL status...
FCFLAGS_EXTRA="-qinit=f90ptr"
It does not change the behaviour (at least on xlf12).
This was expected because my pointers are in NULL status...
Marc Torrent
CEA - Bruyères-le-Chatel
France
CEA - Bruyères-le-Chatel
France
Re: Nullified pointers and xlf (Fock)
I had not many expectations. That was just in case.
I'm basically clueless. We may have to ask someone from IBM.
I'm basically clueless. We may have to ask someone from IBM.
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain
Simune Atomistics
Donostia-San Sebastián, Spain