bug-findutils
[Top][All Lists]
Advanced

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

[bug #24169] segfault: -neweraa without a following argument


From: James Youngman
Subject: [bug #24169] segfault: -neweraa without a following argument
Date: Sat, 30 Aug 2008 23:21:17 +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/?24169>

                 Summary: segfault: -neweraa without a following argument
                 Project: findutils
            Submitted by: jay
            Submitted on: Sat 30 Aug 2008 11:21:14 PM GMT
                Category: find
                Severity: 3 - Normal
              Item Group: Wrong result
                  Status: In Progress
                 Privacy: Public
             Assigned to: jay
         Originator Name: Joey Hess
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.0
           Fixed Release: None

    _______________________________________________________

Details:

~$ find --version
find (GNU findutils) 4.4.0
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Built using GNU gnulib version e5573b1bad88bfabcda181b9e0125fb0c52b7d3b
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS()
CBO(level=0) 
~$ find -neweraa 
Segmentation fault (core dumped)
~$ 

~/source/GNU/findutils/cvs/4.4/compile/64$ gdb ./find/find core
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/librt.so.1...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Core was generated by `./find/find -neweraa'.
Program terminated with signal 11, Segmentation fault.
[New process 6565]
#0  0x0000000000418e51 in quotearg_buffer_restyled (buffer=0x6384e0 "`", 
    buffersize=256, arg=0x0, argsize=18446744073709551615, 
    quoting_style=locale_quoting_style, flags=1, 
    quote_these_too=0x7fff51dad388)
    at
/home/james/source/GNU/findutils/cvs/4.4/findutils/gnulib/lib/quotearg.c:296
296       for (i = 0;  ! (argsize == SIZE_MAX ? arg[i] == '\0' : i == argsize); 
i++)
(gdb) print i
$1 = 0
(gdb) print argv
No symbol "argv" in current context.
(gdb) print arg
$2 = 0x0
(gdb) up
#1  0x0000000000419761 in quotearg_n_options (n=1, arg=0x0, 
    argsize=18446744073709551615, options=0x7fff51dad380)
    at
/home/james/source/GNU/findutils/cvs/4.4/findutils/gnulib/lib/quotearg.c:723
723                                                  options->quote_these_too);
(gdb) 
#2  0x00000000004199ca in quotearg_n_style (n=4368168, 
    s=<value optimized out>, 
    arg=0xfefefefefefefeff <Address 0xfefefefefefefeff out of bounds>)
    at
/home/james/source/GNU/findutils/cvs/4.4/findutils/gnulib/lib/quotearg.c:768
768       return quotearg_n_options (n, arg, SIZE_MAX, &o);
(gdb) print arg
$3 = 0xfefefefefefefeff <Address 0xfefefefefefefeff out of bounds>
(gdb) print o
$4 = {style = locale_quoting_style, flags = 0, quote_these_too = {0, 0, 0, 0,

    0, 0, 0, 0}}
(gdb) up
#3  0x0000000000408e12 in fatal_file_error (name=0x0)
    at /home/james/source/GNU/findutils/cvs/4.4/findutils/find/util.c:1006
1006      return quotearg_n_style (n, options.err_quoting_style, arg);
(gdb) print arg
No symbol "arg" in current context.
(gdb) up
#4  0x000000000040e0f6 in parse_newerXY (entry=0x42dc60, argv=0x7fff51dad638,

    arg_ptr=0x7fff51dad4f4)
    at /home/james/source/GNU/findutils/cvs/4.4/findutils/find/parser.c:1565
1565                    fatal_file_error(argv[*arg_ptr]);
(gdb) print argv
$5 = (char **) 0x7fff51dad638
(gdb) print *arg_ptr
$6 = 2
(gdb) 
$7 = 2
(gdb) print argv[0]
$8 = 0x7fff51dadb0c "./find/find"
(gdb) print argv[1]
$9 = 0x7fff51dadb18 "-neweraa"
(gdb) print argv[2]
$10 = 0x0
(gdb) quit





    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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