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

 
 

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

Submitter:  James Youngman <jay>
Submitted:  Tue 16 Sep 2008 11:15:33 PM UTC
   
 
Category:  find Severity:  3 - Normal
Item Group:  Wrong result Status:  Fixed
Privacy:  Public Assigned to:  jay
Originator Name:  Nelson H. F. Beebe Open/Closed:  Closed
Release:  4.5.2 Fixed Release:  4.5.3
* Mandatory Fields

Add a New Comment Rich Markup
   

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

Fixed in the 4.5.x CVS tree.

James Youngman <jay>
Group administrator
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>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-12-08 jay Open/ClosedOpen Closed
        ReleaseNone 4.5.2
        Fixed ReleaseNone 4.5.3
    2008-09-16 jay StatusNone Fixed

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code