Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Apr 2006 13:08:57 +0200
From:      Fabian Keil <freebsd-listen@fabiankeil.de>
To:        Jonas Wolz <jonas.wolz@freenet.de>
Cc:        stable@freebsd.org
Subject:   Re: truss problems
Message-ID:  <20060410130857.44323fcd@localhost>
In-Reply-To: <200604101145.26621.jonas.wolz@freenet.de>
References:  <200604101145.26621.jonas.wolz@freenet.de>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_Yru_RAUBH4IthnwmRf0nFfc
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Jonas Wolz <jonas.wolz@freenet.de> 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).
>=20
> The output looks like that (I can provide the truss log if somebody
> is interested):
> jonas@nobby:/tmp$ truss -f -o ff.log firefox
> truss: PIOCWAIT top of loop: Input/output error
> truss: get_struct 0x0: Bad address
> jonas@nobby:/tmp$ truss -f -o ff.log firefox
> truss: Cannot malloc 1081891232 bytes for pollfd array: Cannot
> allocate memory jonas@nobby:/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 jonas@nobby:/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 jonas@nobby:/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 jonas@nobby:/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 jonas@nobby:/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 jonas@nobby:/tmp$ truss -f -o ff.log firefox
> truss: PIOCWAIT top of loop: Input/output error
> truss: get_struct 0x0: Bad address
> jonas@nobby:/tmp$=20

> 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_PRIVAT=
E,-1,0x0) =3D 689876992 (0
 1274: kse_release(0x8064fa0)                    =3D 0 (0x0)
 1274: kse_release(0x8064fa0)                    =3D 0 (0x0)
 1274: kse_release(0x8064fac)                    =3D 0 (0x0)
 1274: kse_release(0x8064fa0)                    =3D 383 (0x17f)
 1274: kse_release(0x8064fa0)                    =3D 383 (0x17f)
 1274: kse_release(0x8064fa0)                    =3D 0 (0x0)
 1274: kse_release(0x8064fa0)                    =3D 383 (0x17f)
 1274: kse_release(0x8064fa0)                    =3D 383 (0x17f)
 1274: kse_release(0x8064fa0)                    =3D 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)                    =3D 383 (0x17f)

truss firefox seems to work.

If I attach truss to a running Firefox I get:

fk@TP51 ~ $truss -f -p 1440
 1440: (null)()                                  =3D 0 (0x0)
 1440: kse_release(0x8064fa0)                    =3D 0 (0x0)
 1440: kse_release(0x8064fa0)                    =3D 0 (0x0)
 1440: kse_release(0x8064fa0)                    =3D 0 (0x0)
 1440: kse_release(0x8064fa0)                    =3D 0 (0x0)
 1440: kse_release(0x8064fac)                    =3D 0 (0x0)
 1440: kse_release(0x8064fa0)                    =3D 0 (0x0)
 1440: kse_release(0x8064fa0)                    =3D 0 (0x0)
 1440: kse_release(0x8064fa0)                    =3D 0 (0x0)
truss: Cannot malloc -67210816 bytes for pollfd array: Cannot allocate memo=
ry

Fabian
--=20
http://www.fabiankeil.de/

--Sig_Yru_RAUBH4IthnwmRf0nFfc
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (FreeBSD)

iD8DBQFEOjzRjV8GA4rMKUQRAn5ZAJ0VHrYGWMGBlOk6tKjzdqST7aQ8awCfaPWz
OyIlIRQrECSFX7YVHFITuFw=
=09Yl
-----END PGP SIGNATURE-----

--Sig_Yru_RAUBH4IthnwmRf0nFfc--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060410130857.44323fcd>