public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/2766] New: Implementation of the insque() function does not satisfy POSIX.
@ 2006-06-14 11:48 sortov at linuxtesting dot org
2006-06-14 12:33 ` [Bug libc/2766] " jakub at redhat dot com
2006-06-17 17:01 ` drepper at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: sortov at linuxtesting dot org @ 2006-06-14 11:48 UTC (permalink / raw)
To: glibc-bugs
The POSIX description of the insque() function says that "If the queue is to be
used as a linear list, invoking insque(&element, NULL), where element is the
initial element of the queue, shall initialize the forward and backward
pointers of element to null pointers."
However this function in the current glibc causes the segmentation fault if the
second parameter is NULL.
Example of the code:
#include <stdio.h>
#include <search.h>
typedef struct
{
void* next;
void* prev;
} Node;
int main()
{
Node A;
A.next = NULL;
A.prev = NULL;
insque(&A, NULL);
return 0;
}
--
Summary: Implementation of the insque() function does not satisfy
POSIX.
Product: glibc
Version: 2.4
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: sortov at linuxtesting dot org
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=2766
------- 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] 3+ messages in thread
* [Bug libc/2766] Implementation of the insque() function does not satisfy POSIX.
2006-06-14 11:48 [Bug libc/2766] New: Implementation of the insque() function does not satisfy POSIX sortov at linuxtesting dot org
@ 2006-06-14 12:33 ` jakub at redhat dot com
2006-06-17 17:01 ` drepper at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: jakub at redhat dot com @ 2006-06-14 12:33 UTC (permalink / raw)
To: glibc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
http://sourceware.org/bugzilla/show_bug.cgi?id=2766
------- 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] 3+ messages in thread
* [Bug libc/2766] Implementation of the insque() function does not satisfy POSIX.
2006-06-14 11:48 [Bug libc/2766] New: Implementation of the insque() function does not satisfy POSIX sortov at linuxtesting dot org
2006-06-14 12:33 ` [Bug libc/2766] " jakub at redhat dot com
@ 2006-06-17 17:01 ` drepper at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: drepper at redhat dot com @ 2006-06-17 17:01 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2006-06-17 17:01 -------
Fixed in cvs.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=2766
------- 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] 3+ messages in thread
end of thread, other threads:[~2006-06-17 17:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-14 11:48 [Bug libc/2766] New: Implementation of the insque() function does not satisfy POSIX sortov at linuxtesting dot org
2006-06-14 12:33 ` [Bug libc/2766] " jakub at redhat dot com
2006-06-17 17:01 ` drepper at redhat dot com
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).