Re: Regression test failure - tests/ts/ipcs/limits2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 18 August 2014 23:19, Bruce Dubbs <bruce.dubbs@xxxxxxxxx> wrote:
> When testing util-linux-2.25, I was suprised to get a test failure. Running
> it down, I found tests/ts/ipcs/limits2 is doing:
>
> if [ $(</proc/sys/kernel/shmall) -ge $(bc <<<"2^64 / $PAGE_SIZE") ];
>
> The problem is that starting with the 3.16 kernel the shmall value is
> 18446744073692774399 which is the max value of an unsigned long on a 64-bit
> system (UINT64_MAX).  Bash doesn't like this value and says:
>
> "18446744073692774399: integer expression expected"
>
> I can work around this by setting shmall before running the test, but there
> is a problem with either the test or in the kernel.
>
> I note that the kernel's shmmax value is also set to UINT64_MAX.
>
> What's the best way to approach this?

Hi Bruce,

I found the same.  The best way is to pull the most recent code from
upstream git, and test it is no longer affected.

https://github.com/karelzak/util-linux/commit/3a9ec12d6664527fad9c56347c88f3447d6c0856

-- 
Sami Kerola
http://www.iki.fi/kerolasa/
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux