Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 166233 - find . -uid \! 99 # segmentation fault
Summary: find . -uid \! 99 # segmentation fault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 All
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 180830 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-02-10 17:58 UTC by Rafal Wijata
Modified: 2007-06-11 05:42 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
findutils-4.3.2-invalid-args.patch (findutils-4.3.2-invalid-args.patch,1.56 KB, patch)
2007-02-10 18:34 UTC, Harald van Dijk (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rafal Wijata 2007-02-10 17:58:41 UTC
I know it's wrong syntax, but I entered that by mistake and received SEGV.

Reproducible: Always

Actual Results:  
SIGSEGV

Expected Results:  
Invalid argument

Verified on two different machines. Compiled with
CFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer -DNDEBUG -DG_DISABLE_ASSERT"
maybe the -O3 caused the problem, but on other distributions I'm getting invaild arg.
Please verify.
Comment 1 Christian Heim (RETIRED) gentoo-dev 2007-02-10 18:03:10 UTC
(In reply to comment #0)
> I know it's wrong syntax, but I entered that by mistake and received SEGV.
> 
> Reproducible: Always
> 
> Actual Results:  
> SIGSEGV
> 
> Expected Results:  
> Invalid argument
> 
> Verified on two different machines. Compiled with
> CFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer -DNDEBUG
> -DG_DISABLE_ASSERT"
> maybe the -O3 caused the problem, but on other distributions I'm getting
> invaild arg.

Happens here too with CFLAGS="-O2 -g -ggdb2 -pipe".
Comment 2 Christian Heim (RETIRED) gentoo-dev 2007-02-10 18:04:00 UTC
Reassigning to base-system.
Comment 3 Harald van Dijk (RETIRED) gentoo-dev 2007-02-10 18:34:02 UTC
Created attachment 109797 [details, diff]
findutils-4.3.2-invalid-args.patch

findutils should check pointers for NULL before trying to dereference them... With this patch, I get a proper error message:

  find: invalid argument `!' to `-uid'
Comment 4 SpanKY gentoo-dev 2007-02-10 18:42:05 UTC
weak, i just finished writing that patch ;P

most other distros are using findutils-4.2.x which doesnt have this problem

fixed in 4.3.2-r1
Comment 5 Harald van Dijk (RETIRED) gentoo-dev 2007-06-04 20:55:11 UTC
*** Bug 180830 has been marked as a duplicate of this bug. ***
Comment 6 Harald van Dijk (RETIRED) gentoo-dev 2007-06-04 20:56:43 UTC
SpanKY: you dropped the patch though it's not fixed yet, would you please add it back?
Comment 7 SpanKY gentoo-dev 2007-06-11 05:42:16 UTC
4.3.7 seems to have this fixed