GNU bug report logs - #77771
coreutils 9.7 printf crashes on Solaris 11

Previous Next

Package: coreutils;

Reported by: Bruno Haible <bruno <at> clisp.org>

Date: Sat, 12 Apr 2025 21:17:04 UTC

Severity: normal

Done: Bruno Haible <bruno <at> clisp.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Bruno Haible <bruno <at> clisp.org>
Subject: bug#77771: closed (Re: coreutils 9.7 printf crashes on Solaris 11)
Date: Sat, 12 Apr 2025 21:24:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#77771: coreutils 9.7 printf crashes on Solaris 11

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 77771 <at> debbugs.gnu.org.

-- 
77771: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77771
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Bruno Haible <bruno <at> clisp.org>
To: 77771-done <at> debbugs.gnu.org
Subject: Re: coreutils 9.7 printf crashes on Solaris 11
Date: Sat, 12 Apr 2025 23:23:12 +0200
> Running the attached script on Solaris 11.4 or Solaris 11 OpenIndiana,
> in the coreutils-9.7 build tree, produces a crash:
> 
> $ sh ~/cmd
> 42 351 ...
> 4 235 ...
> 42 351 ...
> /home/bruno/cmd: line 4: 18141: Memory fault(coredump)
> Segmentation Fault (core dumped)
> 
> What triggers the crash is a %'g directive that produces a large
> number of digits.
> 
> The gdb stack trace shows the location: inside function
> insert_thousands_sep in /lib/64/libc.so.1.

It's fixed through the gnulib commits relating to vasnprintf from
2025-04-10 to 2025-04-12.




[Message part 3 (message/rfc822, inline)]
From: Bruno Haible <bruno <at> clisp.org>
To: bug-coreutils <at> gnu.org
Subject: coreutils 9.7 printf crashes on Solaris 11
Date: Sat, 12 Apr 2025 23:16:10 +0200
[Message part 4 (text/plain, inline)]
Running the attached script on Solaris 11.4 or Solaris 11 OpenIndiana,
in the coreutils-9.7 build tree, produces a crash:

$ sh ~/cmd
42 351 ...
4 235 ...
42 351 ...
/home/bruno/cmd: line 4: 18141: Memory fault(coredump)
Segmentation Fault (core dumped)

What triggers the crash is a %'g directive that produces a large
number of digits.

The gdb stack trace shows the location: inside function
insert_thousands_sep in /lib/64/libc.so.1.
[cmd (text/plain, attachment)]

This bug report was last modified 38 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.