Nullified pointers and xlf (Fock)
Posted: Mon Mar 01, 2010 1:37 pm
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