Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

port sysutils/bsdstats intermittent mutex error on ia64 HEAD

0 views
Skip to first unread message

Anton Shterenlikht

unread,
Nov 30, 2009, 6:55:25 AM11/30/09
to
I might've reported this before:

FreeBSD 9.0-CURRENT ia64

port bsdstats-5.5 sometimes works fine:

# /usr/local/etc/periodic/monthly/300.statistics -nodelay
Posting monthly OS statistics to rpt.bsdstats.org
#

but sometimes not:

# /usr/local/etc/periodic/monthly/300.statistics -nodelay
/usr/src/lib/bind/isc/../../../contrib/bind9/lib/isc/unix/socket.c:1966: fatal error: RUNTIME_CHECK(((pthread_mutex_destroy(((&sock->lock))) == 0) ? 0 : 34) == 0) failed
[: 1: unexpected operator
Posting monthly OS statistics to rpt.bsdstats.org
#

Also, it doesn't work if run by an unprivileged user.
I suppose this is the intended behaviour.

--
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-curre...@freebsd.org"

Anton Shterenlikht

unread,
Nov 30, 2009, 7:02:33 AM11/30/09
to
On Mon, Nov 30, 2009 at 11:55:25AM +0000, Anton Shterenlikht wrote:
> I might've reported this before:
>
> FreeBSD 9.0-CURRENT ia64
>
> port bsdstats-5.5 sometimes works fine:
>
> # /usr/local/etc/periodic/monthly/300.statistics -nodelay
> Posting monthly OS statistics to rpt.bsdstats.org
> #
>
> but sometimes not:
>
> # /usr/local/etc/periodic/monthly/300.statistics -nodelay
> /usr/src/lib/bind/isc/../../../contrib/bind9/lib/isc/unix/socket.c:1966: fatal error: RUNTIME_CHECK(((pthread_mutex_destroy(((&sock->lock))) == 0) ? 0 : 34) == 0) failed
> [: 1: unexpected operator
> Posting monthly OS statistics to rpt.bsdstats.org
> #
>
> Also, it doesn't work if run by an unprivileged user.
> I suppose this is the intended behaviour.

forgot to put the output from an unprivileged user:

> /usr/local/etc/periodic/monthly/300.statistics -nodelay
/usr/src/lib/bind/isc/../../../contrib/bind9/lib/isc/timer.c:906: fatal error: RUNTIME_CHECK(((pthread_mutex_destroy(((&manager->lock))) == 0) ? 0 : 34) == 0) failed
[: 1: unexpected operator
/usr/local/etc/periodic/monthly/300.statistics: cannot open /var/db/bsdstats: Permission denied
[: -lt: unexpected operator
.: Can't open /var/db/bsdstats: Permission denied

Marcel Moolenaar

unread,
Nov 30, 2009, 4:31:41 PM11/30/09
to

On Nov 30, 2009, at 3:55 AM, Anton Shterenlikht wrote:

> I might've reported this before:
>
> FreeBSD 9.0-CURRENT ia64
>
> port bsdstats-5.5 sometimes works fine:
>
> # /usr/local/etc/periodic/monthly/300.statistics -nodelay
> Posting monthly OS statistics to rpt.bsdstats.org
> #


Anton,

Can you install the port with the following patch applied.
This gives much better statistics. The vendor will be
either "Itanium" or "Itanium 2" and the actual CPU type
will be "Merced", "McKinley", "Montecito", etc..

See also:
http://bsdstats.org/bt/cpus.html?os=FreeBSD

And look for CPU type "Itanium 2".

FYI,


Index: files/300.statistics
===================================================================
RCS file: /home/ncvs/ports/sysutils/bsdstats/files/300.statistics,v
retrieving revision 1.42
diff -u -r1.42 300.statistics
--- files/300.statistics 18 Sep 2009 21:19:34 -0000 1.42
+++ files/300.statistics 27 Sep 2009 20:15:34 -0000
@@ -411,9 +411,8 @@
[Yy][Ee][Ss])
send_devices
echo "Posting monthly device statistics to $checkin_server"
- line=$( sysctl -n hw.model )
- VEN=$( echo $line | cut -d ' ' -f 1 )
- DEV=$( uri_escape $( echo $line | cut -d ' ' -f 2- ) )
+ VEN=$( sysctl -n hw.family )
+ DEV=$( uri_escape $( sysctl -n hw.model ) )
count=$( sysctl -n hw.ncpu )
report_cpu
echo "Posting monthly CPU statistics to $checkin_server"


--
Marcel Moolenaar
xcl...@mac.com

0 new messages