Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 May 2004 19:28:22 +0200
From:      Michal Pasternak <michal@pasternak.w.lub.pl>
To:        questions@freebsd.org, freebsd-questions@freebsd.org
Subject:   Profiling & debugging on FreeBSD: loadable modules, profiler output, threads
Message-ID:  <20040530172822.GA88008@pasternak.w.lub.pl>

next in thread | raw e-mail | index | archive | help

--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--



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