<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10px"><div><span>Aurelien,</span></div><div style="color: rgb(0, 0, 0); font-size: 10px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 10px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><span>Can you use </span><span style="background-color: transparent;">'pstack' and 'pflags' ? They are included.</span></div><div style="color: rgb(0, 0, 0); font-size: 10px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><span
style="background-color: transparent;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 10px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><span style="background-color: transparent;">~K</span></div><div style="color: rgb(0, 0, 0); font-size: 10px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 10px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 10px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><br></div> <div
class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10px;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> On Monday, September 29, 2014 10:47 PM, Alexander Pyhalov <alp@rsu.ru> wrote:<br> </font> </div> <br><br> <div class="y_msg_container">On 09/30/2014 03:24, Aurélien Larcher wrote:<br clear="none">> Hi Alexander,<br clear="none">> thank you for your reply.<br clear="none">> The only specific thing is that the code I develop uses MPI.<br clear="none">> I just checked if just calling a simple MPI_Init causes issues but I do not<br clear="none">> have much time right now so I just quickly copied a code snippet.<br clear="none">> I will get back to you later
this week possibly.<br clear="none">><br clear="none">> ------------------------------------------<br clear="none">> <a shape="rect" ymailto="mailto:alarcher@phainos" href="mailto:alarcher@phainos">alarcher@phainos</a>> cat mpi_init.c<br clear="none">> #include <mpi.h><br clear="none">><br clear="none">> int main(int argc, char* argv[])<br clear="none">> {<br clear="none">> int initialized;<br clear="none">> MPI_Initialized(&initialized);<br clear="none">><br clear="none">> if(!initialized)<br clear="none">> {<br clear="none">> MPI_Init(&argc, &argv);<br clear="none">> }<br clear="none">> return 0;<br clear="none">> }<br clear="none">> <a shape="rect" ymailto="mailto:alarcher@phainos" href="mailto:alarcher@phainos">alarcher@phainos</a>> gcc -ggdb mpi_init.c `pkg-config --libs mpich`<br
clear="none">> <a shape="rect" ymailto="mailto:alarcher@phainos" href="mailto:alarcher@phainos">alarcher@phainos</a>> gdb ./a.out<br clear="none">> GNU gdb (GDB) 7.6.2<br clear="none">> Copyright (C) 2013 Free Software Foundation, Inc.<br clear="none">> License GPLv3+: GNU GPL version 3 or later <<a shape="rect" href="http://gnu.org/licenses/gpl.html" target="_blank">http://gnu.org/licenses/gpl.html</a><br clear="none">>><br clear="none">> This is free software: you are free to change and redistribute it.<br clear="none">> There is NO WARRANTY, to the extent permitted by law. Type "show copying"<br clear="none">> and "show warranty" for details.<br clear="none">> This GDB was configured as "i386-pc-solaris2.11".<br clear="none">> For bug reporting instructions, please see:<br clear="none">> <<a shape="rect" href="http://www.gnu.org/software/gdb/bugs/"
target="_blank">http://www.gnu.org/software/gdb/bugs/</a>>...<br clear="none">> Reading symbols from /home/alarcher/hipster/gdb/a.out...done.<br clear="none">> (gdb) run<br clear="none">> Starting program: /home/alarcher/hipster/gdb/./a.out<br clear="none">> procfs:3974 -- process not stopped.<br clear="none">> procfs: ...giving up...<br clear="none">> (gdb) q<br clear="none">> A debugging session is active.<br clear="none">><br clear="none">> Inferior 1 [process 3696] will be killed.<br clear="none">><br clear="none">> Quit anyway? (y or n)<br clear="none"><br clear="none">Still no luck.<br clear="none">$ gdb ./a.out<br clear="none">(gdb) break MPI_Init<br clear="none">(gdb) run<br clear="none">Starting program: /export/home/alp/srcs/tests/./a.out<br clear="none">[Thread debugging using libthread_db enabled]<br clear="none">[New Thread 1 (LWP 1)]<br clear="none">[Switching to Thread 1 (LWP 1)]<br
clear="none"><br clear="none">Breakpoint 1, 0xfecb4b06 in PMPI_Init () from <br clear="none">/usr/lib/mpich/gcc/lib/libmpi.so.12<br clear="none">(gdb) bt<br clear="none">#0 0xfecb4b06 in PMPI_Init () from /usr/lib/mpich/gcc/lib/libmpi.so.12<br clear="none">#1 0x08051f2f in main (argc=1, argv=0x8047da4) at mpi-init.c:10<br clear="none">(gdb) kill<br clear="none"><br clear="none">or just<br clear="none"><br clear="none">(gdb) run<br clear="none">Starting program: /export/home/alp/srcs/tests/./a.out<br clear="none">[Thread debugging using libthread_db enabled]<br clear="none">[Inferior 1 (process 13897 ) exited normally]<br clear="none">(gdb)<br clear="none"><br clear="none">It seems, more complex example is required.<div class="yqt1917347517" id="yqtfd89973"><br clear="none"><br clear="none">-- <br clear="none">Best regards,<br clear="none">Alexander Pyhalov,<br clear="none">system administrator of Southern Federal University IT
department<br clear="none"><br clear="none">_______________________________________________<br clear="none">oi-dev mailing list<br clear="none"><a shape="rect" ymailto="mailto:oi-dev@openindiana.org" href="mailto:oi-dev@openindiana.org">oi-dev@openindiana.org</a><br clear="none"><a shape="rect" href="http://openindiana.org/mailman/listinfo/oi-dev" target="_blank">http://openindiana.org/mailman/listinfo/oi-dev</a></div><br><br></div> </div> </div> </div> </div></body></html>