Error in gdb while attaching lt-scilab-bin process.

classic Classic list List threaded Threaded
1 message Options
Veluri Mithun Veluri Mithun
Reply | Threaded
Open this post in threaded view
|

Error in gdb while attaching lt-scilab-bin process.

Dear Developers!,
         I just ran scilab from ~/SCI/scilab/ directory with ./bin/scilab cmd in bash.Then while attaching the process(lt-scilab-bin) in gdb with the cmd gdb --pid='process id of lt-scilab-bin' I'm getting gdb.error.

root@veluri-Inspiron-3543:/home/veluri/SCI/scilab# gdb --pid=3878
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type "help".
Type "apropos word" to search for commands related to "word".
Attaching to process 3878
[New LWP 3892]
[New LWP 3893]
[New LWP 3894]
[New LWP 3895]
[New LWP 3896]
[New LWP 3897]
[New LWP 3898]
[New LWP 3899]
[New LWP 3900]
[New LWP 3901]
[New LWP 3902]
[New LWP 3903]
[New LWP 3904]
[New LWP 3905]
[New LWP 3906]
[New LWP 3907]
[New LWP 3908]
[New LWP 3909]
[New LWP 3910]
[New LWP 3911]
[New LWP 3912]
[New LWP 3913]
[New LWP 3914]
[New LWP 3919]
[New LWP 3923]
[New LWP 3924]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
185 ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: No such file or directory.
Installing openjdk unwinder
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so-gdb.py", line 52, in <module>
    class Types(object):
  File "/usr/share/gdb/auto-load/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so-gdb.py", line 66, in Types
    nmethodp_t = gdb.lookup_type('nmethod').pointer()
gdb.error: No type named nmethod.
(gdb) 

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 
./configure CFLAGS="-g -O0" FFLAGS="-g -O0" CXXFLAGS="-g -O0"
but, I'm up with the same error.

In eclipse I'm getting the following errors while attaching the process...

.gdbinit: No such file or directory.
Reading symbols from /home/veluri/SCI/scilab/.libs/lt-scilab-bin...done.
attach 3878
Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
warning: process 3878 is already traced by process 3972
ptrace: Operation not permitted.
Attaching to program: /home/veluri/SCI/scilab/.libs/lt-scilab-bin, process 3878

Thank you.

VM.
 

_______________________________________________
dev mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/dev