This is the mail archive of the
mailing list for the GDB project.
"warning: Can't read pathname for load map: Input/output error."
- From: Jon Grant <jg at jguk dot org>
- To: gdb at sourceware dot org
- Date: Sun, 25 Sep 2011 23:34:12 +0100
- Subject: "warning: Can't read pathname for load map: Input/output error."
Just saw the output in the subject does not include the filename it is
having a problem reading. Interesting it is EIO too. Could the filename
be added to the output please. Also I'm interested in an opinion if this
is a bug, and if so I could open a bug ticket.
I have included a test case log, and the C code at the bottom of this email.
Please include my email address in any replies.
Best regards, Jon
jon@laptop:~$ ulimit -c unlimited
Segmentation fault (core dumped)
jon@laptop:~$ gdb main core
GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
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 "i686-linux-gnu".
For bug reporting instructions, please see:
Reading symbols from /home/jon/main...(no debugging symbols found)...done.
[New Thread 3657]
warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/i386-linux-gnu/libc.so.6...(no debugging
Loaded symbols for /lib/i386-linux-gnu/libc.so.6
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols
Loaded symbols for /lib/ld-linux.so.2
Core was generated by `./main'.
Program terminated with signal 11, Segmentation fault.
#0 0x0804840e in main ()
// gcc -Wall -o main main.c
int * g_var = NULL;
printf("g_var: %d\n", *g_var);