bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

buggy vfprintf makes printf(1) segfault on freebsd 5.0


From: Jim Meyering
Subject: buggy vfprintf makes printf(1) segfault on freebsd 5.0
Date: Mon, 29 Oct 2007 13:25:17 +0100

This is probably worth working around.
Maybe it's done already, but currently I've turned
off printf-posix in coreutils:

  freebsd$ ./printf %.2147483647f 1
  Segmentation fault (core dumped)

  freebsd$ gdb --args ./printf %.2147483647f 1
  GNU gdb 6.5
  Copyright (C) 2006 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 "i386-unknown-freebsd5.0"...
  (gdb) r
  Starting program: /tmp/coreutils-6.9-365-b00f87/src/printf %.2147483647f 1

  Program received signal SIGSEGV, Segmentation fault.
  0x281ebad3 in __vfprintf () from /usr/lib/libc.so.5
  (gdb) bt
  #0  0x281ebad3 in __vfprintf () from /usr/lib/libc.so.5
  #1  0x281e9709 in __vfprintf () from /usr/lib/libc.so.5
  #2  0x281e8ae6 in vfprintf () from /usr/lib/libc.so.5
  #3  0x2816fd32 in vprintf () from /usr/lib/libc.so.5
  #4  0x0804a336 in xvprintf (format=0x8051030 "%.2147483647Lf",
      args=0xbfbff9f4 "") at xprintf.c:48
  #5  0x0804a392 in xprintf (format=0x8051030 "%.2147483647Lf") at xprintf.c:37
  #6  0x08049b8a in main (argc=1, argv=0xbfbffbc0) at printf.c:461
  (gdb)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]