From owner-freebsd-stable@FreeBSD.ORG Mon Apr 10 11:09:08 2006 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CCA0716A412 for ; Mon, 10 Apr 2006 11:09:08 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay01.ispgateway.de (smtprelay01.ispgateway.de [80.67.18.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DF3E43D45 for ; Mon, 10 Apr 2006 11:09:07 +0000 (GMT) (envelope-from freebsd-listen@fabiankeil.de) Received: (qmail 8219 invoked from network); 10 Apr 2006 11:09:05 -0000 Received: from unknown (HELO localhost) ([pbs]775067@[217.50.145.17]) (envelope-sender ) by smtprelay01.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 10 Apr 2006 11:09:05 -0000 Date: Mon, 10 Apr 2006 13:08:57 +0200 From: Fabian Keil To: Jonas Wolz Message-ID: <20060410130857.44323fcd@localhost> In-Reply-To: <200604101145.26621.jonas.wolz@freenet.de> References: <200604101145.26621.jonas.wolz@freenet.de> X-Mailer: Sylpheed-Claws 2.0.0 (GTK+ 2.8.6; i386-portbld-freebsd6.0) X-PGP-KEY-URL: http://www.fabiankeil.de/gpg-keys/freebsd-listen-2006-08-19.asc Mime-Version: 1.0 Content-Type: multipart/signed; boundary=Sig_Yru_RAUBH4IthnwmRf0nFfc; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: stable@freebsd.org Subject: Re: truss problems X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 11:09:08 -0000 --Sig_Yru_RAUBH4IthnwmRf0nFfc Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Jonas Wolz 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--