bug-findutils
[Top][All Lists]
Advanced

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

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


From: James Youngman
Subject: [bug #24283] find-4.5.2 -printf %TY causes NULL pointer dereference
Date: Tue, 16 Sep 2008 23:15:35 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.1) Gecko/2008071420 Iceweasel/3.0.1 (Debian-3.0.1-1)

URL:
  <http://savannah.gnu.org/bugs/?24283>

                 Summary: find-4.5.2 -printf %TY causes NULL pointer
dereference
                 Project: findutils
            Submitted by: jay
            Submitted on: Tue 16 Sep 2008 11:15:33 PM GMT
                Category: find
                Severity: 3 - Normal
              Item Group: Wrong result
                  Status: None
                 Privacy: Public
             Assigned to: jay
         Originator Name: Nelson H. F. Beebe
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: None
           Fixed Release: None

    _______________________________________________________

Details:

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.





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?24283>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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