public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nscd/2114] New: nscd crashes all the time
@ 2006-01-06 17:21 dmueller at suse dot com
  2006-01-06 17:23 ` [Bug nscd/2114] " dmueller at suse dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: dmueller at suse dot com @ 2006-01-06 17:21 UTC (permalink / raw)
  To: glibc-bugs

nscd crashes all the time when SENDFILE support is enabled. the reason is that 
it tries to sendfile() data that hasn't been allocated in the mmap area but on 
the stack. also, there is apparently an error in the assert().  
 
patch below

-- 
           Summary: nscd crashes all the time
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: critical
          Priority: P2
         Component: nscd
        AssignedTo: drepper at redhat dot com
        ReportedBy: dmueller at suse dot com
                CC: glibc-bugs at sources dot redhat dot com
  GCC host triplet: i686-pc-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=2114

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug nscd/2114] nscd crashes all the time
  2006-01-06 17:21 [Bug nscd/2114] New: nscd crashes all the time dmueller at suse dot com
@ 2006-01-06 17:23 ` dmueller at suse dot com
  2006-01-06 19:15 ` drepper at redhat dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: dmueller at suse dot com @ 2006-01-06 17:23 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From dmueller at suse dot com  2006-01-06 17:23 -------
Created an attachment (id=817)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=817&action=view)
the fix


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2114

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug nscd/2114] nscd crashes all the time
  2006-01-06 17:21 [Bug nscd/2114] New: nscd crashes all the time dmueller at suse dot com
  2006-01-06 17:23 ` [Bug nscd/2114] " dmueller at suse dot com
@ 2006-01-06 19:15 ` drepper at redhat dot com
  2006-01-08 17:52 ` dmueller at suse dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: drepper at redhat dot com @ 2006-01-06 19:15 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2006-01-06 19:15 -------
I've applied the additions to the if expressions.  But what problems do you have
with the asserts?  Using the data member is a more restrictive test and should
be correct unless I miss something in the moment.

And further: if the alloca use fits you "all the time" your setup is completely
screwed since your cache files are too small.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


http://sourceware.org/bugzilla/show_bug.cgi?id=2114

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug nscd/2114] nscd crashes all the time
  2006-01-06 17:21 [Bug nscd/2114] New: nscd crashes all the time dmueller at suse dot com
  2006-01-06 17:23 ` [Bug nscd/2114] " dmueller at suse dot com
  2006-01-06 19:15 ` drepper at redhat dot com
@ 2006-01-08 17:52 ` dmueller at suse dot com
  2006-01-10  0:25 ` drepper at redhat dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: dmueller at suse dot com @ 2006-01-08 17:52 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From dmueller at suse dot com  2006-01-08 17:52 -------
no, it also happens if somebody requests stuff that can't be cached by nscd,  
like for example RR DNS and similiar. Thats not necessarily a configuration  
problem.   
  
I agree that the assert() should be more restrictive as it is, but it looks 
inconsistent and quite confusing. either the 2nd one should be changed like in 
the patch, or an additional assert (db->data > db->head) should be added. Or 
the 3rd one could most likely be changed to refer to db->data as well instead 
of db->head like it does now. Would make the expression even simpler as well. 
 
Whatever you prefer, right now the asserts are pretty inconsistent though.  
 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW


http://sourceware.org/bugzilla/show_bug.cgi?id=2114

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug nscd/2114] nscd crashes all the time
  2006-01-06 17:21 [Bug nscd/2114] New: nscd crashes all the time dmueller at suse dot com
                   ` (2 preceding siblings ...)
  2006-01-08 17:52 ` dmueller at suse dot com
@ 2006-01-10  0:25 ` drepper at redhat dot com
  2006-02-23 23:38 ` christophe at saout dot de
  2006-03-05 10:34 ` christophe at saout dot de
  5 siblings, 0 replies; 7+ messages in thread
From: drepper at redhat dot com @ 2006-01-10  0:25 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2006-01-10 00:25 -------
No reply, I'm closing the bug because I think it is correct.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=2114

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug nscd/2114] nscd crashes all the time
  2006-01-06 17:21 [Bug nscd/2114] New: nscd crashes all the time dmueller at suse dot com
                   ` (3 preceding siblings ...)
  2006-01-10  0:25 ` drepper at redhat dot com
@ 2006-02-23 23:38 ` christophe at saout dot de
  2006-03-05 10:34 ` christophe at saout dot de
  5 siblings, 0 replies; 7+ messages in thread
From: christophe at saout dot de @ 2006-02-23 23:38 UTC (permalink / raw)
  To: glibc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 799 bytes --]


------- Additional Comments From christophe at saout dot de  2006-02-23 23:38 -------
The asserts seem to be failing again in the 20060207 version:

nscd: hstcache.c:341: cache_addhst: Zusicherung »(char *) &dataset->resp - (char
*) db->head + total <= (sizeof (struct database_pers_head) + db->head->module *
sizeof (ref_t) + db->head->data_size)« nicht erfüllt.

after being started for about a minute with lots of host name lookups.

It seems to work on x86 though, and it's quickly failing on two x64_64 machines. 
I'm using nss_ldap.

(please reopen or tell me to file a new bug if this is really a new bug)

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2114

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug nscd/2114] nscd crashes all the time
  2006-01-06 17:21 [Bug nscd/2114] New: nscd crashes all the time dmueller at suse dot com
                   ` (4 preceding siblings ...)
  2006-02-23 23:38 ` christophe at saout dot de
@ 2006-03-05 10:34 ` christophe at saout dot de
  5 siblings, 0 replies; 7+ messages in thread
From: christophe at saout dot de @ 2006-03-05 10:34 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From christophe at saout dot de  2006-03-05 10:34 -------
... stopped crashing with update of nss_ldap, so ignore this.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2114

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-03-05 10:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-06 17:21 [Bug nscd/2114] New: nscd crashes all the time dmueller at suse dot com
2006-01-06 17:23 ` [Bug nscd/2114] " dmueller at suse dot com
2006-01-06 19:15 ` drepper at redhat dot com
2006-01-08 17:52 ` dmueller at suse dot com
2006-01-10  0:25 ` drepper at redhat dot com
2006-02-23 23:38 ` christophe at saout dot de
2006-03-05 10:34 ` christophe at saout dot de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).