Possible corrupted file in source code

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Possible corrupted file in source code

Stefan Zbinden
Hi

Sorry for writing this email to the webmaster.

I tried to compile grass 76.

I downloaded the "grass-7.6.0.tar.gz". When I unpack it on a CentOS 7 (latest) I get  errors. If I unpack it on a Mac obviously everything works fine...
During the compile process I found a corrupted file: imagery/i.atcorr/abstra.cpp. I found binary data in it. Have a look to the picture.

The same happens when I download "Download latest 7.6-svn code (SVN)" direct from the subversion repository. The same file is corrupt.

When browsing the source code "7.6-svn source code browser" then the file looks correct ....

Maybe I am crazy ....

Please would you forward this mail to the correct person ...

Many thanks
Stefan Zbinden

_______________________________________________
grass-web mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-web

IMG_4185.jpg (2M) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Possible corrupted file in source code

Markus Neteler
Hi Stefan,

thanks for the notification.

Can you please tell me in which line you see the binary part (your
screenshot does not show the lines).

I shall investigate then.

Thanks
Markus

On Wed, Mar 13, 2019 at 10:36 AM Stefan Zbinden
<[hidden email]> wrote:

>
> Hi
>
> Sorry for writing this email to the webmaster.
>
> I tried to compile grass 76.
>
> I downloaded the "grass-7.6.0.tar.gz". When I unpack it on a CentOS 7 (latest) I get  errors. If I unpack it on a Mac obviously everything works fine...
> During the compile process I found a corrupted file: imagery/i.atcorr/abstra.cpp. I found binary data in it. Have a look to the picture.
>
> The same happens when I download "Download latest 7.6-svn code (SVN)" direct from the subversion repository. The same file is corrupt.
>
> When browsing the source code "7.6-svn source code browser" then the file looks correct ....
>
> Maybe I am crazy ....
>
> Please would you forward this mail to the correct person ...
>
> Many thanks
> Stefan Zbinden
> _______________________________________________
> grass-web mailing list
> [hidden email]
> https://lists.osgeo.org/mailman/listinfo/grass-web



--
Markus Neteler, PhD
https://www.mundialis.de - free data with free software
https://grass.osgeo.org
https://courses.neteler.org/blog
_______________________________________________
grass-web mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-web
Reply | Threaded
Open this post in threaded view
|

Re: Possible corrupted file in source code

Markus Neteler
Hi,

I have downloaded
wget https://grass.osgeo.org/grass76/source/grass-7.6.0.tar.gz
tar xvfz grass-7.6.0.tar.gz

and do not find any binary code in Lines 9209, 10657:

head -n 9215  grass-7.6.0/imagery/i.atcorr/abstra.cpp  | tail -n 100
                     17490.f,
                     0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 17490.f, 17500.f, 0.f, 0.f, 0.f, 0.f, 0.f,
                     0.f,
                     17500.f, 17510.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 17510.f, 17520.f, 0.f,
                     0.f,
                     0.f, 0.f, 0.f, 0.f, 17520.f, 17530.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
                     17530.f,
                     17540.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 17540.f, 17550.f, 0.f, 0.f, 0.f,
                     0.f,
                     0.f, 0.f, 17550.f, 17560.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 17560.f,
                     17570.f,
                     0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 17570.f, 17580.f, 0.f, 0.f, 0.f, 0.f, 0.f,
                     0.f,
                     17580.f, 17590.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 17590.f, 17600.f, 0.f,
                     0.f,
                     0.f, 0.f, 0.f, 0.f, 17600.f, 17610.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
                     17610.f,
                     17620.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 17620.f, 17630.f, 0.f, 0.f, 0.f,
                     0.f,
                     0.f, 0.f, 17630.f, 17640.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 17640.f,
                     17650.f,
                     0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 17650.f, 17660.f, 0.f, 0.f, 0.f, 0.f, 0.f,
                     0.f,
                     17660.f, 17670.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 17670.f, 17680.f, 0.f,
                     0.f,
                     0.f, 0.f, 0.f, 0.f, 17680.f, 17690.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
                     17690.f,
                     17700.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 17700.f, 17710.f, 0.f, 0.f, 0.f,
                     0.f,
                     0.f, 0.f, 17710.f, 17720.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 17720.f,
                     17730.f,
                     0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 17730.f, 17740.f, 0.f, 0.f, 0.f, 0.f, 0.f,
                     0.f,
                     17740.f, 17750.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 17750.f, 17760.f, 0.f,
                     0.f,
                     0.f, 0.f, 0.f, 0.f, 17760.f, 17770.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
                     17770.f,
                     17780.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 17780.f, 17790.f, 0.f, 0.f, 0.f,
                     0.f,
                     0.f, 0.f, 17790.f, 17800.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 17800.f,
                     17810.f,
                     0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 17810.f, 17820.f, 0.f, 0.f, 0.f, 0.f, 0.f,
                     0.f,
                     17820.f, 17830.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 17830.f, 17840.f, 0.f,
                     0.f,
                     0.f, 0.f, 0.f, 0.f, 17840.f, 17850.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
                     17850.f,
                     17860.f
    };

    /* oxygen (15300 - 17870 cm-1) */
    for(int i = 0; i < 8; i++) a[i] = acr[i + (inu << 3) - 8];
}    /* oxyg6 */

void oxyg5 (double a[8], const long int inu)
{
    static const float acr[2048] = { 0.f, 0.f, 0.f, 0.f, 0.f,
                     0.f, 12740.f, 12750.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 12750.f, 12760.f,
                     0.f,
                     0.f, 0.f, 0.f, 0.f, 0.f, 12760.f, 12770.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
                     12770.f, 12780.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 12780.f, 12790.f, 0.f,
                     0.f,
                     0.f, 0.f, 0.f, 0.f, 12790.f, 12800.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f,
                     12800.f,

                     12810.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 12810.f, 12820.f, 0.f, 0.f, 0.f,
                     0.f,
                     0.f, 0.f, 12820.f, 12830.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 12830.f,
                     12840.f,
                     1.4615e-8f, .036385f, .0669f, -2.676e-4f, .064873f, -2.6352e-4f,
                     12840.f, 12850.f, 1.7551e-8f, .018194f, .063056f, -2.5222e-4f, .061029f,
                     -2.4814e-4f, 12850.f, 12860.f, 5.5571e-8f, .034936f, .060516f,
                     -2.4079e-4f, .058832f, -2.3863e-4f, 12860.f, 12870.f, 1.1652e-7f,
                     .036823f, .057157f, -2.2751e-4f, .055426f, -2.2511e-4f, 12870.f,

                     12880.f, 2.2758e-7f, .037524f, .05406f, -2.1528e-4f, .052277f,
                     -2.1261e-4f, 12880.f, 12890.f, 4.1844e-7f, .044301f, .051439f,
                     -2.03e-4f, .050656f, -2.0073e-4f, 12890.f, 12900.f, 1.1196e-6f,
                     .064417f, .048398f, -1.9212e-4f, .047119f, -1.8843e-4f, 12900.f,
                     12910.f, 1.3443e-6f, .056296f, .046024f, -1.7943e-4f, .045942f,
                     -1.7773e-4f, 12910.f, 12920.f, 1.9719e-6f, .064603f, .044605f,
                     -1.7094e-4f, .044515f, -1.7298e-4f, 12920.f, 12930.f, 2.6027e-6f,
                     .060089f, .042943f, -1.6604e-4f, .04177f, -1.6646e-4f, 12930.f, 12940.f,
                     5.7954e-6f, .10762f, .040374f, -1.577e-4f, .038909f, -1.5614e-4f,
                     12940.f, 12950.f, 4.3014e-6f, .084704f, .042188f, -1.5762e-4f, .040357f,
                     -1.5977e-4f, 12950.f, 12960.f, 7.9614e-6f, .097284f, .041471f,
                     -1.6264e-4f, .038436f, -1.5588e-4f, 12960.f, 12970.f, 1.7998e-5f,
                     .071534f, .03844f, -1.5372e-4f, .036186f, -1.4871e-4f, 12970.f, 12980.f,
                     2.7733e-5f, .06553f, .0349f, -1.3823e-4f, .034326f, -1.4018e-4f,
                     12980.f, 12990.f, 8.7111e-5f, .082142f, .031863f, -1.2227e-4f, .033009f,
                     -1.3017e-4f, 12990.f, 1.3e4f, 5.9912e-5f, .064608f, .031064f,
                     -1.1475e-4f, .036751f, -1.2672e-4f, 1.3e4f, 13010.f, 2.6987e-4f,
                     .037736f, .026012f, -1.039e-4f, .024588f, -9.7152e-5f, 13010.f, 13020.f,
                     5.9914e-4f, .037261f, .022365f, -8.9458e-5f, .020337f, -8.5375e-5f,
                     13020.f, 13030.f, .0012384f, .038141f, .019f, -7.5998e-5f, .016972f,
                     -7.1916e-5f, 13030.f, 13040.f, .0023802f, .03944f, .015907f,
                     -6.3629e-5f, .01388f, -5.9546e-5f, 13040.f, 13050.f, .0078692f,
                     .059793f, .01191f, -4.6882e-5f, .010043f, -4.3832e-5f, 13050.f, 13060.f,
                     .014112f, .0632f, .0088039f, -3.4775e-5f, .0068655f, -3.1246e-5f,
                     13060.f, 13070.f, .01506f, .044198f, .0062748f, -2.5099e-5f, .0042475f,
[mneteler@oboe  ]$


and

head -n 10700  grass-7.6.0/imagery/i.atcorr/abstra.cpp  | tail -n 10
    as.ttozon = as.dtozon;
    as.utozon = 1;
    as.ttniox = as.dtniox;
    as.utniox = 1;
    as.ttmeth = as.dtmeth;
    as.utmeth = 1;
    as.ttmoca = as.dtmoca;
    as.utmoca = 1;
    }
}

Might there be a corruption on your local system (disc sector error or the like)?

Best
Markus



On Wed, Mar 13, 2019 at 10:51 AM Stefan Zbinden <[hidden email]> wrote:
Hi
Great!

Lines 9209, 10657

My best regards
Stefan

Markus Neteler wrote on 13.03.19 10:41:
Hi Stefan,

thanks for the notification.

Can you please tell me in which line you see the binary part (your
screenshot does not show the lines).

I shall investigate then.

Thanks
Markus

On Wed, Mar 13, 2019 at 10:36 AM Stefan Zbinden
[hidden email] wrote:
Hi

Sorry for writing this email to the webmaster.

I tried to compile grass 76.

I downloaded the "grass-7.6.0.tar.gz". When I unpack it on a CentOS 7 (latest) I get  errors. If I unpack it on a Mac obviously everything works fine...
During the compile process I found a corrupted file: imagery/i.atcorr/abstra.cpp. I found binary data in it. Have a look to the picture.

The same happens when I download "Download latest 7.6-svn code (SVN)" direct from the subversion repository. The same file is corrupt.

When browsing the source code "7.6-svn source code browser" then the file looks correct ....

Maybe I am crazy ....

Please would you forward this mail to the correct person ...

Many thanks
Stefan Zbinden
_______________________________________________
grass-web mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-web


--
Stefan Zbinden
New Email Address: [hidden email]



--

_______________________________________________
grass-web mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-web