Public bug reported: A test file: ---
#include <stdio.h> int main() { long double a = 0x1.29aeffefc8ec645p+12557L; printf("%Lf\n", a); } Whilst in gdb (on 32bit): --- (gdb) p 0x1.29aeffefc8ec645p+12557L $1 = 12558.16282653431 (gdb) p a $2 = 1.2565231254743496882989195724989633e+3780 --- Do the same but on gdb 64bit: --- (gdb) p 0x1.29aeffefc8ec645p+12557L $1 = 12558.16282653431 (gdb) p a $2 = inf --- ProblemType: Bug DistroRelease: Ubuntu 13.04 Package: gdb 7.6~20130417-0ubuntu1 ProcVersionSignature: Ubuntu 3.8.0-23.34-generic 3.8.11 Uname: Linux 3.8.0-23-generic x86_64 ApportVersion: 2.9.2-0ubuntu8.1 Architecture: amd64 Date: Tue Jul 2 17:07:07 2013 InstallationDate: Installed on 2013-06-05 (27 days ago) InstallationMedia: Ubuntu-Server 13.04 "Raring Ringtail" - Release amd64 (20130423.1) MarkForUpload: True ProcEnviron: LANGUAGE=en_GB:en TERM=xterm-256color PATH=(custom, no user) LANG=en_GB.UTF-8 SHELL=/bin/bash SourcePackage: gdb UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: gdb (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug raring -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1197027 Title: gdb shows 'inf' when printing long doubles on x86_64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1197027/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs