public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/12841] New: mqueue2.h: declaration of ‘mqd_t mq_open(const char*, int, ...)’ throws different exceptions
@ 2011-06-04 16:46 aurelien at aurel32 dot net
  2011-06-04 17:09 ` [Bug libc/12841] " jakub at redhat dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: aurelien at aurel32 dot net @ 2011-06-04 16:46 UTC (permalink / raw)
  To: glibc-bugs

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

           Summary: mqueue2.h: declaration of ‘mqd_t mq_open(const char*,
                    int, ...)’ throws different exceptions
           Product: glibc
           Version: 2.13
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: aurelien@aurel32.net


Created attachment 5765
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5765
Patch to fix the issue

Given the following code:

#include <mqueue.h>
int main()
{
        mq_open("/tmp/test", O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR, 0);
        return 0;
}

When it is compiled with, "g++ -O -pedantic -D_FORTIFY_SOURCE=1", it fails with
the following error:

/usr/include/bits/mqueue2.h: In function ‘mqd_t mq_open(const char*, int,
...)’:
/usr/include/bits/mqueue2.h:37: error: declaration of ‘mqd_t mq_open(const
char*, int, ...)’ throws different exceptions
/usr/include/bits/mqueue2.h:26: error: from previous declaration ‘mqd_t
mq_open(const char*, int, ...) throw ()’

As gcc said, it's due to two different declarations in bits/mqueue2.h. The
attached patch fixes the issue.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug libc/12841] mqueue2.h: declaration of ‘mqd_t mq_open(const char*, int, ...)’ throws different exceptions
  2011-06-04 16:46 [Bug libc/12841] New: mqueue2.h: declaration of ‘mqd_t mq_open(const char*, int, ...)’ throws different exceptions aurelien at aurel32 dot net
@ 2011-06-04 17:09 ` jakub at redhat dot com
  2011-06-04 17:12 ` aurelien at aurel32 dot net
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at redhat dot com @ 2011-06-04 17:09 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #1 from Jakub Jelinek <jakub at redhat dot com> 2011-06-04 17:08:32 UTC ---
Created attachment 5766
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5766
glibc-bz12841.patch

That patch is incorrect.  Here is a completely untested patch instead.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug libc/12841] mqueue2.h: declaration of ‘mqd_t mq_open(const char*, int, ...)’ throws different exceptions
  2011-06-04 16:46 [Bug libc/12841] New: mqueue2.h: declaration of ‘mqd_t mq_open(const char*, int, ...)’ throws different exceptions aurelien at aurel32 dot net
  2011-06-04 17:09 ` [Bug libc/12841] " jakub at redhat dot com
@ 2011-06-04 17:12 ` aurelien at aurel32 dot net
  2011-06-04 18:23 ` drepper.fsp at gmail dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: aurelien at aurel32 dot net @ 2011-06-04 17:12 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #2 from Aurelien Jarno <aurelien at aurel32 dot net> 2011-06-04 17:11:35 UTC ---
I confirm your patch fixes the issue.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug libc/12841] mqueue2.h: declaration of ‘mqd_t mq_open(const char*, int, ...)’ throws different exceptions
  2011-06-04 16:46 [Bug libc/12841] New: mqueue2.h: declaration of ‘mqd_t mq_open(const char*, int, ...)’ throws different exceptions aurelien at aurel32 dot net
  2011-06-04 17:09 ` [Bug libc/12841] " jakub at redhat dot com
  2011-06-04 17:12 ` aurelien at aurel32 dot net
@ 2011-06-04 18:23 ` drepper.fsp at gmail dot com
  2011-06-04 18:24 ` drepper.fsp at gmail dot com
  2014-06-27 13:13 ` fweimer at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: drepper.fsp at gmail dot com @ 2011-06-04 18:23 UTC (permalink / raw)
  To: glibc-bugs

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

Ulrich Drepper <drepper.fsp at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #5765|0                           |1
        is obsolete|                            |

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug libc/12841] mqueue2.h: declaration of ‘mqd_t mq_open(const char*, int, ...)’ throws different exceptions
  2011-06-04 16:46 [Bug libc/12841] New: mqueue2.h: declaration of ‘mqd_t mq_open(const char*, int, ...)’ throws different exceptions aurelien at aurel32 dot net
                   ` (2 preceding siblings ...)
  2011-06-04 18:23 ` drepper.fsp at gmail dot com
@ 2011-06-04 18:24 ` drepper.fsp at gmail dot com
  2014-06-27 13:13 ` fweimer at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: drepper.fsp at gmail dot com @ 2011-06-04 18:24 UTC (permalink / raw)
  To: glibc-bugs

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

Ulrich Drepper <drepper.fsp at gmail dot com> changed:

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

--- Comment #3 from Ulrich Drepper <drepper.fsp at gmail dot com> 2011-06-04 18:23:20 UTC ---
Patch applied.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug libc/12841] mqueue2.h: declaration of ‘mqd_t mq_open(const char*, int, ...)’ throws different exceptions
  2011-06-04 16:46 [Bug libc/12841] New: mqueue2.h: declaration of ‘mqd_t mq_open(const char*, int, ...)’ throws different exceptions aurelien at aurel32 dot net
                   ` (3 preceding siblings ...)
  2011-06-04 18:24 ` drepper.fsp at gmail dot com
@ 2014-06-27 13:13 ` fweimer at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2014-06-27 13:13 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=12841

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

end of thread, other threads:[~2014-06-27 13:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-04 16:46 [Bug libc/12841] New: mqueue2.h: declaration of ‘mqd_t mq_open(const char*, int, ...)’ throws different exceptions aurelien at aurel32 dot net
2011-06-04 17:09 ` [Bug libc/12841] " jakub at redhat dot com
2011-06-04 17:12 ` aurelien at aurel32 dot net
2011-06-04 18:23 ` drepper.fsp at gmail dot com
2011-06-04 18:24 ` drepper.fsp at gmail dot com
2014-06-27 13:13 ` fweimer 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).