Re: [MTT users] "Passed" result on a run-time linker error
On Oct 10, 2007, at 9:58 AM, Ethan Mallove wrote: - what's your "pass" criteria? Is it looking at wifexited and wexitstatus? I have this: pass = (_wexitstatus(), 0) I'm guessing it should it be changed to this? pass = (_wifexited(), (_wexitstatus(), 0)) Yes -- try this. - what does solaris return as an exit code in this case? Looks like 137. $ cc -G -o libbar.so bar.c $ file libbar.so libbar.so: ELF 32-bit MSB dynamic lib SPARC32PLUS Version 1, V8+ Required, dynamically linked, not stripped $ cc foo.c -L`pwd` -R`pwd` -lbar -o foo $ ldd foo libbar.so => /home/emallove/tmp/libbar.so ... $ ./foo $ echo $? 0 $ rm libbar.so $ ldd foo libbar.so => (file not found) ... $ ./foo ld.so.1: foo: fatal: libbar.so: open failed: No such file or directory Killed $ echo $? 137 I honestly don't remember if $? is the exit code or the aggregate return (i.e., it includes the bit indicating died-due-to-signal-or-not). -- Jeff Squyres Cisco Systems
Re: [MTT users] "Passed" result on a run-time linker error
On Sat, Oct/06/2007 07:59:43PM, Jeff Squyres wrote: > A few questions: > > - what's your "pass" criteria? Is it looking at wifexited and > wexitstatus? I have this: pass = (_wexitstatus(), 0) I'm guessing it should it be changed to this? pass = (_wifexited(), (_wexitstatus(), 0)) > - what does solaris return as an exit code in this case? > > Looks like 137. $ cc -G -o libbar.so bar.c $ file libbar.so libbar.so: ELF 32-bit MSB dynamic lib SPARC32PLUS Version 1, V8+ Required, dynamically linked, not stripped $ cc foo.c -L`pwd` -R`pwd` -lbar -o foo $ ldd foo libbar.so => /home/emallove/tmp/libbar.so ... $ ./foo $ echo $? 0 $ rm libbar.so $ ldd foo libbar.so => (file not found) ... $ ./foo ld.so.1: foo: fatal: libbar.so: open failed: No such file or directory Killed $ echo $? 137 -Ethan > On Sep 27, 2007, at 4:22 PM, Ethan Mallove wrote: > > > Some trivial tests outputted the following: > > > > ld.so.1: orterun: fatal: libopen-pal.so.0: open failed: No such > > file or directory > > > > See here: > > > > http://www.open-mpi.org/mtt/index.php?do_redir=394 > > > > How could these tests result in "pass"? > > > > I attached an mttdatabase debug file. > > > > -Ethan > > > > ___ > > mtt-users mailing list > > mtt-us...@open-mpi.org > > http://www.open-mpi.org/mailman/listinfo.cgi/mtt-users > > > -- > Jeff Squyres > Cisco Systems > > ___ > mtt-users mailing list > mtt-us...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/mtt-users
Re: [MTT users] "Passed" result on a run-time linker error
A few questions: - what's your "pass" criteria? Is it looking at wifexited and wexitstatus? - what does solaris return as an exit code in this case? On Sep 27, 2007, at 4:22 PM, Ethan Mallove wrote: Some trivial tests outputted the following: ld.so.1: orterun: fatal: libopen-pal.so.0: open failed: No such file or directory See here: http://www.open-mpi.org/mtt/index.php?do_redir=394 How could these tests result in "pass"? I attached an mttdatabase debug file. -Ethan ___ mtt-users mailing list mtt-us...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/mtt-users -- Jeff Squyres Cisco Systems