> On March 22, 2017, 2:45 p.m., Till Toenshoff wrote: > > src/linux/ldcache.cpp > > Line 120 (original), 120 (patched) > > <https://reviews.apache.org/r/55065/diff/1/?file=1592794#file1592794line120> > > > > Can you elaborate why this change is safe for all systems? > > Ayanampudi Varsha wrote: > We have tried this on Big endian system where 16 bit flag was causing > issue. > Test case LdcacheTest.Parse failed at condition ASSERT_GT(cache->size(), > 1u); as size was returned as 0. This happens because the 16 bits after the > field "flags" is unused. > On x86_64, I have verified that this "cache->size()" is same with 16 bit > and 32 bit flag. > Observed that the other fields in structure are all 32bit/64bit. > An alternative would be to make changes only specific to s390x by putting > a condition. Please suggest > > Till Toenshoff wrote: > You may actually have found a bug in our ldcache parsing. After looking > into the glibc sources, I think this field should have been 32bit also for > x86_64 instead of 16bit - I suspect missing struct-packing for this bug to > not have surfaced earlier. For confirming this without mixing it with your > platform specific docker-repository change, I would like you to split this > patch into two. > > So please add another patch that only fixes `flags` attribute size into > 32bit. Please make sure you add the following reviewers: tillt, klueska. > > Remove that 32bit change from this patch and update it according to my > and Kevin's review comments. > > Thanks a bunch for your work - this is highly appreciated. > > Till Toenshoff wrote: > Ow, for further reference of this `flags` change, here are the internal > glibc structures: > https://github.com/lattera/glibc/blob/master/sysdeps/generic/dl-cache.h#L80 > > Ayanampudi Varsha wrote: > As I am planning to drop the docker_registry customization change, can I > resubmit removing docker_registry change in same patch and continue in the > same review board ticket. please suggest > > Till Toenshoff wrote: > Certainly Ayanampudi. Please do as you suggested...
I have updated the ticket to have only flags 32 bit change. - Ayanampudi ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/55065/#review169708 ----------------------------------------------------------- On March 30, 2017, 11:29 a.m., Ayanampudi Varsha wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/55065/ > ----------------------------------------------------------- > > (Updated March 30, 2017, 11:29 a.m.) > > > Review request for mesos, Till Toenshoff and Vinod Kone. > > > Bugs: MESOS-6742 > https://issues.apache.org/jira/browse/MESOS-6742 > > > Repository: mesos > > > Description > ------- > > Added support for s390x architecture > > > Diffs > ----- > > src/linux/ldcache.cpp 6260496672cd0226a24ea1b34003a48af9678a63 > > > Diff: https://reviews.apache.org/r/55065/diff/2/ > > > Testing > ------- > > make check > make check GTEST_FILTER="LdcacheTest.Parse" > > > Thanks, > > Ayanampudi Varsha > >