Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 268181

Summary: sys-apps/shadow-4.1.2.2: Segmentation fault in groupmems
Product: Gentoo Linux Reporter: NBrack <nicolas.brack>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description NBrack 2009-05-01 21:11:25 UTC
When I try to add my normal user to the groups plugdev, a segmentation fault Appear, without other explanation

Reproducible: Sometimes

Steps to Reproduce:
1.# /usr/sbin/groupmems -g plugdev2 -a root
Actual Results:  
The program close immediatly because of segmentation fault

Expected Results:  
perform an action, or at least catch the address erroran notify user of it.
Comment 1 NBrack 2009-05-01 21:13:12 UTC
I've been mistaken in cut and paste command to reproduce it.
it is plugdev and not plugdev2, of course
Comment 2 Sebastian Luther (few) 2009-05-02 06:10:30 UTC
I can reproduce this bug on amd64.

Starting program: /usr/sbin/groupmems -g plugdev -a root

Program received signal SIGSEGV, Segmentation fault.
0x00007f1a79f834e0 in strlen () from /lib/libc.so.6
(gdb) bt
#0  0x00007f1a79f834e0 in strlen () from /lib/libc.so.6
#1  0x00007f1a79f83216 in *__GI___strdup (s=0x76656467756c70 <Address 0x76656467756c70 out of bounds>) at strdup.c:42
#2  0x0000000000402a93 in __gr_dup (grent=0xb8f8b0) at groupmem.c:60
#3  0x00000000004032f4 in commonio_update (db=0x606360, eptr=0xb8f8b0) at commonio.c:844
#4  0x000000000040200f in main (argc=<value optimized out>, argv=<value optimized out>) at groupmems.c:289
Comment 3 Sebastian Luther (few) 2009-05-02 06:29:27 UTC
With =sys-apps/shadow-4.1.3:

groupmems -g plugdev2 -a root
groupmems: group 'plugdev2' does not exist in /etc/group
Comment 4 SpanKY gentoo-dev 2009-05-11 04:10:02 UTC

*** This bug has been marked as a duplicate of bug 238371 ***