Subject: Problem with mmap on powerpc ?
To: None <current-users@netbsd.org>
From: Xavier HUMBERT <xavier@xavhome.fr.eu.org>
List: port-macppc
Date: 11/29/2001 11:22:09
I just noticed a SIGSEG in tail.
The problem seems to be related to mmap.
The userland and kernel (1.5Y) were last built on Nov 23
Using kdump, I got this :
[root@moria tmp]# ktrace tail /var/log/maillog
Segmentation fault (core dumped)
[root@moria tmp]# kdump ktrace.out
13495 ktrace EMUL "netbsd"
13495 ktrace RET ktrace 0
13495 ktrace CALL execve(0x7fffe6b8,0x7fffeb78,0x7fffeb84)
13495 ktrace NAMI "/usr/bin/tail"
13495 ktrace NAMI "/usr/libexec/ld.elf_so"
13495 tail EMUL "netbsd"
13495 tail RET execve JUSTRETURN
13495 tail CALL __sysctl(0x7fffe908,0x2,0x4181bf24,0x7fffe910,0,0)
13495 tail RET __sysctl 0
13495 tail CALL mmap(0,0x8000,0x3,0x1002,0xffffffff,0,0,0)
13495 tail RET mmap 1099026432/0x4181d000
13495 tail CALL geteuid
13495 tail RET geteuid 0
13495 tail CALL getuid
13495 tail RET getuid 0
13495 tail CALL getegid
13495 tail RET getegid 0
13495 tail CALL getgid
13495 tail RET getgid 0
13495 tail CALL open(0x4181a034,0,0x4181a034)
13495 tail NAMI "/etc/ld.so.conf"
13495 tail RET open -1 errno 2 No such file or directory
13495 tail CALL __stat13(0x41820000,0x7fffe938)
13495 tail NAMI "/usr/lib/libc.so.12"
13495 tail RET __stat13 0
13495 tail CALL open(0x41820000,0,0x8)
13495 tail NAMI "/usr/lib/libc.so.12"
13495 tail RET open 3
13495 tail CALL read(0x3,0x7fffe9a8,0x34)
13495 tail GIO fd 3 read 52 bytes
[...snip data...]
13495 tail RET read 52/0x34
13495 tail CALL close(0x3)
13495 tail RET close 0
13495 tail CALL open(0x41820000,0,0x1)
13495 tail NAMI "/usr/lib/libc.so.12"
13495 tail RET open 3
13495 tail CALL __fstat13(0x3,0x7fffe9a8)
13495 tail RET __fstat13 0
13495 tail CALL read(0x3,0x7fffd940,0x1000)
13495 tail GIO fd 3 read 4088 bytes
[...snip data...]
13495 tail GIO fd 3 read 8 bytes
[...snip data...]
13495 tail RET read 4096/0x1000
13495 tail CALL mmap(0,0xcc000,0x5,0x2,0x3,0,0,0)
13495 tail RET mmap 1099059200/0x41825000
13495 tail CALL mmap(0x418d3000,0x11000,0x7,0x12,0x3,0,0,0x9e000)
13495 tail RET mmap 1099771904/0x418d3000
13495 tail CALL mmap(0x418e4000,0xd000,0x7,0x1012,0xffffffff,0,0,0)
13495 tail RET mmap 1099841536/0x418e4000
13495 tail CALL munmap(0x418c4000,0xf000)
13495 tail RET munmap 0
13495 tail CALL close(0x3)
13495 tail RET close 0
13495 tail CALL __sysctl(0x4181af50,0x2,0x4181bf1c,0x7fffea48,0,0)
13495 tail RET __sysctl 0
13495 tail CALL open(0x7fffec21,0,0x1b6)
13495 tail NAMI "/var/log/maillog"
13495 tail RET open 3
13495 tail CALL __fstat13(0x3,0x7fffea88)
13495 tail RET __fstat13 0
13495 tail CALL mmap(0,0x3d,0x1,0x1,0x3,0,0,0)
13495 tail RET mmap 1099710464/0x418c4000
13495 tail CALL munmap(0x418c4000,0x3d)
13495 tail RET munmap 0
13495 tail CALL mmap(0,0,0x1,0x1,0x3,0,0,0)
13495 tail RET mmap 1098973184/0x41810000
13495 tail PSIG SIGSEGV SIG_DFL
13495 tail NAMI "tail.core"
What happened ?
Thanks,
--
Xavier HUMBERT - Systemes et Reseaux | labo-info@injep.fr
INJEP | humbert@injep.fr