BUG #8229: Dropuser and create user segfault for users in ldap

From: matt(dot)s(at)aptalaska(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #8229: Dropuser and create user segfault for users in ldap
Date: 2013-06-13 20:48:05
Message-ID: E1UnERB-000238-0G@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 8229
Logged by: Matthew Schumacher
Email address: matt(dot)s(at)aptalaska(dot)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(at)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(at)ancdev:~$ id
uid=10001(schu) gid=10000(netgroup) groups=10000(netgroup),100(users)

Please let me know if I can provide more information.

Browse pgsql-bugs by date

  From Date Subject
Next Message David Johnston 2013-06-13 21:21:57 Re: BUG #8228: Unexpected "set-valued function" with varchar(n) but not varchar
Previous Message Tom Lane 2013-06-13 20:02:22 Re: BUG #8228: Unexpected "set-valued function" with varchar(n) but not varchar