RH 6.2 - patched
GCC 2.95.2
As part of a project, the program I compile dies practically immediately.
Here is the output of the trace:
execve("/home/brown/Pinnacle/PinnacleStatic/bin/linux/pinnacle",
["/home/brown/Pinnacle/PinnacleStatic/bin/linux/pinnacle", "-fg", "black", "-bg",
"grey", "-xrm", "*fontList:
-adobe-helvetica-medium-r-normal--14-140-75-75-p-77-iso8859-1,-adobe-helvetica-medium-o-normal--14-140-75-75-p-78-iso8859-1=Italic,-adobe-helvetica-medium-r-normal--12-120-75-75-p-67-iso8859-1=Helv12,-adobe-helvetica-bold-r-normal--14-140-75-75-p-82-iso8859-1=Bold,-adobe-helvetica-bold-o-normal--14-140-75-75-p-82-iso8859-1=BoldItalic,-adobe-helvetica-bold-i-normal--26--75-75-p--iso8859-1=BoldItalic26,-adobe-helvetica-bold-o-normal-*-20-*-*-*-*-*-iso8859-*=BoldItalic20,-urw-itc
zapfdingbats-*-*-*-*-20-*-*-*-*-*-*-*=Symbol", "-xrm", "*XmText*FontList:
-dt-application-medium-r-normal-sans-14-*-*-*-*-*-*-*", "-dumpcore",
"/home/brown/Pinnacle/PinnacleStatic/bin/linux/pinnacle", "-with",
"/home/brown/Patients"], [/* 72 vars */]) = 0
brk(0) = 0x873d724
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40014000
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/openwin/lib/i686/mmx/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat("/usr/openwin/lib/i686/mmx", 0xbfffe8a8) = -1 ENOENT (No such file or directory)
open("/usr/openwin/lib/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat("/usr/openwin/lib/i686", 0xbfffe8a8) = -1 ENOENT (No such file or directory)
open("/usr/openwin/lib/mmx/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat("/usr/openwin/lib/mmx", 0xbfffe8a8) = -1 ENOENT (No such file or directory)
open("/usr/openwin/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/openwin/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/local/lib/i686/mmx/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat("/usr/local/lib/i686/mmx", 0xbfffe8a8) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/i686", 0xbfffe8a8) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/mmx/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/mmx", 0xbfffe8a8) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=20494, ...}) = 0
old_mmap(NULL, 20494, PROT_READ, MAP_PRIVATE, 4, 0) = 0x40015000
close(4) = 0
open("/lib/libc.so.6", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0755, st_size=4101324, ...}) = 0
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\210\212"..., 4096) = 4096
old_mmap(NULL, 1001564, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4001b000
mprotect(0x40108000, 30812, PROT_NONE) = 0
old_mmap(0x40108000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0xec000) =
0x40108000
old_mmap(0x4010c000, 14428, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS,
-1, 0) = 0x4010c000
close(4) = 0
mprotect(0x4001b000, 970752, PROT_READ|PROT_WRITE) = 0
mprotect(0x4001b000, 970752, PROT_READ|PROT_EXEC) = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
First off, what is with old_mmap? I can't find a man page for that.
Secondly, it fails right after a successful mprotect call. The man page says
that "If an access is disallowed by the protection given it, the program
receives a SIGSEGV." Wouldn't it also return a -1?
I'm confused as to why this is dieing.
Thanks for any tips.
MB
--
e-mail: [EMAIL PROTECTED]
Bart: Hey, why is it destroying other toys? Lisa: They must have
programmed it to eliminate the competition. Bart: You mean like
Microsoft? Lisa: Exactly. [The Simpsons - 12/18/99]
Visit - URL:http://www.vidiot.com/ (Your link to Star Trek and UPN)
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list