LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   gdb/Core Dump: "warning: Can't read pathname for load map: Input/output error." (http://www.linuxquestions.org/questions/programming-9/gdb-core-dump-warning-cant-read-pathname-for-load-map-input-output-error-817820/)

pr_deltoid 07-03-2010 10:25 AM

gdb/Core Dump: "warning: Can't read pathname for load map: Input/output error."
 
I'm reading "An Introduction to GCC" from this site:
http://www.network-theory.co.uk/docs...tro/index.html
I'm reading the "Examining Core Files" section.
http://www.network-theory.co.uk/docs...cintro_38.html
This is their example output when running "gdb a.out core":
Quote:

$ gdb a.out core
Core was generated by `./a.out'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0 0x080483ed in foo (p=0x0) at null.c:13
13 int y = *p;
(gdb)
When I originally ran it, the lines that said "Reading symbols from /lib/*" said something along the lines of "debugging symbols not found". I fixed this by installing the "libc6-dbg" package. Now my output looks like this:
Quote:

Reading symbols from /home/prdeltoid/C-CPP/a.out...done.
[New Thread 2178]

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/tls/i686/cmov/libc.so.6...Reading symbols from /usr/lib/debug/lib/tls/i686/cmov/libc-2.11.1.so...done.
done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2...Reading symbols from /usr/lib/debug/lib/ld-2.11.1.so...done.
done.
Loaded symbols for /lib/ld-linux.so.2
Core was generated by `./a.out'.
Program terminated with signal 11, Segmentation fault.
#0 0x080483dc in foo (p=0x0) at null.c:11
11 int y = *p;
Quote:

warning: Can't read pathname for load map: Input/output error.
Do you know which package I should install to get rid of this warning message? Some configuration, maybe?

pr_deltoid 07-03-2010 10:48 AM

Is this something that shouldn't be worried about, something that should happen when running this specific example? It seems to be working well, otherwise. But the example in the book that I'm using doesn't show this message anywhere and I've seen that on other forums people have brought this up in threads, but I couldn't find any answers to this specific problem.

pr_deltoid 07-03-2010 12:04 PM

I notice that in this tutorial:
http://www.ffnn.nl/pages/articles/li...gger-intro.php
the message shows up in an example, but nothing is said of it. It's treated like it isn't a problem. I can't really mark this solved, but I don't think it's an actual problem.


All times are GMT -5. The time now is 12:01 PM.