1 |
On 02/13/2016 12:32 PM, Alex McWhirter wrote: |
2 |
> On 02/13/2016 06:25 AM, Mike Frysinger wrote: |
3 |
>> On 13 Feb 2016 04:26, Alex McWhirter wrote: |
4 |
>>> Well, time for more fun |
5 |
>>> |
6 |
>>> Copying over the 3.4.14 kernel from the install cd will make rsync work. |
7 |
>>> |
8 |
>>> Kernel 4.1.12 rsync is dead |
9 |
>>> Kernel 4.1.15 rsync is dead |
10 |
>>> |
11 |
>>> Since all sparc profiles use a 64bit kernel i would be heavily |
12 |
>>> interested in what kernel / options you are running. |
13 |
>> Linux bender 3.17.2 #2 SMP Tue Nov 11 18:56:20 UTC 2014 sparc64 sun4v UltraSparc T1 (Niagara) GNU/Linux |
14 |
>> |
15 |
>> [ 0.000000] Linux version 3.17.2 (root@bender) (gcc version 4.7.3 (Gentoo 4.7.3-r1 p1.5, pie-0.5.5) ) #2 SMP Tue Nov 11 18:56:20 UTC 2014 |
16 |
>> |
17 |
>> config is attached |
18 |
>> |
19 |
>>> Using the kernel config from the CD on a newer kernel still results in a |
20 |
>>> broken rsync. So the kernel is either broken somehow or there's an |
21 |
>>> option somewhere that genkernel, the cd config, and myself are missing. |
22 |
>> or the toolchain is unhappy |
23 |
>> -mike |
24 |
> It's fairly likely that you will break rsync as well if you upgrade to a |
25 |
> 4.X kernel as i have experienced this with an official install on |
26 |
> another box. I'm working on building a 3.14 kernel with a newer |
27 |
> toolchain to see what happens. 4.4.1 still has this issue, i may try |
28 |
> vanilla sources as well after 3.14. |
29 |
> |
30 |
> I suppose its also likely that this could be a bug in rsync as well that |
31 |
> may have been relying on a bug in older kernels which was later fixed. |
32 |
> But this is all speculation at this point. |
33 |
> |
34 |
|
35 |
3.14.58 works fine when built with the latest toolchain. I had to use |
36 |
the CD config, as genkernel doesn't have correct sparc settings and i |
37 |
didn't feel like manually configuring it just to see if rsync worked |
38 |
afterwards. The fun part will be finding which exact kernel introduced |
39 |
the breakage, or perhaps it could be an rsync bug as the rest of the |
40 |
system works fine on newer kernels. Even if it is an issue with rsync, |
41 |
finding the kernel the breaks this functionality might help narrow down |
42 |
the issue. |
43 |
|
44 |
It looks like were dying on a select syscall. My only thought is that |
45 |
maybe rsync is opening what it thinks is the correct file descriptor, |
46 |
but it's actually getting a different file descriptor. It could be |
47 |
requesting the wrong file descriptor entirely. Again, more speculation |
48 |
at this point. My experience with strace / gdb is somewhat limited as i |
49 |
come from a Solaris / BSD background. |
50 |
|
51 |
Attached is the strace log from doing "rsync -a /usr/portage/* |
52 |
/root/portage" |