public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/27219]  New: bogus-looking code in natPlainSocketImplPosix.cc
@ 2006-04-19 16:23 tromey at gcc dot gnu dot org
  2006-04-20 15:54 ` [Bug libgcj/27219] " tromey at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-04-19 16:23 UTC (permalink / raw)
  To: gcc-bugs

I'm looking at natPlainSocketImplPosix.cc:write_helper().

* Why not throw an exception on ENOTCONN or ECONNRESET?
  We could at least use a better comment here.

* This code doesn't handle EINTR properly.

The recv code also doesn't seem to handle EINTR properly.


-- 
           Summary: bogus-looking code in natPlainSocketImplPosix.cc
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tromey at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27219


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

* [Bug libgcj/27219] bogus-looking code in natPlainSocketImplPosix.cc
  2006-04-19 16:23 [Bug libgcj/27219] New: bogus-looking code in natPlainSocketImplPosix.cc tromey at gcc dot gnu dot org
@ 2006-04-20 15:54 ` tromey at gcc dot gnu dot org
  2006-04-20 16:06 ` tromey at gcc dot gnu dot org
  2006-04-20 21:45 ` mckinlay at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-04-20 15:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from tromey at gcc dot gnu dot org  2006-04-20 15:54 -------
You can see it by compiling this short example
program with 'g++ --syntax-only':

#include <gcj/cni.h>
#include <jni.h>


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-04-20 15:54:03
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27219


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

* [Bug libgcj/27219] bogus-looking code in natPlainSocketImplPosix.cc
  2006-04-19 16:23 [Bug libgcj/27219] New: bogus-looking code in natPlainSocketImplPosix.cc tromey at gcc dot gnu dot org
  2006-04-20 15:54 ` [Bug libgcj/27219] " tromey at gcc dot gnu dot org
@ 2006-04-20 16:06 ` tromey at gcc dot gnu dot org
  2006-04-20 21:45 ` mckinlay at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-04-20 16:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from tromey at gcc dot gnu dot org  2006-04-20 16:06 -------
Ignore that, I appended to the wrong report.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27219


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

* [Bug libgcj/27219] bogus-looking code in natPlainSocketImplPosix.cc
  2006-04-19 16:23 [Bug libgcj/27219] New: bogus-looking code in natPlainSocketImplPosix.cc tromey at gcc dot gnu dot org
  2006-04-20 15:54 ` [Bug libgcj/27219] " tromey at gcc dot gnu dot org
  2006-04-20 16:06 ` tromey at gcc dot gnu dot org
@ 2006-04-20 21:45 ` mckinlay at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: mckinlay at redhat dot com @ 2006-04-20 21:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from mckinlay at redhat dot com  2006-04-20 21:45 -------
It does look like these should be made robust in the case of an EINTR which was
caused by a signal other than the interrupt signal.

As for ignoring ENOTCONN and ECONNRESET, I have a vague recollection that there
is a good reason for doing this (compatibility with Sun?) - but this probably
does warrant more testing/investigation, and a better comment.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27219


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

end of thread, other threads:[~2006-04-20 21:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-19 16:23 [Bug libgcj/27219] New: bogus-looking code in natPlainSocketImplPosix.cc tromey at gcc dot gnu dot org
2006-04-20 15:54 ` [Bug libgcj/27219] " tromey at gcc dot gnu dot org
2006-04-20 16:06 ` tromey at gcc dot gnu dot org
2006-04-20 21:45 ` mckinlay 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).