<div dir="ltr"><div><div><div>Hi,<br></div>sorry for taking so long to respond.<br></div>This is actually quite embarrassing... turns out that I was using 32bit gdb to debug a 64bit binary.<br></div><div>The error message was not explicit to me.<br></div><div>Somehow I do not remember specifying /usr/bin/amd64/gdb explicitly before then.<br></div>Best regards,<br><br>Aurelien<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 2, 2014 at 5:26 AM, ken mays <span dir="ltr"><<a href="mailto:maybird1776@yahoo.com" target="_blank">maybird1776@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><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><br><br></div><div 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><div class="h5"> <div dir="ltr"> <font face="Arial"> On Monday, September 29, 2014 10:47 PM, Alexander Pyhalov <<a href="mailto:alp@rsu.ru" target="_blank">alp@rsu.ru</a>> wrote:<br> </font> </div>  <br><br> </div></div><div><div><div class="h5">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" href="mailto:alarcher@phainos" target="_blank">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" href="mailto:alarcher@phainos" target="_blank">alarcher@phainos</a>> gcc -ggdb mpi_init.c `pkg-config --libs mpich`<br clear="none">> <a shape="rect" href="mailto:alarcher@phainos" target="_blank">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></div><div><div><div class="h5"><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"></div></div>_______________________________________________<br clear="none">oi-dev mailing list<br clear="none"><a shape="rect" href="mailto:oi-dev@openindiana.org" target="_blank">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></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><font style="font-family:courier new,monospace" size="1">-------------------------------------------------------------------------------<br>LARCHER Aurélien          | KTH, School of Computer Science and Communication<br>
Work: <a value="+4687907142">+46 (0) 8 790 71 42</a> | Lindstedtsvägen 5, Plan <font size="1">4<font size="1">,</font></font> 100 44 Stockholm, SWEDEN<br>-------------------------------------------------------------------------------<br></font></div></div>
</div>