On 06/04/2010 11:53, Rainer Hurling wrote:
> Am 06.04.2010 11:46 (UTC+1) schrieb Dominic Fandrey:
>> On 06/04/2010 11:32, Rainer Hurling wrote:
>>> Am 06.04.2010 11:11 (UTC+1) schrieb Dominic Fandrey:
>>>> On 06/04/2010 08:36, Rainer Hurling wrote:
>>>>> [..snip..]
>>>>> ImageMagick-6.5.8.10_1: /usr/local/lib/libMagickWand.so.2 misses
>>>>> libz.so.5
>>>>> arith: syntax error: ""0" + 1"-1.5.2_1
>>>>
>>>> The arithmetics happen mostly during locking. I suppose the -1.5.2_1
>>>> is a remainder of a status message and not connected to the error.
>>>>
>>>> Does this always occur in the same place? Maybe run the command with
>>>> -j1 to gain more predictable output.
>>>
>>> The next try with -j1:
>>>
>>> #pkg_libchk -j1
>>> arith: syntax error: ""0" + 1"-2.14.17
>>>
>>> No other output for the last 30 minutes. The only package installed with
>>> this version number is ORBit2.
>>>
>>> My systems are running under recent 9.0-CURRENT (amd64).
>>
>> Now, this is a real clue. The svn log states several changes to
>> arithmetic expansion.
>>
>> I'm CC'ing this to the author of said changes. I suspect the
>> following function. I wonder, is this a regression or a bug
>> in my code?
>>
>> #
>> # This function frees a semaphore.
>> #
>> # @param $1
>> #    The name of the semaphore.
>> #
>> semaphoreFree() {
>>     local lock
>>     lock="$sharedprefix-semaphore-$1"
>>     lockf -k "$lock" sh -c "
>>         state=\"\$((\"\$(cat '$lock')\" + 1))\"
>>         echo \"\$state\">  '$lock'
>>     "
>> }
>>
>>
>> Would you please change the line:
>>         state=\"\$((\"\$(cat '$lock')\" + 1))\"
>> to
>>         state=\"\$((\$(cat '$lock') + 1))\"
>> and test whether that fixes the issue?
> 
> Seems to work this way :-)

Thanks a lot, I'll wait for Jilles reaction and decide whether
I have to push out a maintenance release.

Regards

-- 
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail? 
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to