Hi,
the current ant fails during build in
| Copying 5 files to
/build/buildd-ant_1.8.0-2-kfreebsd-i386-RIfTK_/ant-1.8.0/build/classes
| Bus error
I tried to understand what is going wrong.
The important part of ktrace seems be this:
14997 gij-4.4 CALL fstat(0xa,0xbfbf29ec)
14997 gij-4.4 STRU size=1701
14997 gij-4.4 RET fstat 0
14997 gij-4.4 CALL mmap(0,0x2000,PROT_READ,MAP_PRIVATE,0xa,0,0)
14997 gij-4.4 RET mmap 712716288/0x2a7b3000
14997 gij-4.4 PSIG SIGBUS SIG_DFL
The file, which have to be copied, have size 1701,
but two pages (2*4096) are mmaped. It is allowed on both
Linux and FreeBSD.
When the 2nd page of that file would be accessed, it would
generate SIGBUS.
The question is of course whether it really happens and why ?
Petr
gcc tst.c -o tst
tst < tst.c
-------------------------------
#include <stdio.h>
#include <sys/mman.h>
int main()
{
char *p = mmap(0, 8192,PROT_READ,MAP_PRIVATE,0,0);
fprintf(stderr, "%p %d\n", p, p[55]);
fprintf(stderr, "%p %d\n", p, p[4095]);
fprintf(stderr, "%p %d\n", p, p[4096]);
fprintf(stderr, "%p %d\n", p, p[7796]);
};
-----------
14997 gij-4.4 CALL open(0x8e59e58,O_RDONLY|O_LARGEFILE,<unused>0)
14997 gij-4.4 NAMI
"/home/bd/ant/src/main/org/apache/tools/ant/listener/defaults.properties"
14997 gij-4.4 RET open 10/0xa
14997 gij-4.4 CALL stat(0xbfbf2950,0xbfbf28c8)
14997 gij-4.4 NAMI
"/home/bd/ant/src/main/org/apache/tools/ant/listener/defaults.properties"
14997 gij-4.4 STRU struct stat {dev=68, ino=261382, mode=-rw-r--r-- ,
nlink=1, uid=1000, gid=1000, rdev=1073358, atime=1267097252,
stime=1215765502, ctime=1267095424, birthtime=1215765502, size=1701,
blksize=4096, blocks=4, flags=0x0 }
14997 gij-4.4 RET stat 0
14997 gij-4.4 CALL
open(0x8e2ec80,O_WRONLY|O_CREAT|O_TRUNC,<invalid>438)
14997 gij-4.4 NAMI
"/home/bd/ant/build/classes/org/apache/tools/ant/listener/defaults.properties"
14997 gij-4.4 RET open 11/0xb
14997 gij-4.4 CALL gettimeofday(0xbfbf29ec,0)
14997 gij-4.4 RET gettimeofday 0
14997 gij-4.4 CALL fstat(0xb,0xbfbf28fc)
14997 gij-4.4 STRU struct stat {dev=68, ino=98035, mode=-rw-r--r-- ,
nlink=1, uid=1000, gid=1000, rdev=0, atime=1267097828.537268496,
stime=1267097828.537268496, ctime=1267097828.537268496,
birthtime=1267097828.537260486, size=0, blksize=4096, blocks=0, flags=0x0
}
14997 gij-4.4 RET fstat 0
14997 gij-4.4 CALL futimes(0xb,0xbfbf29e4)
14997 gij-4.4 RET futimes 0
14997 gij-4.4 CALL stat(0xbfbf2920,0xbfbf2898)
14997 gij-4.4 NAMI
"/home/bd/ant/build/classes/org/apache/tools/ant/listener/defaults.properties"
14997 gij-4.4 STRU struct stat {dev=68, ino=98035, mode=-rw-r--r-- ,
nlink=1, uid=1000, gid=1000, rdev=0, atime=1267097828,
stime=1267097828.538945000, ctime=1267097828.539347276,
birthtime=1267097828.537260486, size=0, blksize=4096, blocks=0, flags=0x0
}
14997 gij-4.4 RET stat 0
14997 gij-4.4 CALL fstat(0xa,0xbfbf29ec)
14997 gij-4.4 STRU struct stat {dev=68, ino=261382, mode=-rw-r--r-- ,
nlink=1, uid=1000, gid=1000, rdev=1073358, atime=1267097252,
stime=1215765502, ctime=1267095424, birthtime=1215765502, size=1701,
blksize=4096, blocks=4, flags=0x0 }
14997 gij-4.4 RET fstat 0
14997 gij-4.4 CALL mmap(0,0x2000,PROT_READ,MAP_PRIVATE,0xa,0,0)
14997 gij-4.4 RET mmap 712716288/0x2a7b3000
14997 gij-4.4 PSIG SIGBUS SIG_DFL
--
To UNSUBSCRIBE, email to debian-hppa-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive:
http://lists.debian.org/pine.lnx.4.62.1002251454200.7...@sci.felk.cvut.cz