On Wed, Mar 16, 2011 at 08:33:06PM -0400, Ben Lipton wrote:
> Package: tripwire
> Version: 2.4.2-9
> Severity: important
> 
> Tripwire segfaults every time I run it on my system, whether in initialize or 
> check mode. Specifically, it segfaults the first time it encounters a file 
> owned by a user whose access to the machine is configured in LDAP, not in 
> /etc/passwd. The crash seems to occur in cUnixFSServices::GetOwnerForFile, 
> when it calls the getpwuid() function on the LDAP user's uid number.
> 
> I have been able to get a segfault from the following program, as well, when 
> compiling with the following command line:
> g++ -g -static -o test test.cpp
> 
> test.cpp:
> 
> int main() {
>     struct passwd* pp = getpwuid( 3104 );
>     printf("%s\n",pp->pw_name);
> }
> 
> The tripwire package is configured to use the --enable-static option, which 
> both generates warnings of the type "Using 'getpwuid' in statically linked 
> applications requires at runtime the shared libraries from the glibc version 
> used for linking." It seems like this would be ok (it's just a warning, after 
> all) but the function actually segfaults. I don't know if this counts as a 
> bug in the getpwuid() function, but it definitely prevents me from using 
> tripwire. Recompiling the package after removing --enable-static from 
> debian/rules produced a .deb that works for me.

Hi, sorry for the delay in the answer.
Does "getent passwd $SOME_RANDOM_USER_NOT_IN_PASSWD" work ok in your system?

Thanks,

Alberto

-- 
Alberto Gonzalez Iniesta    | Formación, consultoría y soporte técnico
agi@(inittab.org|debian.org)| en GNU/Linux y software libre
Encrypted mail preferred    | http://inittab.com

Key fingerprint = 9782 04E7 2B75 405C F5E9  0C81 C514 AF8E 4BA4 01C3



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to