LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 07-03-2010, 10:25 AM   #1
pr_deltoid
Member
 
Registered: Jun 2010
Distribution: Fedora
Posts: 289

Rep: Reputation: 41
Question 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?

Last edited by pr_deltoid; 07-03-2010 at 12:05 PM.
 
Old 07-03-2010, 10:48 AM   #2
pr_deltoid
Member
 
Registered: Jun 2010
Distribution: Fedora
Posts: 289

Original Poster
Rep: Reputation: 41
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.

Last edited by pr_deltoid; 07-03-2010 at 10:56 AM.
 
Old 07-03-2010, 12:04 PM   #3
pr_deltoid
Member
 
Registered: Jun 2010
Distribution: Fedora
Posts: 289

Original Poster
Rep: Reputation: 41
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.

Last edited by pr_deltoid; 07-03-2010 at 12:48 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Input/output error during read on /dev/sda Dilbert137 Linux - Server 0 05-06-2008 12:03 AM
input/output error cdrom read error oobe Linux - Laptop and Netbook 1 04-01-2006 02:08 AM
Cannot read table of mounted filesystems: Input/output error k0ljat Linux - Software 1 09-18-2004 01:51 PM
Input/Output error during read on /dev/hdb yibble Fedora - Installation 4 05-25-2004 03:57 AM
input/output error during read on /dev/hda bm1 Linux - Hardware 36 11-28-2002 11:26 AM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration