This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygwin64 1.7.25 "locate" core dumps


On Oct 26 13:11, Corinna Vinschen wrote:
> On Oct 25 20:19, Steve wrote:
> > On Mon, Sep 16, 2013 at 6:45 PM,  <Jeff.Newmiller@dnvkema.com> wrote:
> > > Could not find reports on core dumps in system programs recently, or problems
> > > with the locate tool.
> > >
> > > What I do:
> > >
> > > --------------------------------------------------------------------------
> > > JNEWM@FSEL7800 ~
> > > $ locate junk
> > > /home/JNEWM/.cpan/build/Email-Simple-2.102-AftJAF/t/header-junk.t
> > > /home/JNEWM/.cpan/build/Email-Simple-2.102-AftJAF/t/test-mails/junk-in-header
> > > /home/JNEWM/.cpan/build/MIME-tools-5.503-wxTSaY/testmsgs/uu-junk-extracted.ref
> > > /home/JNEWM/.cpan/build/MIME-tools-5.503-wxTSaY/testmsgs/uu-junk-target.msg
> > > /home/JNEWM/.cpan/build/MIME-tools-5.503-wxTSaY/testmsgs/uu-junk.msg
> > > /home/JNEWM/.cpan/build/MIME-tools-5.503-wxTSaY/testmsgs/uu-junk.ref
> > > Segmentation fault (core dumped)
> 
> WJFFM.  I created a new updatedb like this:
> 
>   $ LC_ALL=C updatedb --prunefs='nfs smbfs' --prunepaths='/dev /cygdrive /proc /tmp /var/cache/ccache /var/spool /var/tmp /usr/bin /usr/lib'
> 
> > > --- Process 9720, exception c0000005 at 000000010040368B
>                                             ^^^^^^^^^^^^^^^^
> 
> This is an address within the locate executable itself, line 58 in
> lib/splitstring.c.  Either a wrong pointer or a broken length
> information.
> 
> Does it work if you regenerate your updatedb, perhaps?
> 
> Eric, is this perhaps a know bug in locate from findutils 4.5.11?

I found the cause for the crash.  locate from findutils 4.5.11 has
a bug which results in trying to dereference a NULL string pointer.
It happens because it neglects to check the string for being non-NULL
at one point in the source... which, unfortunately, can be hit easily.

Apart from a findutils update to 4.5.12, a temporary workaround is
easy:

  $ export LOCATE_PATH=/var/locatedb
  $ locate junk
  [...no crash...]
  $ 


HTH,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: pgpcyEZGVDPuD.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]