This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

"warning: Can't read pathname for load map: Input/output error."


Hello

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
jon@laptop:~$ ./main
oop
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 <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 "i686-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
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 symbols found)...done.
Loaded symbols for /lib/i386-linux-gnu/libc.so.6
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Core was generated by `./main'.
Program terminated with signal 11, Segmentation fault.
#0 0x0804840e in main ()
(gdb)








// gcc -Wall -o main main.c
#include <stdio.h>

int * g_var = NULL;

int main(void)
{
	printf("oop\n");
	printf("g_var: %d\n", *g_var);

	return 0;
}





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]