-
Notifications
You must be signed in to change notification settings - Fork 868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A fortran MPI program titled with "rmdir/mkdir" hangs if it is compiled with IBM xlf compiler #4514
Comments
changing And also, the test without MPI also passed.
|
It seems to me that naming any program the same as a standard libc function is begging for trouble. |
I also tried "rm", "ls" "cd". all passed. And as I said, GNU gfortran compiler let it passed. And MPICH + XLF also let the test passed. |
There is no substitute for luck when you introduce symbol confusion. 😄 |
Actually, it is from one user. The fortran program title should be just treated as a string, even it is the same as a linux command. |
This sounds like a race condition more than it sounds like an Is there any further info about that back trace? What version of Open MPI are we talking about? How was it configured / installed? Can you supply all the information that we asked for in the github issue template? |
I built OMPI master brand with the following configure and make. I don't have further btrace treee info.
|
@mathbird can you please run assuming the xlf compiler does generate the |
the test program name is called if I changed
|
thanks, so my intuition was right ... this is how xlf compiler works. |
If this is an xlf bug, then it's not our issue to fix. Please feel free to re-open if there's something we need to fix in Open MPI. Thanks! |
Thanks. One question is why MPICH + IBMXLF let the test passed? |
A possible explanation is MPICH does not invoke |
would you explain in more detail how and where OMPI invoke rmdir/mkdir internally? |
Open MPI creates a |
The following Fortran program titled with "rmdir" or "mkdir" hangs if IBM xlf compiler is used to compile the code. With gfortran, the test passed with OMPI. Any special configure requirement for XLF?
(gdb) bt
#0 0x0000100000e01df8 in __lll_lock_wait () from /lib64/libpthread.so.0
#1 0x0000100000dfb004 in pthread_mutex_lock () from /lib64/libpthread.so.0
#2 0x00001000001b5ac0 in opal_mutex_lock (m=0x100000341878 <ompi_mpi_bootstrap_mutex>) at ../../opal/threads/mutex_unix.h:137
#3 0x00001000001b6334 in ompi_mpi_init (argc=0, argv=0x0, requested=0, provided=0x3fffed8b5ce0) at ../../ompi/runtime/ompi_mpi_init.c:401
#4 0x0000100000232184 in PMPI_Init (argc=0x3fffed8b5d34, argv=0x3fffed8b5d38) at pinit.c:66
#5 0x00001000000ef51c in ompi_init_f (ierr=0x3fffed8b5dc0) at pinit_f.c:84
#6 0x0000000010000b3c in rmdir ()
The text was updated successfully, but these errors were encountered: