Bug 11599 - non-deterministic binutils-doc
Summary: non-deterministic binutils-doc
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.4 M4
Assignee: Choong Yin Thong
QA Contact: nagarajagopal
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-06-01 01:06 UTC by Juro Bystricky
Modified: 2017-11-09 07:11 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
diffoscope output showing the difference (401.76 KB, text/html)
2017-06-01 01:06 UTC, Juro Bystricky
no flags Details
difooscope output to corrobate the bug claim... (64.05 KB, text/html)
2017-06-05 16:17 UTC, Juro Bystricky
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juro Bystricky 2017-06-01 01:06:32 UTC
Created attachment 3783 [details]
diffoscope output showing the difference

I built the binutils-doc package twice, two different build folders but otherwise everything else is the same: distro, machine etc. 
Yet comparing the two builds shows a weird difference (see attached diffoscope output): One package claims to be built by makeinfo version 4.8, the other one by makeinfo 6.1
Comment 1 Juro Bystricky 2017-06-05 16:17:19 UTC
Created attachment 3794 [details]
difooscope output to corrobate the bug claim...
Comment 2 Juro Bystricky 2017-06-05 16:17:38 UTC
Another weird miscompare (see attached log), different symptomps:
this time one build claims:
·​Automatically·​generated·​by·​Pod:​:​Man·​2.​27·​(Pod:​:​Simple·​3.​28)​ 

the other one 

·​Automatically·​generated·​by·​Pod:​:​Man·​2.​28·​(Pod:​:​Simple·​3.​29)​
Comment 3 Choong Yin Thong 2017-08-08 00:58:25 UTC
(In reply to comment #2)
> Another weird miscompare (see attached log), different symptomps:
> this time one build claims:
> ·​Automatically·​generated·​by·​Pod:​:​Man·​2.​27·​(Pod:​:​Simple·​3.​28)​ 
> 
> the other one 
> 
> ·​Automatically·​generated·​by·​Pod:​:​Man·​2.​28·​(Pod:​:​Simple·​3.​29)​

This diff able to reproduce. However, for makeinfo version different have to build few time only can reproduce. Still finding the way to consistently reproduce and root causing..
Comment 4 Choong Yin Thong 2017-08-21 08:12:55 UTC
issue cannot reproduce once binutils updated to version 2.29.
Comment 5 Choong Yin Thong 2017-08-25 01:26:31 UTC
Issue solve once binutils upgrade to version 2.29.
Comment 6 nagarajagopal 2017-10-12 09:27:45 UTC
 
 Verification logs:

1) Checkout to origin/master branch to get fixes

2) run command as "Source oe-init-build-env binutils1"

3) change PACKAGE as "deb" in local.conf file

4) build the binutils package

5) run command as "Source oe-init-build-env binutils2"

6) build the package

7) compare two debian package.

8) Both package should be same size.
Comment 7 nagarajagopal 2017-10-23 06:34:13 UTC
Verification log ,

$ diffoscope binutils-doc_bu1_2.29-r0_i386.deb binutils-doc_bu2_2.29-r0_i386.deb
--- binutils-doc_bu1_2.29-r0_i386.deb
+++ binutils-doc_bu2_2.29-r0_i386.deb
+-- file list
¦ @@ -1,3 +1,3 @@
¦ --rw-r--r--   0        0        0        4 2017-10-05 11:58:52.000000 debian-binary
¦ --rw-r--r--   0        0        0      585 2017-10-05 11:58:52.000000 control.tar.gz
¦ --rw-r--r--   0        0        0   499784 2017-10-05 11:58:52.000000 data.tar.xz
¦ +-rw-r--r--   0        0        0        4 2017-10-05 13:26:01.000000 debian-binary
¦ +-rw-r--r--   0        0        0      584 2017-10-05 13:26:01.000000 control.tar.gz
¦ +-rw-r--r--   0        0        0   499776 2017-10-05 13:26:01.000000 data.tar.xz
+-- control.tar.gz
¦   +-- control.tar
¦   ¦   +-- file list
¦   ¦   ¦ @@ -1,2 +1,2 @@
¦   ¦   ¦ -drwxr-xr-x   0 root         (0) root         (0)        0 2017-10-05 11:58:52.000000 ./
¦   ¦   ¦ --rw-r--r--   0 root         (0) root         (0)      752 2017-10-05 11:58:52.000000 ./control
¦   ¦   ¦ +drwxr-xr-x   0 root         (0) root         (0)        0 2017-10-05 13:26:01.000000 ./
¦   ¦   ¦ +-rw-r--r--   0 root         (0) root         (0)      752 2017-10-05 13:26:01.000000 ./control
¦   ¦   ?
¦   ?
+-- data.tar.xz
¦   +-- data.tar
¦   ¦   +-- file list
¦   ¦   ¦ @@ -1,30 +1,30 @@
¦   ¦   ¦ -drwxrwxrwx   0 root         (0) root         (0)        0 2017-10-05 11:58:52.000000 ./
¦   ¦   ¦ -drwxr-xr-x   0 root         (0) root         (0)        0 2017-10-05 11:58:52.000000 ./usr/
¦   ¦   ¦ -drwxr-xr-x   0 root         (0) root         (0)        0 2017-10-05 11:58:52.000000 ./usr/share/
¦   ¦   ¦ -drwxr-xr-x   0 root         (0) root         (0)        0 2017-10-05 11:58:52.000000 ./usr/share/info/
¦   ¦   ¦ --rw-r--r--   0 root         (0) root         (0)  1127696 2017-10-05 11:58:52.000000 ./usr/share/info/as.info
¦   ¦   ¦ --rw-r--r--   0 root         (0) root         (0)   637673 2017-10-05 11:58:52.000000 ./usr/share/info/bfd.info
¦   ¦   ¦ --rw-r--r--   0 root         (0) root         (0)   218213 2017-10-05 11:58:52.000000 ./usr/share/info/binutils.info
¦   ¦   ¦ --rw-r--r--   0 root         (0) root         (0)   112803 2017-10-05 11:58:52.000000 ./usr/share/info/gprof.info
¦   ¦   ¦ --rw-r--r--   0 root         (0) root         (0)   411157 2017-10-05 11:58:52.000000 ./usr/share/info/ld.info
Comment 8 Juro Bystricky 2017-10-23 15:52:58 UTC
The problem is not 100% reproducible, the problems occurred only once in-a-while.
So having two builds that are the same does not mean we will not run into this again. I usually run two builds in parallel, so this may be also a result of some race due to stressed resources.

If I run into this again, I will reopen the bug.
Comment 9 nagarajagopal 2017-10-25 07:36:39 UTC
 
 I run two builds in parallel, and can able to reproduce the issue in binutils_2.28. 
Issued is solved in binutils_2.29.
Comment 10 Shashwat Pandey 2017-11-09 07:11:40 UTC
Verified, issue is fixed.