Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: dev

Issue 609 in cherokee: Cherokee crashes upon PAM authentication

 

 

Cherokee dev RSS feed   Index | Next | Previous | View Threaded


codesite-noreply at google

Oct 18, 2009, 4:17 PM

Post #1 of 10 (669 views)
Permalink
Issue 609 in cherokee: Cherokee crashes upon PAM authentication

Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium Component-Logic Usability

New issue 609 by ste...@konink.de: Cherokee crashes upon PAM authentication
http://code.google.com/p/cherokee/issues/detail?id=609

What steps will reproduce the problem?
1. use pam authentication
2. see segfault

(gdb) bt
#0 0x00007ffff7df42e1 in ?? () from /lib64/ld-linux-x86-64.so.2
#1 0x00007ffff7dee646 in ?? () from /lib64/ld-linux-x86-64.so.2
#2 0x00007ffff6fac34c in ?? () from /lib/libdl.so.2
#3 0x00007ffff6fac04f in dlclose () from /lib/libdl.so.2
#4 0x00007ffff500ef47 in ?? () from /lib/libpam.so.0
#5 0x00007ffff50101b5 in ?? () from /lib/libpam.so.0
#6 0x00007ffff500da73 in ?? () from /lib/libpam.so.0
#7 0x00007ffff500d593 in pam_authenticate () from /lib/libpam.so.0
#8 0x00007ffff5217f40 in cherokee_validator_pam_check (pam=0x6a33c0,
conn=0x619ff0) at validator_pam.c:177
#9 0x00007ffff797c267 in cherokee_validator_check (validator=0x6a33c0,
conn=0x619ff0) at validator.c:105
#10 0x00007ffff796fd91 in cherokee_connection_check_authentication
(conn=0x619ff0, config_entry=0x7ffff15ffff0) at connection.c:2065
#11 0x00007ffff797a5f2 in process_active_connections (thd=0x60c600) at
thread.c:977
#12 0x00007ffff797b9ed in cherokee_thread_step_MULTI_THREAD (thd=0x60c600,
dont_block=false) at thread.c:1798
#13 0x00007ffff7978c66 in thread_routine (data=0x60c600) at thread.c:98
#14 0x00007ffff7542017 in start_thread () from /lib/libpthread.so.0
#15 0x00007ffff6d2648d in clone () from /lib/libc.so.6
#16 0x0000000000000000 in ?? ()


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 18, 2009, 4:39 PM

Post #2 of 10 (646 views)
Permalink
Issue 609 in cherokee: Cherokee crashes upon PAM authentication [In reply to]

Comment #1 on issue 609 by ste...@konink.de: Cherokee crashes upon PAM
authentication
http://code.google.com/p/cherokee/issues/detail?id=609

My hunch on this is that PAM doesn't allow reuse of the Handle. And there
is race.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Dec 13, 2009, 3:44 PM

Post #3 of 10 (602 views)
Permalink
Re: Issue 609 in cherokee: Cherokee crashes upon PAM authentication [In reply to]

Comment #2 on issue 609 by arnaud.cornet: Cherokee crashes upon PAM
authentication
http://code.google.com/p/cherokee/issues/detail?id=609

Are you using some uncommon pam module? I would have guessed a segfault in
a pam
module rather. But that's maybe because I have just been messing with a
very unstable
one.

Please provide your /etc/pam.d/cherokee file and if possible reproduce with
pam
debugging symbols.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Dec 13, 2009, 4:06 PM

Post #4 of 10 (600 views)
Permalink
Re: Issue 609 in cherokee: Cherokee crashes upon PAM authentication [In reply to]

Comment #3 on issue 609 by ste...@konink.de: Cherokee crashes upon PAM
authentication
http://code.google.com/p/cherokee/issues/detail?id=609

just hit your authentication in paralel...

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Feb 2, 2010, 9:25 AM

Post #5 of 10 (546 views)
Permalink
Re: Issue 609 in cherokee: Cherokee crashes upon PAM authentication [In reply to]

Comment #4 on issue 609 by bram.swenson: Cherokee crashes upon PAM
authentication
http://code.google.com/p/cherokee/issues/detail?id=609

seeing the same issue here in ubuntu karmic. one thing possibly odd about
karmics pam
config is that it requires sha512 per this line in
/etc/pam.d/common-password

password [success=1 default=ignore] pam_unix.so obscure sha512

i would be happy to gather any other info needed to get this issue resolved.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


cherokee at googlecode

Feb 11, 2010, 7:35 AM

Post #6 of 10 (518 views)
Permalink
Re: Issue 609 in cherokee: Cherokee crashes upon PAM authentication [In reply to]

Comment #5 on issue 609 by skarcha: Cherokee crashes upon PAM authentication
http://code.google.com/p/cherokee/issues/detail?id=609

Reproduced.

From PAM manpage:

==============
The libpam interfaces are only thread-safe if each thread within the
multithreaded
application uses its own PAM handle.
==============

Applying the (simple again) attached patch, works without problems, but I'm
not sure
whether it's the best solution. Please, review.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


cherokee at googlecode

Feb 11, 2010, 7:39 AM

Post #7 of 10 (518 views)
Permalink
Re: Issue 609 in cherokee: Cherokee crashes upon PAM authentication [In reply to]

Comment #6 on issue 609 by ste...@konink.de: Cherokee crashes upon PAM
authentication
http://code.google.com/p/cherokee/issues/detail?id=609

skarcha... newbie ;) you should attach your patch :P

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


cherokee at googlecode

Feb 11, 2010, 7:43 AM

Post #8 of 10 (519 views)
Permalink
Re: Issue 609 in cherokee: Cherokee crashes upon PAM authentication [In reply to]

Comment #7 on issue 609 by skarcha: Cherokee crashes upon PAM authentication
http://code.google.com/p/cherokee/issues/detail?id=609

Ops! I bet I attached it.. :D


Attachments:
validator_pam.patch 475 bytes

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


cherokee at googlecode

Feb 11, 2010, 7:53 AM

Post #9 of 10 (521 views)
Permalink
Re: Issue 609 in cherokee: Cherokee crashes upon PAM authentication [In reply to]

Updates:
Status: Started
Owner: skarcha

Comment #8 on issue 609 by alobbs: Cherokee crashes upon PAM authentication
http://code.google.com/p/cherokee/issues/detail?id=609

✚1

Good stuff! :-)

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


cherokee at googlecode

Feb 11, 2010, 8:06 AM

Post #10 of 10 (522 views)
Permalink
Re: Issue 609 in cherokee: Cherokee crashes upon PAM authentication [In reply to]

Updates:
Status: Fixed

Comment #9 on issue 609 by skarcha: Cherokee crashes upon PAM authentication
http://code.google.com/p/cherokee/issues/detail?id=609

Fixed in r4238: http://svn.cherokee-project.com/changeset/4238

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev

Cherokee dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.