Discussion:
pt-raise.c: No such file or directory
Mahmood Naderan
2014-05-20 10:19:02 UTC
Permalink
Hello,
Using Ubuntu-64bit, when I attach GDB to a process, I see these messages

...
Reading symbols from /usr/lib/x86_64-linux-gnu/libstdc++.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libstdc++.so.6
0x00007f72e111eb7b in raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:42
42      ../nptl/sysdeps/unix/sysv/linux/pt-raise.c: No such file or directory.
(gdb)


On another system which runs Centos-64bit, I don't see such messages. Any way to fix that?

 
Regards,
Mahmood
Jan Kratochvil
2014-05-20 10:37:16 UTC
Permalink
Post by Mahmood Naderan
Using Ubuntu-64bit, when I attach GDB to a process, I see these messages
[...]
Post by Mahmood Naderan
42      ../nptl/sysdeps/unix/sysv/linux/pt-raise.c: No such file or directory.
BTW
(gdb) set filename-display absolute
would should you the exact location of that file.


[...]
Post by Mahmood Naderan
On another system which runs Centos-64bit, I don't see such messages.
CentOS glibc-debuginfo.rpm contains file:

$ ls -l /usr/src/debug/*/nptl/sysdeps/unix/sysv/linux/pt-raise.c
-rw-r--r-- 1 root root 1728 May 4 2010 /usr/src/debug/glibc-2.12-2-gc4ccff1/nptl/sysdeps/unix/sysv/linux/pt-raise.c
Post by Mahmood Naderan
Any way to fix that?
Bugreport it to Ubuntu; but the same problem affects also underlying Debian.


Jan
Mahmood Naderan
2014-05-20 10:45:23 UTC
Permalink
Post by Jan Kratochvil
(gdb) set filename-display absolute
would should you the exact location of that file.
See this output

Loaded symbols for /usr/lib/x86_64-linux-gnu/libstdc++.so.6
0x00007f35bf3b7b7b in raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:42
42      ../nptl/sysdeps/unix/sysv/linux/pt-raise.c: No such file or directory.
(gdb) set filename-display absolute
No symbol "filename" in current context.
(gdb) 


Also there is no such file on the system.


$ sudo find /usr/ -name pt-raise.c
$ sudo find /lib -name pt-raise.c
$


Installed packages are

$ dpkg -l | grep gdb
ii  gdb                                    7.4-2012.04-0ubuntu2                                The GNU Debugger
ii  gdb-source                             7.4-2012.04-0ubuntu2.1                              The GNU Debugger (source)
ii  gdbserver                              7.4-2012.04-0ubuntu2.1                              The GNU Debugger (remote server)
rc  libeggdbus-1-0                         0.6-1                                               D-Bus bindings for GObject
ii  libgdb-dev                             7.4-2012.04-0ubuntu2.1                              The GNU Debugger (libgdb.a)
ii  libgdbm3                               1.8.3-10                                            GNU dbm database routines (runtime version)
ii  python-gdbm                            2.7.3-1ubuntu1                                      GNU dbm database support for Python
ii  wireless-regdb                         2011.04.28-1ubuntu3                                 wireless regulatory database




Any more idea? BTW, is that a warning or error? Does that have ay effect on debugging process?
 

Regards,
Mahmood
Jan Kratochvil
2014-05-20 12:38:01 UTC
Permalink
Post by Jan Kratochvil
(gdb) set filename-display absolute
No symbol "filename" in current context.
You have too old GDB, "set filename-display" exists since GDB-7.6.
Post by Jan Kratochvil
Any more idea?
It is an "issue" of Debian/Ubuntu packaging. Debian/Ubuntu prefers smaller
debug info packages but the disadvantage is the missing source files.
Post by Jan Kratochvil
Does that have ay effect on debugging process?
It only does not display the source. Otherwise it has no effect.


Jan
Mahmood Naderan
2014-05-20 20:22:26 UTC
Permalink
Post by Jan Kratochvil
You have too old GDB
Thanks. I installed GDB-7.7 from source with "./configure && make && make install" and the message disappears


 
Regards,
Mahmood

Andreas Schwab
2014-05-20 12:01:08 UTC
Permalink
Post by Mahmood Naderan
Reading symbols from /usr/lib/x86_64-linux-gnu/libstdc++.so.6...(no debugging symbols found)...done.
You need to install the dbg package.

Andreas.
--
Andreas Schwab, SUSE Labs, ***@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
Loading...