public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/10460: optimization switch causes read( ) gcc stdlib function to fail.
@ 2003-04-23 14:25 bangerth
0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-04-23 14:25 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, md, nobody
Synopsis: optimization switch causes read( ) gcc stdlib function to fail.
State-Changed-From-To: open->feedback
State-Changed-By: bangerth
State-Changed-When: Wed Apr 23 14:25:11 2003
State-Changed-Why:
Your description of the "bug" is too fuzzy for us to
reproduce. Please review
http://gcc.gnu.org/bugs.html
to see what we need. If you want us to fix something,
you have to give us a program which we can see fail.
You already noticed this: gcc 2.95 is no longer supported.
Please consider re-checking with a newer version of gcc.
Regards
Wolfgang
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10460
^ permalink raw reply [flat|nested] 2+ messages in thread
* c/10460: optimization switch causes read( ) gcc stdlib function to fail.
@ 2003-04-23 10:56 md
0 siblings, 0 replies; 2+ messages in thread
From: md @ 2003-04-23 10:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 10460
>Category: c
>Synopsis: optimization switch causes read( ) gcc stdlib function to fail.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 23 10:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: mark
>Release: unknown-1.0
>Organization:
>Environment:
Kernel 2.2.19, Glibc 2.1.3.50, gcc 2.95.3.
>Description:
Compiling with -O2 <-> -O0 causes various compilations of same program
to succeed or fail using SOCK_RAW on socket bound to "eth0".
The specific call that fails is read( ) using that socket. Poll also fails.
This would indicate that the originating socket( ) function call is not being properly registered
in the kernel.
So changing the compiler optimization allows the program to execute
the mentioned function calls completely.
I am going to upgrade my GCC to try a new version to see if that fixes
anything.
>How-To-Repeat:
Create project with a socket( ) with AF_PACKET, SOCK_RAW under linux kernel 2.2.19+.
with protocol of 0x0003
Retrieve the "eth0" interface and bind to socket.
Have another machine ping this machine.
Repeatedly try different compilations to see if he read( ) function will detect broadcast traffice
on eth0.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-04-23 14:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-23 14:25 c/10460: optimization switch causes read( ) gcc stdlib function to fail bangerth
-- strict thread matches above, loose matches on Subject: below --
2003-04-23 10:56 md
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).