GNU bug report logs - #10432
old touch command dumps core on Solaris

Previous Next

Package: coreutils;

Reported by: jmonko <at> isc.upenn.edu

Date: Wed, 4 Jan 2012 18:04:02 UTC

Severity: normal

Tags: fixed

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10432 in the body.
You can then email your comments to 10432 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#10432; Package coreutils. (Wed, 04 Jan 2012 18:04:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to jmonko <at> isc.upenn.edu:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Wed, 04 Jan 2012 18:04:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: John Monko <jmonko <at> isc.upenn.edu>
To: bug-coreutils <at> gnu.org
Subject: TOUCH COMMAND CORE DUMPS
Date: Wed, 04 Jan 2012 12:58:11 -0500
     Version 5.97 of 'touch' command core dumps:

-bash-3.00$ /opt/sfw/bin/touch --version
touch (GNU coreutils) 5.97
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by Paul Rubin, Arnold Robbins, Jim Kingdon, David MacKenzie, and 
Randy Smith.
-bash-3.00$ /opt/sfw/bin/touch newfile
Segmentation Fault (core dumped)
-bash-3.00$




Reply sent to Eric Blake <eblake <at> redhat.com>:
You have taken responsibility. (Wed, 04 Jan 2012 18:20:01 GMT) Full text and rfc822 format available.

Notification sent to jmonko <at> isc.upenn.edu:
bug acknowledged by developer. (Wed, 04 Jan 2012 18:20:02 GMT) Full text and rfc822 format available.

Message #10 received at 10432-done <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: jmonko <at> isc.upenn.edu
Cc: 10432-done <at> debbugs.gnu.org
Subject: Re: bug#10432: TOUCH COMMAND CORE DUMPS
Date: Wed, 04 Jan 2012 11:16:15 -0700
[Message part 1 (text/plain, inline)]
tag 10432 fixed
retitle 10432 old touch command dumps core on Solaris
thanks

On 01/04/2012 10:58 AM, John Monko wrote:
>      Version 5.97 of 'touch' command core dumps:
> 
> -bash-3.00$ /opt/sfw/bin/touch --version

Although you didn't state it, the naming convention /opt/sfw is typical
for pre-built binary coreutils versions running on Solaris machines.
Assuming I'm right, which version of Solaris are you running on?

> touch (GNU coreutils) 5.97

That is extremely old.  We are now at 8.14, and soon to release 8.15.

Meanwhile, we know of several issues where coreutils compiled for older
Solaris (which lacked the futimens() syscall) then run on new Solaris
(where the syscall was added) have entered into infinite loops, because
the old version compiled against a replacement function that ended up
resolving to the system function rather than the coreutils replacement
in the newer Solaris, but where the system function made a call back to
another function name provided by coreutils, causing infinite recursion
leading to stack overflow and hence a core dump.  The NEWS describes
these changes:

8.11:
  touch built on Solaris 9 would segfault when run on Solaris 10
  [bug introduced in coreutils-8.8]
8.7:
  cp, install, mv, and touch no longer crash when setting file times
  on Solaris 10 Update 9 [Solaris PatchID 144488 and newer expose a
  latent bug introduced in coreutils 8.1, and possibly a second latent
  bug going at least as far back as coreutils 5.97]

and since this sounds like it matches your symptoms, I'm closing out
this bug report.  We can reopen it if you can provide more details that
there is still a live issue, but I suspect that merely upgrading to
newer coreutils will solve things for you.

-- 
Eric Blake   eblake <at> redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]

Added tag(s) fixed. Request was from Eric Blake <eblake <at> redhat.com> to control <at> debbugs.gnu.org. (Wed, 04 Jan 2012 18:21:02 GMT) Full text and rfc822 format available.

Changed bug title to 'old touch command dumps core on Solaris' from 'TOUCH COMMAND CORE DUMPS' Request was from Eric Blake <eblake <at> redhat.com> to control <at> debbugs.gnu.org. (Wed, 04 Jan 2012 18:21:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-coreutils <at> gnu.org:
bug#10432; Package coreutils. (Wed, 04 Jan 2012 19:48:01 GMT) Full text and rfc822 format available.

Message #17 received at 10432 <at> debbugs.gnu.org (full text, mbox):

From: John Monko <jmonko <at> isc.upenn.edu>
To: 10432 <at> debbugs.gnu.org
Subject: Re: bug#10432: closed (Re: bug#10432: TOUCH COMMAND CORE DUMPS)
Date: Wed, 04 Jan 2012 14:44:10 -0500
     Yes, it appears that even the latest Solaris Companion CD which 
was just released is still using the older 5.97 version of the coreutils 
package. I will get the latest version. Thanks for your help!

            John

On 1/4/12 1:20 PM, GNU bug Tracking System wrote:
> Your bug report
>
> #10432: TOUCH COMMAND CORE DUMPS
>
> 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 10432 <at> debbugs.gnu.org.
>




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 02 Feb 2012 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 234 days ago.

Previous Next


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