Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 384839 - sys-apps/shadow su segfaults, when empty password and ^D
Summary: sys-apps/shadow su segfaults, when empty password and ^D
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 384841 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-28 19:45 UTC by Aleksander Balicki
Modified: 2014-06-16 05:44 UTC (History)
0 users

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


Attachments
emerge --info (ei,6.82 KB, text/plain)
2011-09-28 19:47 UTC, Aleksander Balicki
Details
make.conf (make.conf,3.45 KB, text/plain)
2011-09-28 19:50 UTC, Aleksander Balicki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aleksander Balicki 2011-09-28 19:45:21 UTC
when i invoke su from a non-root user and then without typing any chars i press ^D it segfaults

Reproducible: Always

Steps to Reproduce:
when i invoke su from a non-root user and then without typing any chars i press ^D it segfaults


Expected Results:  
should not segfault

Tested it on my both machines (amd64 and x86) and they both have it, it has to be a problem with my config somehow.
Comment 1 Aleksander Balicki 2011-09-28 19:47:22 UTC
Created attachment 288117 [details]
emerge --info
Comment 2 Aleksander Balicki 2011-09-28 19:50:10 UTC
Created attachment 288119 [details]
make.conf
Comment 3 Aleksander Balicki 2011-09-28 19:51:35 UTC
it's also not the problem of clang, i tried it on both compilers gcc and clang, and both of them segfault.
Comment 4 Elijah "Armageddon" El Lazkani (amd64 AT) 2011-09-28 19:59:29 UTC
Please do not CC arches on your own.
Comment 5 Aleksander Balicki 2011-09-28 20:11:44 UTC
(In reply to comment #4)
> Please do not CC arches on your own.

Please make it impossible for normal users to use options that should have been enabled only for maintainers/admins.
Comment 6 Rafał Mużyło 2011-09-28 21:26:35 UTC
*** Bug 384841 has been marked as a duplicate of this bug. ***
Comment 7 Rafał Mużyło 2011-09-28 21:33:58 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Please do not CC arches on your own.
> 
> Please make it impossible for normal users to use options that should have been
> enabled only for maintainers/admins.

The rule of the thumb is don't touch fields you don't *need* to.

But as for the problem, I can see the crash too.
Comment 8 Aleksander Balicki 2011-09-28 21:59:40 UTC
(In reply to comment #7)
> (In reply to comment #5)
> > (In reply to comment #4)
> > > Please do not CC arches on your own.
> > 
> > Please make it impossible for normal users to use options that should have been
> > enabled only for maintainers/admins.
> 
> The rule of the thumb is don't touch fields you don't *need* to.
> 
> But as for the problem, I can see the crash too.

Maybe it's polish locale related.
Comment 9 SpanKY gentoo-dev 2011-09-29 02:16:31 UTC
works fine for me

reporter's emerge info says he's using en_US.UTF8 locale.  what locale are you guys using exactly before you run `su` ?  post the output of `locale`.
Comment 10 Aleksander Balicki 2011-09-29 08:38:05 UTC
alistra@bialobrewy ~ % locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
Comment 11 Rafał Mużyło 2011-09-29 11:16:56 UTC
Well, from me segfault happens both in pl_PL.utf8 locale and with 'LC_ALL=C su'.
Comment 12 SpanKY gentoo-dev 2014-06-16 05:44:37 UTC
this still a problem with shadow-4.1.5.1-r1 ?