[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: gdb shows segfault on reading passwd.db

From: Robert Hunter <robert.hunter_at_gen-i.co.nz>
Date: 2005-03-23 05:23:29 CET

Ben Collins-Sussman wrote:
> Thanks for the backtrace. Whatever the problem is, it looks like
> something wrong with with your system libraries, not Subversion.
>
> Working backwards: Subversion is trying to read your ~/.subversion/
> run-time config files -- that's call #7 there. In order to do that, it
> needs to find your username, so it can find the path to your home
> directory.
>
> So it calls #6, apr_uid_name_get(), which is supposed to portably return
> your username. On unix-y/posix-y systems, that calls getpwuid(), a
> standard system call to get user/password information from the system
> password database (usually /etc/passwd). In this case, it's
> __getpwuid_r(), call #5.
>
> From there, it's all a mystery. That system call is calling functions
> in /lib/libnss_db.so, and I have no idea what that is. Whatever it is,
> it looks like it's trying to open a specific password database and
> segfaulting.
>
> Honestly, it looks like there's something wrong with your system
> libraries. Why would a getpwuid() call *possibly* cause a segfault?
> Bad OS install? Bad OS libs? Misconfigured system?

I believe that nss_db is the nsswitch(5) library for "pwdb", a scheme
that uses a flat-file binary database for the data that is traditionally
stored in /etc/passwd (and /etc/group).

Furthermore, I believe the format for this password database is...
Our friend, the Berkeley DB.

As to quite what's going on, I couldn't say; I would look at library
versions (libdb) compared with database versions.

-- 
Robert Hunter
*****************************************************************************
This communication, including any attachments, is confidential.
If you are not the intended recipient, you should not read it
- please contact me immediately, destroy it, and do not copy
or use any part of this communication or disclose anything about it,
Thank you.
Please note that this communication does not designate an information system
for the purposes of the Electronic Transactions Act 2002
******************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Mar 23 05:26:39 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.