bugfindutils - Bugs: bug #24283, find-4.5.2 -printf %TY causes NULL...

 
 

bug #24283: find-4.5.2 -printf %TY causes NULL pointer dereference

Submitted by:  James Youngman <jay>
Submitted on:  Tue 16 Sep 2008 11:15:33 PM UTC  
 
Category: findSeverity: 3 - Normal
Item Group: Wrong resultStatus: Fixed
Privacy: PublicAssigned to: James Youngman <jay>
Originator Name: Nelson H. F. BeebeOpen/Closed: Closed
Release: 4.5.2Fixed Release: 4.5.3

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 16 Sep 2008 11:21:08 PM UTC, comment #1:

Fixed in the 4.5.x CVS tree.

James Youngman <jay>
Project AdministratorIn charge of this item.
Tue 16 Sep 2008 11:15:33 PM UTC, original submission:

Yesterday, I installed findutils-4.5.2 on about 25 flavors of Unix
in our labs. Today, we found that it gets a segment violation
on Sun Solaris SPARC, easily replicated like this:

find ~/.cshrc -printf '%TY'

The backtrace of the core dump shows

#0 0xff209678 in doformat () from /lib/libc.so.1
#1 0xff209710 in strftime () from /lib/libc.so.1
#2 0x0001734c in format_date (ts={tv_sec = 1221016463, tv_nsec = 381255880},
kind=89) at pred.c:2097
#3 0x000180a0 in pred_fprintf (pathname=0x59778 "ThingsToDo",
stat_buf=0xffbff5e0, pred_ptr=0x59268) at pred.c:1108
#4 0x0001b044 in apply_predicate (pathname=0x59778 "ThingsToDo",
stat_buf=0xffbff5e0, p=0x59268) at util.c:988
#5 0x00016dd8 in pred_and (pathname=0x59778 "ThingsToDo",
stat_buf=0xffbff5e0, pred_ptr=0x59188) at pred.c:327
#6 0x0001b044 in apply_predicate (pathname=0x59778 "ThingsToDo",
stat_buf=0xffbff5e0, p=0x59188) at util.c:988
#7 0x00015430 in find (arg=<value optimized out>) at ftsfind.c:237
#8 0x00015674 in main (argc=<value optimized out>, argv=<value optimized out>)
at ftsfind.c:637

The installation tests did not catch this error: all of them passed.

James Youngman <jay>
Project AdministratorIn charge of this item.

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jay (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 08 Dec 2008 12:38:11 AM UTCjayOpen/ClosedOpen=>Closed
      ReleaseNone=>4.5.2
      Fixed ReleaseNone=>4.5.3
    Tue 16 Sep 2008 11:21:08 PM UTCjayStatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1