From owner-freebsd-questions@FreeBSD.ORG Sun May 30 10:28:01 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 344F816A4CF for ; Sun, 30 May 2004 10:28:01 -0700 (PDT) Received: from pr93.lublin.sdi.tpnet.pl (pr93.lublin.sdi.tpnet.pl [217.97.36.93]) by mx1.FreeBSD.org (Postfix) with SMTP id 8926143D39 for ; Sun, 30 May 2004 10:27:59 -0700 (PDT) (envelope-from michal@pasternak.w.lub.pl) Received: (qmail 88125 invoked by uid 1001); 30 May 2004 17:28:22 -0000 Date: Sun, 30 May 2004 19:28:22 +0200 From: Michal Pasternak To: questions@freebsd.org, freebsd-questions@freebsd.org Message-ID: <20040530172822.GA88008@pasternak.w.lub.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bg08WKrSYDhXBjb5" Content-Disposition: inline Subject: Profiling & debugging on FreeBSD: loadable modules, profiler output, threads X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Michal Pasternak List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 May 2004 17:28:01 -0000 --bg08WKrSYDhXBjb5 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I need to debug some software, written in Python (with threads), which uses dynamically loadable modules, written in C.=20 FreeBSD version is 5.2.1-RC.=20 All Python modules are compiled with "-g -pg", so is the python binary.=20 By default, "-g -pg -pthread" doesn't seem to link libc to Python binary (modules complain about missing 'strftime' on load). Any other combination of options, than "-g -pg -lc_r -lc -pthread" causes Python binary to dump core with sig 10 at start (with never ending _pthread_self calls in backtrace). Even if python.gmon is created, it contains only an information about calls to '__fpsetreg'.=20 My sysctl kern.debug.threads is 1.=20 kdump output seems to reveal: 88107 python2p3 NAMI "python2p3.gmon" 88107 python2p3 RET open 5 =2E.. but only at the *end* of the log (shouldn't it be open some time earl= ier)? I'd appreciate any help in this matter. I need this working by yesterday. Thanks, --=20 Michal Pasternak :: http://pasternak.w.lub.pl :: http://winsrc.sf.net "Frankly, any company would look bad if their corporate e-mail was available for anyone to read," -- Jim Dose of Ritual Entertainment.=20 --bg08WKrSYDhXBjb5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAuhm2g9vpIMn2guARAur2AJ0fbTKchMQEuIglgWiMajxf4fzBHQCfaQ0I O9/oo4bjJj9JaTeVS00nLXI= =ou3g -----END PGP SIGNATURE----- --bg08WKrSYDhXBjb5--