GsDevKit_home icon indicating copy to clipboard operation
GsDevKit_home copied to clipboard

GsDevKit_home doesn't deal well with large numbers

Open dalehenrich opened this issue 9 years ago • 3 comments

(from @martinmcclure)

This was the output:

[Info] Setting up shared memory Total memory available is 32149 MB Max shared memory segment size is 4096 MB Max shared memory allowed is -65536 MB /home/martin/Projects/Waldorf/GsDevKit_home/bin/downloadGemStone: line 201: [: 18446744073692774399: integer expression expected [Info] No need to increase max shared memory segment size /home/martin/Projects/Waldorf/GsDevKit_home/bin/downloadGemStone: line 217: [: 18446744073692774399: integer expression expected

18446744073692774399 is what my system gives for /proc/sys/kernel/shmall. This is apparently the default in the kernel, since I don't have anything in /etc/sysctl.conf that sets this parameter.

18446744073692774399 is also known as 0xFFFFFFFFFEFFFFFF, legitimate (if large) 64-bit unsigned integer. Interpreted as signed, it would be -16MiB - 1. So where it's getting the -65536 MB I can't imagine.

-Martin

dalehenrich avatar Dec 11 '15 21:12 dalehenrich