Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jan 2006 16:01:02 -0500
From:      "Paul Khavkine" <paul.khavkine@distributel.ca>
To:        <freebsd-threads@freebsd.org>
Subject:   libthr question
Message-ID:  <1138741262.45596.5.camel@paul>

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

--=-y1EEhy+mzDMAfUxiLTa6
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable



Hi guys.


I'm having a weird problem. I have an application (FreeRADIUS) that
seems to behave very strangly:

1) Compiled against libpthread it simply crashed during a stress test.
Always with Signal 6, mostly with "free(): chunk is already free" error.

2) Compiled against libthr, after processing a certain number of
requests, the process simply hangs and stops responding. When it does
that all threads that were active stay running. When i do top
i see ALOT of threads in "lthr" state, and a few in "umtx" state, like
this:


72201 root      96    0  5708K  3968K lthr   1   0:01  0.00%  0.00%
radiusd
72201 root      96    0  5708K  3968K lthr   0   0:01  0.00%  0.00%
radiusd
72201 root      96    0  5708K  3968K umtx   1   0:01  0.00%  0.00%
radiusd
72201 root      96    0  5708K  3968K umtx   0   0:01  0.00%  0.00%
radiusd
72201 root      96    0  5708K  3968K lthr   0   0:01  0.00%  0.00%
radiusd
72201 root      96    0  5708K  3968K lthr   1   0:01  0.00%  0.00%
radiusd


Any pointers on hoe to debug it ? Where to start ?



Thanx
Paul


--=-y1EEhy+mzDMAfUxiLTa6
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

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

iQCVAwUAQ9/QDvkjFY05CfyYAQKO/AP/VvtY7Ahb97nWu0Y1TD5FocpVBNjIlV8l
diU6I2S3DJ6Ho4Qy5MljkFCbAYHCOAf1VDkzkCfSDvOb/hSqhqB92x/0GlJBmQ7y
jGooHPom7rbQffiwYGkMhizG7W7SZTgrOXWbIToM29NrdKhBUDQpKZ3CDEq6Z6NR
JqxFr8zWvKk=
=+6YG
-----END PGP SIGNATURE-----

--=-y1EEhy+mzDMAfUxiLTa6--



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