http://bugs.winehq.org/show_bug.cgi?id=27614
--- Comment #4 from Paul pprocacci@gmail.com 2011-06-27 21:45:03 CDT --- Ok, I have additional information. I've re-setup the environment in which this debugging took place, essentially following the instructions from the following wiki:
Running your 'crude code' on the host (amd64) yeilds: ################################################## ./tst 0 0 72 0 usbus0 1 0 216 72 usbus0 2 0 464 216 usbus0 3 0 856 464 usbus0 4 0 856 856 usbus0 ##################################################
Running your 'crude code' in the i386 chroot yields: ################################################## ./tst 0 0 128 0 usbus0 1 0 256 128 usbus0 2 0 512 256 usbus0 3 0 1024 512 usbus0 4 0 2048 1024 usbus0 5 0 4096 2048 usbus0 6 0 8192 4096 usbus0 7 0 16384 8192 usbus0 8 0 32768 16384 usbus0 9 0 65536 32768 usbus0 10 0 131072 65536 usbus0 11 0 262144 131072 usbus0 12 0 524288 262144 usbus0 13 0 1048576 524288 usbus0 14 0 2097152 1048576 usbus0 15 0 4194304 2097152 usbus0 16 0 8388608 4194304 usbus0 17 0 16777216 8388608 usbus0 18 0 33554432 16777216 usbus0 19 0 67108864 33554432 usbus0 20 0 134217728 67108864 usbus0 21 0 268435456 134217728 usbus0 22 0 536870912 268435456 usbus0 23 0 1073741824 536870912 usbus0 24 -1 -2147483648 1073741824 (null) ##################################################
Running your 'crude code' that was compiled from within the chroot on the host doesn't fair any better.
This to me sounds like an operating system bug of somekind. Perhaps you know of a work around? Do you believe I should file a bug with the FreeBSD devs?
If you need any additional information, please let me know.