[squid-users] Squid 2.57 core dumped for invalid cache_effective_user and cache_effective_group on HP-UX

From: Durai raj <tech_durai@dont-contact.us>
Date: Sat, 16 Oct 2004 03:02:25 -0700 (PDT)

Hello All,

       I got core dumped when I tried with invalid
cache_effective_user Or
cache_effective_group. Here is the details:

For invalid cache_effective_user,

# squid -z
FATAL: getpwnam failed to find userid for effective
user 'squid'
Squid Cache (Version 2.5.STABLE7): Terminated
abnormally.
CPU Usage: 0.020 seconds = 0.010 user + 0.010 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 48
Oct 16 14:11:32 vaigi syslog: getpwnam failed to find
userid for effective
user 'squid'
Abort(coredump)

For invalid cache_effective_group,

# squid -z
FATAL: getgrnam failed to find groupid for effective
group 'squid'
Squid Cache (Version 2.5.STABLE7): Terminated
abnormally.
CPU Usage: 0.020 seconds = 0.010 user + 0.010 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Oct 16 15:02:22 vaigi syslog: getgrnam failed to find
groupid for effective
group 'squid'
Abort(coredump)

This is because of the accessing invalid pointer in
function
configDoConfigure () at cache_cf.c line 284.

   399 if (NULL == pwd)
   400 /*
   401 * Andres Kroonmaa
<andre@online.ee>:
   402 * Some getpwnam()
implementations (Solaris?)
require
   403 * an available FD < 256 for
opening a FILE* to the
   404 * passwd file.
   405 * DW:
   406 * This should be safe at
startup, but might still
fail
   407 * during reconfigure.
   408 */
   409 fatalf("getpwnam failed to
find userid for effective
user '%s'",
   410 Config.effectiveUser);
   411 Config2.effectiveUserID =
pwd->pw_uid;
   412 Config2.effectiveGroupID =
pwd->pw_gid;
   413 }

   420 if (NULL == grp)
   421 fatalf("getgrnam failed to find
groupid for effective
group '%s'",
   422 Config.effectiveGroup);
   423 Config2.effectiveGroupID =
grp->gr_gid;
   424 }

Is this the bug or platfrom specific problem ?

Regards,
Durai.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system
(http://www.grisoft.com).
Version: 6.0.775 / Virus Database: 522 - Release Date:
10/8/2004
		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
Received on Sat Oct 16 2004 - 04:02:26 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Nov 01 2004 - 12:00:02 MST