pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: matt.s@aptalaska.com
To: pgsql-bugs@postgresql.org
Subject: BUG #8229: Dropuser and create user segfault for users in ldap
Date: Thu, 13 Jun 2013 20:48:05 +0000
Message-ID: <E1UnERB-000238-0G@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      8229
Logged by:          Matthew Schumacher
Email address:      matt.s@aptalaska.com
PostgreSQL version: 9.2.4
Operating system:   Slackware Linux 14.0 x86_64
Description:        

I have a slackware 14.0 host, and have added nss_ldap-265 then set nsswitch
to use ldap for users.

When calling dropuser as an ldap user, it segfaults.  Here is the backtrace:
 


schu@ancdev:~$ gdb dropuser
GNU gdb (GDB) 7.5
Copyright (C) 2012 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-slackware-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/;...
Reading symbols from /usr/bin/dropuser...done.
(gdb) run  -U postgres asdf
Starting program: /usr/bin/dropuser -U postgres asdf
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
dropuser: removal of role "asdf" failed: ERROR:  role "asdf" does not exist

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff787115c in free () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff787115c in free () from /lib64/libc.so.6
#1  0x00007ffff5e8ff30 in ?? () from /usr/lib64/libldap-2.4.so.2
#2  0x00007ffff5e9003f in ?? () from /usr/lib64/libldap-2.4.so.2
#3  0x0000000000618870 in ?? ()
#4  0x0000000000000001 in ?? ()
#5  0x00007fffffffe240 in ?? ()
#6  0x00007ffff5eba7e1 in _fini () from /usr/lib64/libldap-2.4.so.2
#7  0x00007fffffffe240 in ?? ()
#8  0x00007ffff7de9c97 in _dl_fini () from /lib64/ld-linux-x86-64.so.2
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

schu@ancdev:~$ id   
uid=10001(schu) gid=10000(netgroup) groups=10000(netgroup),100(users)

Please let me know if I can provide more information.




-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



Message-ID: <E1UnERB-000238-0G@wrigleys.postgresql.org>
Permalink:  ../E1UnERB-000238-0G@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1UnERB-000238-0G@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: matt.s@aptalaska.com
  Subject: Re: BUG #8229: Dropuser and create user segfault for users in ldap
  In-Reply-To: <E1UnERB-000238-0G@wrigleys.postgresql.org>
  References: <E1UnERB-000238-0G@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox