Debian Bug report logs - #598141
sudo: segfaults on -g

version graph

Package: sudo; Maintainer for sudo is Bdale Garbee <bdale@gag.com>; Source for sudo is src:sudo.

Reported by: Jakub Wilk <jwilk@debian.org>

Date: Sun, 26 Sep 2010 20:06:02 UTC

Severity: normal

Tags: moreinfo, unreproducible

Found in version sudo/1.7.4p4-3

Done: Henri Salo <henri@nerv.fi>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, jwilk@debian.org, Bdale Garbee <bdale@gag.com>:
Bug#598141; Package sudo. (Sun, 26 Sep 2010 20:06:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jakub Wilk <jwilk@debian.org>:
New Bug report received and forwarded. Copy sent to jwilk@debian.org, Bdale Garbee <bdale@gag.com>. (Sun, 26 Sep 2010 20:06:05 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Jakub Wilk <jwilk@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: sudo: segfaults on -g
Date: Sun, 26 Sep 2010 22:03:02 +0200
[Message part 1 (text/plain, inline)]
Package: sudo
Version: 1.7.4p4-3
Severity: normal

$ sudo -g staff id
Segmentation fault


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages sudo depends on:
ii  libc6                         2.11.2-6   Embedded GNU C Library: Shared lib
ii  libpam-modules                1.1.1-6    Pluggable Authentication Modules f
ii  libpam0g                      1.1.1-6    Pluggable Authentication Modules l

-- 
Jakub Wilk
[sudoers (text/plain, attachment)]
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#598141; Package sudo. (Thu, 07 Oct 2010 22:09:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Bdale Garbee <bdale@gag.com>:
Extra info received and forwarded to list. (Thu, 07 Oct 2010 22:09:03 GMT) Full text and rfc822 format available.

Message #10 received at 598141@bugs.debian.org (full text, mbox):

From: Bdale Garbee <bdale@gag.com>
To: Jakub Wilk <jwilk@debian.org>, 598141@bugs.debian.org
Cc: control@bugs.debian.org
Subject: Re: Bug#598141: sudo: segfaults on -g
Date: Thu, 07 Oct 2010 16:04:23 -0600
[Message part 1 (text/plain, inline)]
tags 598141 + unreproducible moreinfo
thanks

On Sun, 26 Sep 2010 22:03:02 +0200, Jakub Wilk <jwilk@debian.org> wrote:
> Package: sudo
> Version: 1.7.4p4-3

> $ sudo -g staff id
> Segmentation fault

I can't reproduce this.  Any other clues?

Bdale
[Message part 2 (application/pgp-signature, inline)]

Added tag(s) unreproducible and moreinfo. Request was from Bdale Garbee <bdale@gag.com> to control@bugs.debian.org. (Thu, 07 Oct 2010 22:09:05 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Bdale Garbee <bdale@gag.com>:
Bug#598141; Package sudo. (Fri, 08 Oct 2010 12:15:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jakub Wilk <jwilk@debian.org>:
Extra info received and forwarded to list. Copy sent to Bdale Garbee <bdale@gag.com>. (Fri, 08 Oct 2010 12:15:07 GMT) Full text and rfc822 format available.

Message #17 received at 598141@bugs.debian.org (full text, mbox):

From: Jakub Wilk <jwilk@debian.org>
To: 598141@bugs.debian.org
Subject: Re: Bug#598141: sudo: segfaults on -g
Date: Fri, 8 Oct 2010 12:26:24 +0200
[Message part 1 (text/plain, inline)]
* Bdale Garbee <bdale@gag.com>, 2010-10-07, 16:04:
>>Package: sudo
>>Version: 1.7.4p4-3
>>
>>$ sudo -g staff id
>>Segmentation fault
>
>I can't reproduce this.  Any other clues?

Have you tried with the minimal /etc/sudoers I attached to the first 
message?

Anyway, I recompiled sudo with "-O0 -g" and did some debugging. It 
crashes at match.c:178:

              return(userpw_matches(def_runas_default, runas_pw->pw_name, runas_pw));

because runas_pw is NULL. The traceback is:

#0  0x0805d862 in _runaslist_matches (user_list=0x8f10808, group_list=0x8f10810) at ./match.c:178
#1  0x0805dbbf in runaslist_matches (user_list=0x8f10808, group_list=0x8f10810) at ./match.c:253
#2  0x0805437b in sudo_file_lookup (nss=0x806f780, validated=0, pwflag=0) at ./parse.c:221
#3  0x080567ff in main (argc=4, argv=0xbfffa434, envp=0xbfffa448) at ./sudo.c:358

-- 
Jakub Wilk
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#598141; Package sudo. (Fri, 08 Oct 2010 15:45:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Bdale Garbee <bdale@gag.com>:
Extra info received and forwarded to list. (Fri, 08 Oct 2010 15:45:03 GMT) Full text and rfc822 format available.

Message #22 received at 598141@bugs.debian.org (full text, mbox):

From: Bdale Garbee <bdale@gag.com>
To: Jakub Wilk <jwilk@debian.org>, 598141@bugs.debian.org, 598141@bugs.debian.org
Subject: Re: Bug#598141: sudo: segfaults on -g
Date: Fri, 08 Oct 2010 09:41:22 -0600
[Message part 1 (text/plain, inline)]
On Fri, 8 Oct 2010 12:26:24 +0200, Jakub Wilk <jwilk@debian.org> wrote:
> Have you tried with the minimal /etc/sudoers I attached to the first 
> message?

No, good point.  I'll try again when I have some more time to pursue this.

Bdale
[Message part 2 (application/pgp-signature, inline)]

Reply sent to Henri Salo <henri@nerv.fi>:
You have taken responsibility. (Tue, 25 Jun 2013 11:57:14 GMT) Full text and rfc822 format available.

Notification sent to Jakub Wilk <jwilk@debian.org>:
Bug acknowledged by developer. (Tue, 25 Jun 2013 11:57:14 GMT) Full text and rfc822 format available.

Message #27 received at 598141-close@bugs.debian.org (full text, mbox):

From: Henri Salo <henri@nerv.fi>
To: 598141-close@bugs.debian.org
Cc: Jakub Wilk <jwilk@debian.org>
Subject: could not reproduce
Date: Tue, 25 Jun 2013 14:55:10 +0300
[Message part 1 (text/plain, inline)]
Could not reproduce in 1.8.5p2-1+nmu1

Jakub, could you reopen this issue if you can reproduce it in some version,
thanks.

---
Henri Salo
[signature.asc (application/pgp-signature, inline)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 24 Jul 2013 07:29:36 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Apr 21 11:07:29 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.