<div dir="ltr">Dear Developers!,<div>         I just ran scilab from ~/SCI/scilab/ directory with <b>./bin/scilab</b> cmd in bash.Then while attaching the process(lt-scilab-bin) in gdb with the cmd <b>gdb --pid='process id of lt-scilab-bin' </b>I'm getting gdb.error.</div><div><br></div><div><div>root@veluri-Inspiron-3543:/home/veluri/SCI/scilab# gdb --pid=3878</div><div>GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1</div><div>Copyright (C) 2016 Free Software Foundation, Inc.</div><div>License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>></div><div>This is free software: you are free to change and redistribute it.</div><div>There is NO WARRANTY, to the extent permitted by law.  Type "show copying"</div><div>and "show warranty" for details.</div><div>This GDB was configured as "x86_64-linux-gnu".</div><div>Type "show configuration" for configuration details.</div><div>For bug reporting instructions, please see:</div><div><<a href="http://www.gnu.org/software/gdb/bugs/">http://www.gnu.org/software/gdb/bugs/</a>>.</div><div>Find the GDB manual and other documentation resources online at:</div><div><<a href="http://www.gnu.org/software/gdb/documentation/">http://www.gnu.org/software/gdb/documentation/</a>>.</div><div>For help, type "help".</div><div>Type "apropos word" to search for commands related to "word".</div><div>Attaching to process 3878</div><div>[New LWP 3892]</div><div>[New LWP 3893]</div><div>[New LWP 3894]</div><div>[New LWP 3895]</div><div>[New LWP 3896]</div><div>[New LWP 3897]</div><div>[New LWP 3898]</div><div>[New LWP 3899]</div><div>[New LWP 3900]</div><div>[New LWP 3901]</div><div>[New LWP 3902]</div><div>[New LWP 3903]</div><div>[New LWP 3904]</div><div>[New LWP 3905]</div><div>[New LWP 3906]</div><div>[New LWP 3907]</div><div>[New LWP 3908]</div><div>[New LWP 3909]</div><div>[New LWP 3910]</div><div>[New LWP 3911]</div><div>[New LWP 3912]</div><div>[New LWP 3913]</div><div>[New LWP 3914]</div><div>[New LWP 3919]</div><div>[New LWP 3923]</div><div>[New LWP 3924]</div><div>[Thread debugging using libthread_db enabled]</div><div>Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".</div><div>pthread_cond_wait@@GLIBC_2.3.2 ()</div><div>    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185</div><div>185<span style="white-space:pre">    </span>../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: No such file or directory.</div><div>Installing openjdk unwinder</div><div>Traceback (most recent call last):</div><div>  File "/usr/share/gdb/auto-load/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/<a href="http://libjvm.so-gdb.py">libjvm.so-gdb.py</a>", line 52, in <module></div><div>    class Types(object):</div><div>  File "/usr/share/gdb/auto-load/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/<a href="http://libjvm.so-gdb.py">libjvm.so-gdb.py</a>", line 66, in Types</div><div>    nmethodp_t = gdb.lookup_type('nmethod').pointer()</div><div>gdb.error: No type named nmethod.</div><div>(gdb) </div></div><div><br></div><div>Due this error I'm unable to attach scilab process in eclipse.(which uses gdb).I also tried this after making clean build with configure options </div><div><b>./configure CFLAGS="-g -O0" FFLAGS="-g -O0" CXXFLAGS="-g -O0"</b></div><div>but, I'm up with the same error.</div><div><br></div><div>In eclipse I'm getting the following errors while attaching the process...</div><div><br></div><div><div>.gdbinit: No such file or directory.</div><div>Reading symbols from /home/veluri/SCI/scilab/.libs/lt-scilab-bin...done.</div><div>attach 3878</div><div>Could not attach to process.  If your uid matches the uid of the target</div><div>process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try</div><div>again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf</div><div>warning: process 3878 is already traced by process 3972</div><div>ptrace: Operation not permitted.</div><div>Attaching to program: /home/veluri/SCI/scilab/.libs/lt-scilab-bin, process 3878</div></div><div><br></div><div>Thank you.</div><div><br></div><div>VM.</div><div> <br></div></div>