Jonas Wolz <[EMAIL PROTECTED]> wrote: > while trying to get the gnash CVS version to work I noticed that on > my system (FreeBSD 6.0-RELEASE) truss obviously has problems tracing > firefox: truss prints somewhat "random" error messages and traces > only some of the system calls firefox makes (opening a local file > doesn't show up, for example). > > The output looks like that (I can provide the truss log if somebody > is interested): > [EMAIL PROTECTED]:/tmp$ truss -f -o ff.log firefox > truss: PIOCWAIT top of loop: Input/output error > truss: get_struct 0x0: Bad address > [EMAIL PROTECTED]:/tmp$ truss -f -o ff.log firefox > truss: Cannot malloc 1081891232 bytes for pollfd array: Cannot > allocate memory [EMAIL PROTECTED]:/tmp$ truss -f -o ff.log firefox > truss: cannot open /proc/0/mem: No such file or directory > truss: cannot open /proc/0/mem: No such file or directory > truss: Cannot malloc 1162889024 bytes for pollfd array: Cannot > allocate memory [EMAIL PROTECTED]:/tmp$ truss -f -o ff.log firefox > truss: PIOCWAIT top of loop: Input/output error > truss: PIOCCONT: Input/output error > truss: Cannot malloc 1162889024 bytes for pollfd array: Cannot > allocate memory [EMAIL PROTECTED]:/tmp$ truss -f -o ff.log firefox > truss: PIOCWAIT top of loop: Input/output error > truss: Cannot malloc 1162889024 bytes for pollfd array: Cannot > allocate memory [EMAIL PROTECTED]:/tmp$ truss -f -o ff.log firefox > truss: cannot open /proc/0/mem: No such file or directory > truss: Cannot malloc 1162889024 bytes for pollfd array: Cannot > allocate memory [EMAIL PROTECTED]:/tmp$ truss -f -o ff.log firefox > truss: PIOCWAIT top of loop: Input/output error > truss: PIOCCONT: Input/output error > truss: cannot open /proc/0/mem: No such file or directory > truss: Cannot malloc 1162889024 bytes for pollfd array: Cannot > allocate memory [EMAIL PROTECTED]:/tmp$ truss -f -o ff.log firefox > truss: PIOCWAIT top of loop: Input/output error > truss: get_struct 0x0: Bad address > [EMAIL PROTECTED]:/tmp$
> Can someone else also reproduce this problem/is this a known bug or > is just something broken on my system? > If you need more details please let me know. I can't reproduce exactly the same problem on FreeBSD TP51.local 6.1-RC FreeBSD 6.1-RC #1: Sun Apr 9 20:07:42 CEST 2006 but I get a different problem with truss and Firefox. If I run truss -f firefox it seems to get stuck after a while. 1274: mmap(0x0,36864,(0x3)PROT_READ|PROT_WRITE,(0x1002)MAP_ANON|MAP_PRIVATE,-1,0x0) = 689876992 (0 1274: kse_release(0x8064fa0) = 0 (0x0) 1274: kse_release(0x8064fa0) = 0 (0x0) 1274: kse_release(0x8064fac) = 0 (0x0) 1274: kse_release(0x8064fa0) = 383 (0x17f) 1274: kse_release(0x8064fa0) = 383 (0x17f) 1274: kse_release(0x8064fa0) = 0 (0x0) 1274: kse_release(0x8064fa0) = 383 (0x17f) 1274: kse_release(0x8064fa0) = 383 (0x17f) 1274: kse_release(0x8064fa0) = 0 (0x0) ^C 1259: wait4(0xffffffff,0xbfbfe9d8,0x2,0x0) ERR#4 'Interrupted system call' 1266: wait4(0xffffffff,0xbfbfe728,0x2,0x0) ERR#4 'Interrupted system call' 1274: kse_release(0x8064fa0) = 383 (0x17f) truss firefox seems to work. If I attach truss to a running Firefox I get: [EMAIL PROTECTED] ~ $truss -f -p 1440 1440: (null)() = 0 (0x0) 1440: kse_release(0x8064fa0) = 0 (0x0) 1440: kse_release(0x8064fa0) = 0 (0x0) 1440: kse_release(0x8064fa0) = 0 (0x0) 1440: kse_release(0x8064fa0) = 0 (0x0) 1440: kse_release(0x8064fac) = 0 (0x0) 1440: kse_release(0x8064fa0) = 0 (0x0) 1440: kse_release(0x8064fa0) = 0 (0x0) 1440: kse_release(0x8064fa0) = 0 (0x0) truss: Cannot malloc -67210816 bytes for pollfd array: Cannot allocate memory Fabian -- http://www.fabiankeil.de/
signature.asc
Description: PGP signature