* [gentoo-bsd] TCP (FTP) problem - some sites - while emerging
@ 2007-04-18 19:13 Joe Peterson
2007-04-18 20:04 ` Ignacio Arqué-Latour
0 siblings, 1 reply; 19+ messages in thread
From: Joe Peterson @ 2007-04-18 19:13 UTC (permalink / raw
To: gentoo-bsd
I am in the process of trying out Gentoo/FreeBSD - I love the idea of
being able to use the very cool portage system on BSD!
Anyway, I have tried the install twice, the second time doing the
"emerge -e system" before the kernel build, but I am getting stuck at
the same issue: I get TCP timeouts to some sites. This is such a
bummer, and I am asking if anyone knows a solutuon. I have seen some
other postings to this list that may be the same issue (packet mangling?).
Anyway, as an example, I can never FTP to www.astron.com (where the
"file" package, among other things, lives). Even if I use wget or lynx
to do an FTP connection, it simply hangs. I *can* get to this site
using Windows, Linux, and regular FreeBSD (non-Gentoo) from the same
machine and on the same network, so it has to be something to do with
Gentoo/FreeBSD in particular.
If I can find a way past this problem, I have high hopes of setting up a
working desktop, and I'd be glad to contribute in whatever way I can to
the effort. Is the project active right now? I have not seen much
activity as of late. I do wish the best for this project, since I think
it is valuable!
Thanks! Joe
--
gentoo-bsd@gentoo.org mailing list
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-bsd] TCP (FTP) problem - some sites - while emerging
2007-04-18 19:13 [gentoo-bsd] TCP (FTP) problem - some sites - while emerging Joe Peterson
@ 2007-04-18 20:04 ` Ignacio Arqué-Latour
2007-04-18 20:28 ` Joe Peterson
0 siblings, 1 reply; 19+ messages in thread
From: Ignacio Arqué-Latour @ 2007-04-18 20:04 UTC (permalink / raw
To: gentoo-bsd
[-- Attachment #1: Type: text/plain, Size: 1741 bytes --]
Joe
> Is the project active right now?
Yes
> I have high hopes of setting up a working desktop, and I'd be glad to
contribute in whatever way I can to the effort.
OK, that is the attitude!
You are going to find plenty of help from the developers in our irc channel
(inclusive while you are installing), please meet us on:
channel: #gentoo-bsd
server: irc.freenode.net
I hope to see you soom in the channel ;-)
-- Ignacio
On 4/18/07, Joe Peterson <joe@skyrush.com> wrote:
>
> I am in the process of trying out Gentoo/FreeBSD - I love the idea of
> being able to use the very cool portage system on BSD!
>
> Anyway, I have tried the install twice, the second time doing the
> "emerge -e system" before the kernel build, but I am getting stuck at
> the same issue: I get TCP timeouts to some sites. This is such a
> bummer, and I am asking if anyone knows a solutuon. I have seen some
> other postings to this list that may be the same issue (packet mangling?).
>
> Anyway, as an example, I can never FTP to www.astron.com (where the
> "file" package, among other things, lives). Even if I use wget or lynx
> to do an FTP connection, it simply hangs. I *can* get to this site
> using Windows, Linux, and regular FreeBSD (non-Gentoo) from the same
> machine and on the same network, so it has to be something to do with
> Gentoo/FreeBSD in particular.
>
> If I can find a way past this problem, I have high hopes of setting up a
> working desktop, and I'd be glad to contribute in whatever way I can to
> the effort. Is the project active right now? I have not seen much
> activity as of late. I do wish the best for this project, since I think
> it is valuable!
>
> Thanks! Joe
> --
> gentoo-bsd@gentoo.org mailing list
>
>
[-- Attachment #2: Type: text/html, Size: 2359 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-bsd] TCP (FTP) problem - some sites - while emerging
2007-04-18 20:04 ` Ignacio Arqué-Latour
@ 2007-04-18 20:28 ` Joe Peterson
2007-04-19 6:27 ` Justin Wyer
0 siblings, 1 reply; 19+ messages in thread
From: Joe Peterson @ 2007-04-18 20:28 UTC (permalink / raw
To: gentoo-bsd
Great! That should be good to visit. Is there a time of day when
people are more likely to be on? I may try this evening (I'm in US
mountain time).
-Thanks, Joe
Ignacio Arqué-Latour wrote:
> Joe
>> Is the project active right now?
> Yes
>> I have high hopes of setting up a working desktop, and I'd be glad to
> contribute in whatever way I can to the effort.
> OK, that is the attitude!
> You are going to find plenty of help from the developers in our irc channel
> (inclusive while you are installing), please meet us on:
> channel: #gentoo-bsd
> server: irc.freenode.net
>
> I hope to see you soom in the channel ;-)
>
> -- Ignacio
>
> On 4/18/07, Joe Peterson <joe@skyrush.com> wrote:
>> I am in the process of trying out Gentoo/FreeBSD - I love the idea of
>> being able to use the very cool portage system on BSD!
>>
>> Anyway, I have tried the install twice, the second time doing the
>> "emerge -e system" before the kernel build, but I am getting stuck at
>> the same issue: I get TCP timeouts to some sites. This is such a
>> bummer, and I am asking if anyone knows a solutuon. I have seen some
>> other postings to this list that may be the same issue (packet mangling?).
>>
>> Anyway, as an example, I can never FTP to www.astron.com (where the
>> "file" package, among other things, lives). Even if I use wget or lynx
>> to do an FTP connection, it simply hangs. I *can* get to this site
>> using Windows, Linux, and regular FreeBSD (non-Gentoo) from the same
>> machine and on the same network, so it has to be something to do with
>> Gentoo/FreeBSD in particular.
>>
>> If I can find a way past this problem, I have high hopes of setting up a
>> working desktop, and I'd be glad to contribute in whatever way I can to
>> the effort. Is the project active right now? I have not seen much
>> activity as of late. I do wish the best for this project, since I think
>> it is valuable!
>>
>> Thanks! Joe
>> --
>> gentoo-bsd@gentoo.org mailing list
>>
>>
>
--
gentoo-bsd@gentoo.org mailing list
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-bsd] TCP (FTP) problem - some sites - while emerging
2007-04-18 20:28 ` Joe Peterson
@ 2007-04-19 6:27 ` Justin Wyer
2007-04-19 12:25 ` Joe Peterson
0 siblings, 1 reply; 19+ messages in thread
From: Justin Wyer @ 2007-04-19 6:27 UTC (permalink / raw
To: gentoo-bsd
[-- Attachment #1: Type: text/plain, Size: 2498 bytes --]
Hi Joe, if you check the list archives you will find a thread about the same
problem. It is essentially a TCP window scaling issue, you can check the
archive for details, I am unsure if a solution was found.
Cheers
Justin
On 4/18/07, Joe Peterson <joe@skyrush.com> wrote:
>
> Great! That should be good to visit. Is there a time of day when
> people are more likely to be on? I may try this evening (I'm in US
> mountain time).
>
> -Thanks, Joe
>
>
> Ignacio Arqué-Latour wrote:
> > Joe
> >> Is the project active right now?
> > Yes
> >> I have high hopes of setting up a working desktop, and I'd be glad to
> > contribute in whatever way I can to the effort.
> > OK, that is the attitude!
> > You are going to find plenty of help from the developers in our irc
> channel
> > (inclusive while you are installing), please meet us on:
> > channel: #gentoo-bsd
> > server: irc.freenode.net
> >
> > I hope to see you soom in the channel ;-)
> >
> > -- Ignacio
> >
> > On 4/18/07, Joe Peterson <joe@skyrush.com> wrote:
> >> I am in the process of trying out Gentoo/FreeBSD - I love the idea of
> >> being able to use the very cool portage system on BSD!
> >>
> >> Anyway, I have tried the install twice, the second time doing the
> >> "emerge -e system" before the kernel build, but I am getting stuck at
> >> the same issue: I get TCP timeouts to some sites. This is such a
> >> bummer, and I am asking if anyone knows a solutuon. I have seen some
> >> other postings to this list that may be the same issue (packet
> mangling?).
> >>
> >> Anyway, as an example, I can never FTP to www.astron.com (where the
> >> "file" package, among other things, lives). Even if I use wget or lynx
> >> to do an FTP connection, it simply hangs. I *can* get to this site
> >> using Windows, Linux, and regular FreeBSD (non-Gentoo) from the same
> >> machine and on the same network, so it has to be something to do with
> >> Gentoo/FreeBSD in particular.
> >>
> >> If I can find a way past this problem, I have high hopes of setting up
> a
> >> working desktop, and I'd be glad to contribute in whatever way I can to
> >> the effort. Is the project active right now? I have not seen much
> >> activity as of late. I do wish the best for this project, since I
> think
> >> it is valuable!
> >>
> >> Thanks! Joe
> >> --
> >> gentoo-bsd@gentoo.org mailing list
> >>
> >>
> >
> --
> gentoo-bsd@gentoo.org mailing list
>
>
[-- Attachment #2: Type: text/html, Size: 3437 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-bsd] TCP (FTP) problem - some sites - while emerging
2007-04-19 6:27 ` Justin Wyer
@ 2007-04-19 12:25 ` Joe Peterson
2007-04-19 14:32 ` Camille Huot
0 siblings, 1 reply; 19+ messages in thread
From: Joe Peterson @ 2007-04-19 12:25 UTC (permalink / raw
To: gentoo-bsd
There are a couple of threads about similar TCP issues, and one did
mention windowing. I did try turning off rfc1323 windowing per
instructions I saw, but it did not help. I also noted that Nathan Smith
(post: http://scriptstest.gentoo.org/gentoo-bsd/msg_00121.xml) also said
playing with and turning off windowing did not seem to help.
Nathan went further and captured packets, noting that ones from the
Gentoo/FreeBSD system had bad checksums (they were mangled somehow).
Another common experience is that regular FreeBSD does not have the
problem - it is somehow specific to Gentoo/FreeBSD. A reliable test
case I found is trying to FTP to ftp.astron.com - never works.
Thanks, Joe
Justin Wyer wrote:
> Hi Joe, if you check the list archives you will find a thread about the same
> problem. It is essentially a TCP window scaling issue, you can check the
> archive for details, I am unsure if a solution was found.
--
gentoo-bsd@gentoo.org mailing list
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-bsd] TCP (FTP) problem - some sites - while emerging
2007-04-19 12:25 ` Joe Peterson
@ 2007-04-19 14:32 ` Camille Huot
2007-04-19 22:50 ` Nathan Smith
0 siblings, 1 reply; 19+ messages in thread
From: Camille Huot @ 2007-04-19 14:32 UTC (permalink / raw
To: gentoo-bsd
[-- Attachment #1: Type: text/plain, Size: 588 bytes --]
2007/4/19, Joe Peterson <joe@skyrush.com>:
>
> A reliable test
> case I found is trying to FTP to ftp.astron.com - never works.
>
I'm experiencing the exact same problem. tcpdump show bad checksums like
Nathan, ftp ftp.astron.com doesn't work.
My nic is:
em0: <Intel(R) PRO/1000 Network Connection Version - 6.2.9> port
0xcc00-0xcc3f mem 0xdfde0000-0xdfdfffff irq 18 at device 2.0 on pci1
em0: Ethernet address: 00:11:09:35:c3:81
Using a vanilla FreeBSD 6.2 kernel on Gentoo/FreeBSD, networking is
working. On #gentoo-bsd we're trying to find the origin of the issue.
--
Camille Huot
[-- Attachment #2: Type: text/html, Size: 1308 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-bsd] TCP (FTP) problem - some sites - while emerging
2007-04-19 14:32 ` Camille Huot
@ 2007-04-19 22:50 ` Nathan Smith
2007-04-20 13:44 ` Timothy Redaelli
` (2 more replies)
0 siblings, 3 replies; 19+ messages in thread
From: Nathan Smith @ 2007-04-19 22:50 UTC (permalink / raw
To: gentoo-bsd
On 4/19/07, Camille Huot <cam@gentoo.org> wrote:
> 2007/4/19, Joe Peterson <joe@skyrush.com>:
> > A reliable test
> > case I found is trying to FTP to ftp.astron.com - never works.
> >
>
> I'm experiencing the exact same problem. tcpdump show bad checksums like
> Nathan, ftp ftp.astron.com doesn't work.
>
> My nic is:
> em0: <Intel(R) PRO/1000 Network Connection Version - 6.2.9> port
> 0xcc00-0xcc3f mem 0xdfde0000-0xdfdfffff irq 18 at device 2.0 on pci1
> em0: Ethernet address: 00:11:09:35:c3:81
>
> Using a vanilla FreeBSD 6.2 kernel on Gentoo/FreeBSD, networking is working.
> On #gentoo-bsd we're trying to find the origin
> of the issue.
> --
> Camille Huot
Victory!
Here is how I compiled a Gentoo/FreeBSD kernel which does not produce
broken tcp packets:
1. I emerged =sys-devel/gcc-3*.
2. Used gcc-config to set gcc-3 as the system compiler
3. Edited the freebsd-sources ebuild to remove the gcc41 patch.
4. Emerged freebsd-sources
5. Compiled the kernel and rebooted to find I could make normal TCP
connections to anyone, anywhere.
So gcc-4.1 seems to be the culprit here. I will check FreeBSD's
archives to see if this has come up, but I wonder if they have moved
to gcc4 yet anyway. So, give what I posted above a try an let me know
how it worked for you.
--
Nathan Smith
ndansmith@gmail.com
--
gentoo-bsd@gentoo.org mailing list
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-bsd] TCP (FTP) problem - some sites - while emerging
2007-04-19 22:50 ` Nathan Smith
@ 2007-04-20 13:44 ` Timothy Redaelli
2007-04-20 18:28 ` Nathan Smith
2007-04-23 2:05 ` Joe Peterson
2007-04-23 5:29 ` Joe Peterson
2 siblings, 1 reply; 19+ messages in thread
From: Timothy Redaelli @ 2007-04-20 13:44 UTC (permalink / raw
To: gentoo-bsd
[-- Attachment #1: Type: text/plain, Size: 1147 bytes --]
Nathan Smith ha scritto:
> On 4/19/07, Camille Huot <cam@gentoo.org> wrote:
>> 2007/4/19, Joe Peterson <joe@skyrush.com>:
>> > A reliable test
>> > case I found is trying to FTP to ftp.astron.com - never works.
>> >
>>
>> I'm experiencing the exact same problem. tcpdump show bad checksums like
>> Nathan, ftp ftp.astron.com doesn't work.
>>
>> My nic is:
>> em0: <Intel(R) PRO/1000 Network Connection Version - 6.2.9> port
>> 0xcc00-0xcc3f mem 0xdfde0000-0xdfdfffff irq 18 at device 2.0 on pci1
>> em0: Ethernet address: 00:11:09:35:c3:81
>>
>> Using a vanilla FreeBSD 6.2 kernel on Gentoo/FreeBSD, networking is
>> working.
>> On #gentoo-bsd we're trying to find the origin
>> of the issue.
>> --
>> Camille Huot
>
> Victory!
Can you try to recompile the kernel with gcc 4 but with -O0?
cd /usr/src/sys/i386/compile/GENERIC ; COPTFLAGS=-O0 make
Thanks
--
Timothy `Drizzt` Redaelli - http://dev.gentoo.org/~drizzt/
FreeSBIE Developer, Gentoo Developer, GUFI Staff
There are two major products that come out of Berkeley: LSD and UNIX.
We don't believe this to be a coincidence. -- Jeremy S. Anderson
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-bsd] TCP (FTP) problem - some sites - while emerging
2007-04-20 13:44 ` Timothy Redaelli
@ 2007-04-20 18:28 ` Nathan Smith
2007-04-20 18:43 ` Joe Peterson
` (3 more replies)
0 siblings, 4 replies; 19+ messages in thread
From: Nathan Smith @ 2007-04-20 18:28 UTC (permalink / raw
To: gentoo-bsd
On 4/20/07, Timothy Redaelli <drizzt@gentoo.org> wrote:
> Can you try to recompile the kernel with gcc 4 but with -O0?
> cd /usr/src/sys/i386/compile/GENERIC ; COPTFLAGS=-O0 make
I can confirm that compiling with gcc-4 and COPTFLAGS=-O0 produces a
working kernel (i.e. no malformed tcp packets). This was after I
found that the gcc41 patch is also not causing the problem. After
getting a working kernel with gcc-4 I went back and used the default
COPTFLAGS again and it broke again. So I think this gives us a fair
amount of certainty that the problem is caused by gcc-4 optimizations.
As to the reason why some FreeBSD users experience this and other do
not, I am not sure. The symptoms (broken TCP traffic to some sites)
depend entirely upon the sites you are connecting to and how your
connections are routed. So it is possible that somebody could have
this problem by not realize it.
However, using tcpdump I can tell that some machines apparently do not
experience this problem, so it may be processor-specific (which makes
sense given that it is an optimization problem). I use a Pentium M.
What are other people using that have been affected by the problem?
--
Nathan Smith
ndansmith@gmail.com
--
gentoo-bsd@gentoo.org mailing list
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-bsd] TCP (FTP) problem - some sites - while emerging
2007-04-20 18:28 ` Nathan Smith
@ 2007-04-20 18:43 ` Joe Peterson
2007-04-20 22:59 ` Camille Huot
` (2 subsequent siblings)
3 siblings, 0 replies; 19+ messages in thread
From: Joe Peterson @ 2007-04-20 18:43 UTC (permalink / raw
To: gentoo-bsd
Nathan, thanks so much for all the effort you've put into this. I am
quite relieved we now know more about it and that it's no longer a
complete mystery.
As a data point, I have the issue (my "test site" that is unreachable is
ftp.astron.com), and I am on a Fujitsu Lifebook P7120D, which has this
processor:
* Intel Pentium M Processor Ultra Low Voltage 753 (1.20 GHz, 2 MB L2
cache, 400 MHz FSB)
-Joe
Nathan Smith wrote:
> On 4/20/07, Timothy Redaelli <drizzt@gentoo.org> wrote:
>> Can you try to recompile the kernel with gcc 4 but with -O0?
>> cd /usr/src/sys/i386/compile/GENERIC ; COPTFLAGS=-O0 make
>
> I can confirm that compiling with gcc-4 and COPTFLAGS=-O0 produces a
> working kernel (i.e. no malformed tcp packets). This was after I
> found that the gcc41 patch is also not causing the problem. After
> getting a working kernel with gcc-4 I went back and used the default
> COPTFLAGS again and it broke again. So I think this gives us a fair
> amount of certainty that the problem is caused by gcc-4 optimizations.
>
> As to the reason why some FreeBSD users experience this and other do
> not, I am not sure. The symptoms (broken TCP traffic to some sites)
> depend entirely upon the sites you are connecting to and how your
> connections are routed. So it is possible that somebody could have
> this problem by not realize it.
>
> However, using tcpdump I can tell that some machines apparently do not
> experience this problem, so it may be processor-specific (which makes
> sense given that it is an optimization problem). I use a Pentium M.
> What are other people using that have been affected by the problem?
>
--
gentoo-bsd@gentoo.org mailing list
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-bsd] TCP (FTP) problem - some sites - while emerging
2007-04-20 18:28 ` Nathan Smith
2007-04-20 18:43 ` Joe Peterson
@ 2007-04-20 22:59 ` Camille Huot
2007-04-22 15:52 ` Peter Weller
2007-04-23 4:41 ` Nicholas Steicke
3 siblings, 0 replies; 19+ messages in thread
From: Camille Huot @ 2007-04-20 22:59 UTC (permalink / raw
To: gentoo-bsd
[-- Attachment #1: Type: text/plain, Size: 1051 bytes --]
2007/4/20, Nathan Smith <ndansmith@gmail.com>:
>
> The symptoms (broken TCP traffic to some sites)
> depend entirely upon the sites you are connecting to and how your
> connections are routed.
We saw that affected users are sending TCP data with bad checksum
(this could apply to udp and/or icmp too? anyone to check?).
Then, some router on the Internet can decide to drop such bad packet. I
noticed Linux doesn't drop but Checkpoint does.
Another point, note that the bad checksum is always good_checksum+0100
"""
[bad tcp cksum 3de5 (->3ce5)!]
[bad tcp cksum 322d (->312d)!]
[bad tcp cksum 25ad (->24ad)!]
"""
I guess this is the checksum algorithm that is incompatible with -O2. Even
if I won't check the source code :p
However, using tcpdump I can tell that some machines apparently do not
> experience this problem, so it may be processor-specific (which makes
> sense given that it is an optimization problem). I use a Pentium M.
> What are other people using that have been affected by the problem?
Mine is pentium-4
--
Camille Huot
[-- Attachment #2: Type: text/html, Size: 1926 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-bsd] TCP (FTP) problem - some sites - while emerging
2007-04-20 18:28 ` Nathan Smith
2007-04-20 18:43 ` Joe Peterson
2007-04-20 22:59 ` Camille Huot
@ 2007-04-22 15:52 ` Peter Weller
2007-04-23 4:41 ` Nicholas Steicke
3 siblings, 0 replies; 19+ messages in thread
From: Peter Weller @ 2007-04-22 15:52 UTC (permalink / raw
To: gentoo-bsd
[-- Attachment #1: Type: text/plain, Size: 159 bytes --]
I have a Pentium Coppermine.
cam: I know that when I *do* experience problems and can't connect to
particular sites, I can't ping them, either...
welp
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 187 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-bsd] TCP (FTP) problem - some sites - while emerging
2007-04-19 22:50 ` Nathan Smith
2007-04-20 13:44 ` Timothy Redaelli
@ 2007-04-23 2:05 ` Joe Peterson
2007-04-23 5:29 ` Joe Peterson
2 siblings, 0 replies; 19+ messages in thread
From: Joe Peterson @ 2007-04-23 2:05 UTC (permalink / raw
To: gentoo-bsd
Hi Nathan, curios: did you get errors like the following when using
gcc-config to switch to gcc-3?:
/usr/bin/gcc-config: line 390: eend: command not found
/usr/bin/gcc-config: line 394: ewarn: command not found
/usr/bin/gcc-config: line 395: ewarn: command not found
/usr/bin/gcc-config: line 397: ewarn: command not found
These scripts are in /lib/rcscripts/bin, but strange that the path is
not set to find them.
-Joe
Nathan Smith wrote:
> 1. I emerged =sys-devel/gcc-3*.
> 2. Used gcc-config to set gcc-3 as the system compiler
> 3. Edited the freebsd-sources ebuild to remove the gcc41 patch.
> 4. Emerged freebsd-sources
> 5. Compiled the kernel and rebooted to find I could make normal TCP
> connections to anyone, anywhere.
>
> So gcc-4.1 seems to be the culprit here. I will check FreeBSD's
> archives to see if this has come up, but I wonder if they have moved
> to gcc4 yet anyway. So, give what I posted above a try an let me know
> how it worked for you.
>
--
gentoo-bsd@gentoo.org mailing list
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-bsd] TCP (FTP) problem - some sites - while emerging
2007-04-20 18:28 ` Nathan Smith
` (2 preceding siblings ...)
2007-04-22 15:52 ` Peter Weller
@ 2007-04-23 4:41 ` Nicholas Steicke
3 siblings, 0 replies; 19+ messages in thread
From: Nicholas Steicke @ 2007-04-23 4:41 UTC (permalink / raw
To: gentoo-bsd
Nathan Smith wrote:
> On 4/20/07, Timothy Redaelli <drizzt@gentoo.org> wrote:
>> Can you try to recompile the kernel with gcc 4 but with -O0?
>> cd /usr/src/sys/i386/compile/GENERIC ; COPTFLAGS=-O0 make
>
> I can confirm that compiling with gcc-4 and COPTFLAGS=-O0 produces a
> working kernel (i.e. no malformed tcp packets). This was after I
> found that the gcc41 patch is also not causing the problem. After
> getting a working kernel with gcc-4 I went back and used the default
> COPTFLAGS again and it broke again. So I think this gives us a fair
> amount of certainty that the problem is caused by gcc-4 optimizations.
>
> As to the reason why some FreeBSD users experience this and other do
> not, I am not sure. The symptoms (broken TCP traffic to some sites)
> depend entirely upon the sites you are connecting to and how your
> connections are routed. So it is possible that somebody could have
> this problem by not realize it.
>
> However, using tcpdump I can tell that some machines apparently do not
> experience this problem, so it may be processor-specific (which makes
> sense given that it is an optimization problem). I use a Pentium M.
> What are other people using that have been affected by the problem?
>
Hey, i had this issue on a Celeron something (the one prior to the
coppermine series).
After reading a bug on the FreeBSD site (
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/34756 ) i worked out i
could connect to anything with an ip matching
[1-209].[1-209].[1-209].[1-209] (ie. if any section of an ip was >=210,
it would time out) - i tried compiling with '-O0' however the kernel
still didnt work, even after doing 2x 'emerge -e system' (after much
pain getting all the packages onto the box) -- any help getting gfbsd
working would be great!
--
--------------------------------
Email: narthollis@narthollis.net
--
gentoo-bsd@gentoo.org mailing list
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-bsd] TCP (FTP) problem - some sites - while emerging
2007-04-19 22:50 ` Nathan Smith
2007-04-20 13:44 ` Timothy Redaelli
2007-04-23 2:05 ` Joe Peterson
@ 2007-04-23 5:29 ` Joe Peterson
2007-04-24 0:02 ` Nathan Smith
2 siblings, 1 reply; 19+ messages in thread
From: Joe Peterson @ 2007-04-23 5:29 UTC (permalink / raw
To: gentoo-bsd
BTW, I have recompiled the kernel (did not remove any patches - left the
source as-is) under gcc-3, and my TCP problem is gone.
-Joe
Nathan Smith wrote:
> On 4/19/07, Camille Huot <cam@gentoo.org> wrote:
>> 2007/4/19, Joe Peterson <joe@skyrush.com>:
>>> A reliable test
>>> case I found is trying to FTP to ftp.astron.com - never works.
>>>
>> I'm experiencing the exact same problem. tcpdump show bad checksums like
>> Nathan, ftp ftp.astron.com doesn't work.
>>
>> My nic is:
>> em0: <Intel(R) PRO/1000 Network Connection Version - 6.2.9> port
>> 0xcc00-0xcc3f mem 0xdfde0000-0xdfdfffff irq 18 at device 2.0 on pci1
>> em0: Ethernet address: 00:11:09:35:c3:81
>>
>> Using a vanilla FreeBSD 6.2 kernel on Gentoo/FreeBSD, networking is working.
>> On #gentoo-bsd we're trying to find the origin
>> of the issue.
>> --
>> Camille Huot
>
> Victory!
>
> Here is how I compiled a Gentoo/FreeBSD kernel which does not produce
> broken tcp packets:
>
> 1. I emerged =sys-devel/gcc-3*.
> 2. Used gcc-config to set gcc-3 as the system compiler
> 3. Edited the freebsd-sources ebuild to remove the gcc41 patch.
> 4. Emerged freebsd-sources
> 5. Compiled the kernel and rebooted to find I could make normal TCP
> connections to anyone, anywhere.
>
> So gcc-4.1 seems to be the culprit here. I will check FreeBSD's
> archives to see if this has come up, but I wonder if they have moved
> to gcc4 yet anyway. So, give what I posted above a try an let me know
> how it worked for you.
>
--
gentoo-bsd@gentoo.org mailing list
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-bsd] TCP (FTP) problem - some sites - while emerging
2007-04-23 5:29 ` Joe Peterson
@ 2007-04-24 0:02 ` Nathan Smith
2007-04-25 3:30 ` Joe Peterson
` (2 more replies)
0 siblings, 3 replies; 19+ messages in thread
From: Nathan Smith @ 2007-04-24 0:02 UTC (permalink / raw
To: gentoo-bsd
On 4/22/07, Joe Peterson <joe@skyrush.com> wrote:
> BTW, I have recompiled the kernel (did not remove any patches - left the
> source as-is) under gcc-3, and my TCP problem is gone.
That is good to know. We now know that over-optimization in gcc-4 is
the source of the problem (somewhere between -O0 and -O2). So if you
build the kernel with gcc-4 and
# COPTFLAGS=-O0 make
it should also work. Joe, if you have time, let me know about how
that works. Thanks.
--
Nathan Smith
ndansmith@gmail.com
--
gentoo-bsd@gentoo.org mailing list
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-bsd] TCP (FTP) problem - some sites - while emerging
2007-04-24 0:02 ` Nathan Smith
@ 2007-04-25 3:30 ` Joe Peterson
2007-04-25 9:12 ` Camille Huot
2007-05-02 3:53 ` [gentoo-bsd] News on TCP checksum bug: CHOST="i686-gentoo-freebsd6.2" works! Joe Peterson
2 siblings, 0 replies; 19+ messages in thread
From: Joe Peterson @ 2007-04-25 3:30 UTC (permalink / raw
To: gentoo-bsd
No go. I recompiled with -O0 & gcc-4.1.2, and now I cannot successfully
do any network communication. Even "ping localhost" gives:
PING localhost (127.0.0.1): 56 data bytes
^C
--- localhost ping statistics ---
4 packets transmitted, 0 packets received, 100% packet loss
-Joe
Nathan Smith wrote:
> On 4/22/07, Joe Peterson <joe@skyrush.com> wrote:
>> BTW, I have recompiled the kernel (did not remove any patches - left the
>> source as-is) under gcc-3, and my TCP problem is gone.
>
> That is good to know. We now know that over-optimization in gcc-4 is
> the source of the problem (somewhere between -O0 and -O2). So if you
> build the kernel with gcc-4 and
>
> # COPTFLAGS=-O0 make
>
> it should also work. Joe, if you have time, let me know about how
> that works. Thanks.
>
--
gentoo-bsd@gentoo.org mailing list
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-bsd] TCP (FTP) problem - some sites - while emerging
2007-04-24 0:02 ` Nathan Smith
2007-04-25 3:30 ` Joe Peterson
@ 2007-04-25 9:12 ` Camille Huot
2007-05-02 3:53 ` [gentoo-bsd] News on TCP checksum bug: CHOST="i686-gentoo-freebsd6.2" works! Joe Peterson
2 siblings, 0 replies; 19+ messages in thread
From: Camille Huot @ 2007-04-25 9:12 UTC (permalink / raw
To: gentoo-bsd
[-- Attachment #1: Type: text/plain, Size: 174 bytes --]
2007/4/24, Nathan Smith <ndansmith@gmail.com>:
>
> if you build the kernel with gcc-4 and
>
> # COPTFLAGS=-O0 make
>
> it should also work.
Works for me.
--
Camille Huot
[-- Attachment #2: Type: text/html, Size: 510 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* [gentoo-bsd] News on TCP checksum bug: CHOST="i686-gentoo-freebsd6.2" works!
2007-04-24 0:02 ` Nathan Smith
2007-04-25 3:30 ` Joe Peterson
2007-04-25 9:12 ` Camille Huot
@ 2007-05-02 3:53 ` Joe Peterson
2 siblings, 0 replies; 19+ messages in thread
From: Joe Peterson @ 2007-05-02 3:53 UTC (permalink / raw
To: gentoo-bsd
More news on the TCP checksum issue: compiling the kernel with
CHOST="i686-gentoo-freebsd6.2" and gcc-4.1.2 seems to make the problem
go away. I have not done much testing, and I have not finished my full
system recompile at i686 (with gcc-4.1.2), but at least the reliable
test case (ftp.astron.com) works with this config.
So we now have another good data point for this problem.
-Joe
--
gentoo-bsd@gentoo.org mailing list
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2007-05-02 3:53 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-18 19:13 [gentoo-bsd] TCP (FTP) problem - some sites - while emerging Joe Peterson
2007-04-18 20:04 ` Ignacio Arqué-Latour
2007-04-18 20:28 ` Joe Peterson
2007-04-19 6:27 ` Justin Wyer
2007-04-19 12:25 ` Joe Peterson
2007-04-19 14:32 ` Camille Huot
2007-04-19 22:50 ` Nathan Smith
2007-04-20 13:44 ` Timothy Redaelli
2007-04-20 18:28 ` Nathan Smith
2007-04-20 18:43 ` Joe Peterson
2007-04-20 22:59 ` Camille Huot
2007-04-22 15:52 ` Peter Weller
2007-04-23 4:41 ` Nicholas Steicke
2007-04-23 2:05 ` Joe Peterson
2007-04-23 5:29 ` Joe Peterson
2007-04-24 0:02 ` Nathan Smith
2007-04-25 3:30 ` Joe Peterson
2007-04-25 9:12 ` Camille Huot
2007-05-02 3:53 ` [gentoo-bsd] News on TCP checksum bug: CHOST="i686-gentoo-freebsd6.2" works! Joe Peterson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox