Bug 918529 - segfault of /usr/lib64/squid/basic_ncsa_auth
Summary: segfault of /usr/lib64/squid/basic_ncsa_auth
Keywords:
Status: CLOSED DUPLICATE of bug 896127
Alias: None
Product: Fedora
Classification: Fedora
Component: squid
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michal Luscon
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-06 13:15 UTC by Jan Hutař
Modified: 2013-03-09 17:17 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-03-09 17:17:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jan Hutař 2013-03-06 13:15:00 UTC
Description of problem:
I have squid configured to use NCSA auth and /usr/lib64/squid/basic_ncsa_auth segfaults.


Version-Release number of selected component (if applicable):
squid-3.2.7-1.fc18


How reproducible:
always


Steps to Reproduce:
1. Configure squid to use NCSA auth with hashes in the password
2. # squidclient -u proxy_user_8157 -w '#proxy#password' -h localhost -p 3128 http://bugzilla.redhat.com >/dev/null


Actual results:
==> /var/log/messages <==
Mar  6 08:12:41 <host> kernel: [21593.133897] basic_ncsa_auth[31027]: segfault at 0 ip 00007f3797ef816a sp 00007fff1887b328 error 4 in libc-2.16.so[7f3797dbd000+1ad000]
Mar  6 08:12:41 <host> abrtd: Directory 'ccpp-2013-03-06-08:12:41-31027' creation detected
Mar  6 08:12:41 <host> abrt[31042]: Saved core dump of pid 31027 (/usr/lib64/squid/basic_ncsa_auth) to /var/spool/abrt/ccpp-2013-03-06-08:12:41-31027 (1298432 bytes)

==> /var/log/squid/cache.log <==
2013/03/06 08:12:41 kid1| WARNING: basicauthenticator #1 exited
2013/03/06 08:12:41 kid1| Too few basicauthenticator processes are running (need 1/5)
2013/03/06 08:12:41 kid1| Starting new helpers
2013/03/06 08:12:41 kid1| helperOpenServers: Starting 1/5 'basic_ncsa_auth' processes

==> /var/log/squid/access.log <==
1362575561.981    119 ::1 TCP_DENIED/407 3851 GET http://bugzilla.redhat.com/ proxy_user_8157 HIER_NONE/- text/html


Expected results:
Should work


Additional info:
Details from ABRT:

abrt_version:   2.0.20
analyzer:       CCpp
architecture:   x86_64
backtrace_rating: 4
cmdline:        (basic_ncsa_auth) /etc/squid/passwd
component:      squid
count:          1
crash_function: strcmp
duphash:        98f11a0faeaeaaa0e4d62e660cc243283d860000
executable:     /usr/lib64/squid/basic_ncsa_auth
hostname:       <hostname>
kernel:         3.8.1-201.fc18.x86_64
os_release:     Fedora release 18 (Spherical Cow)
package:        squid-3.2.7-1.fc18
pid:            30462
pkg_arch:       x86_64
pkg_epoch:      7
pkg_name:       squid
pkg_release:    1.fc18
pkg_version:    3.2.7
pwd:            /var/spool/squid
reason:         Process /usr/lib64/squid/basic_ncsa_auth was killed by signal 11 (SIGSEGV)
time:           Wed Mar  6 07:37:58 2013
uid:            23
username:       squid
uuid:           17fd89f07e38095ee55566d39f026c57bfc1cc60

Backtrace generated by ABRT:

[New LWP 30462]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `(basic_ncsa_auth) /etc/squid/passwd'.
Program terminated with signal 11, Segmentation fault.
#0  __strcmp_ssse3 () at ../sysdeps/x86_64/strcmp.S:213
213	../sysdeps/x86_64/strcmp.S: No such file or directory.

Thread 1 (Thread 0x7fc737663800 (LWP 30462)):
#0  __strcmp_ssse3 () at ../sysdeps/x86_64/strcmp.S:213
No locals.
#1  0x00007fc7376834a0 in main (argc=<optimized out>, argv=0x7fffa26fc368) at basic_ncsa_auth.cc:153
        buf = "proxy_user_8157\000#proxy#password\000ord", '\000' <repeats 8160 times>
        passwd = <optimized out>
        u = 0x7fc7387d2a40
        sb = {st_dev = 64769, st_ino = 1704694, st_nlink = 1, st_mode = 33188, st_uid = 0, st_gid = 0, __pad0 = 0, st_rdev = 0, st_size = 54, st_blksize = 4096, st_blocks = 8, st_atim = {tv_sec = 1362572595, tv_nsec = 673093830}, st_mtim = {tv_sec = 1362572590, tv_nsec = 8094105}, st_ctim = {tv_sec = 1362572590, tv_nsec = 8094105}, __unused = {0, 0, 0}}
        change_time = 1362572590
        user = <optimized out>
        p = 0x0

Comment 3 Michal Luscon 2013-03-09 17:17:45 UTC

*** This bug has been marked as a duplicate of bug 896127 ***


Note You need to log in before you can comment on or make changes to this bug.