I can confirm this on 32bit fully updated 8.10 as well. After some more testing, I can confirm this is a gcc bug because it is the -O2 flag which causes the problem. Without that, it is fine.
I have attached the source code to the test to this bug report. Compile like so: $ gcc -o bar1 -O2 bar.c $ gcc -o bar2 bar.c $ ./bar1 [hangs] $ ./bar2 [no hang] (-O1 also has no problems) ** Attachment added: "bar.c" http://launchpadlibrarian.net/24970275/bar.c ** Changed in: gcc-4.3 (Ubuntu) Status: Incomplete => Confirmed -- mktime bug back with gcc 4.3.2 https://bugs.launchpad.net/bugs/323528 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs