One of these WTF moments
GNU gdb 6.3.50-20050815 (Apple version gdb-1469) (Wed May 5 04:36:56 UTC 2010) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-apple-darwin". (gdb) p 1234 % 2000 $1 = 234 (gdb) 1 % 10 Undefined command: "1". Try "help". (gdb) p 1 % 10 $2 = 1 (gdb) p 9 % 10 $3 = 9 (gdb) p 11 % 10 $4 = 1 (gdb) p 1234 % 1000 $5 = 234 (gdb) p 1234 % 2000 $6 = 1234 (gdb) p 1234 % 2000 $7 = 1234
Yes, totally non reproducable. No I didn't edit anything.
Posting this, although everbody will think, it's my fault :)