Bug#1069322: diffoscope crashes when trying to compare unreproducible src:dasel build artifacts

2024-05-14 Thread Chris Lamb
Holger Levsen wrote:

> I'm not sure how --debug output should survive, but you mean just
> running diffoscope with an added --debug option?

Ah, yeah. It won't survive from Jenkins' log perspective, huh?

Hmm, the --debug output could perhaps to be directed straight to an
on-disk file. Given that that should be flushed after every line, that
should survive an OOM kill.

If not, hmm, I'll have a think. Either way, apologies that I'm not
more familiar with all the abstraction layers in our setup and thus
which might survive an OOM.


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org  chris-lamb.co.uk
   `-

___
Reproducible-builds mailing list
Reproducible-builds@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/reproducible-builds


Bug#1069329: fixed in diffoscope 266

2024-05-14 Thread Paul Wise
On Fri, 2024-05-10 at 14:49 +, Chris Lamb wrote:

>    * Use "xz --list" to supplement the output when comparing .xz archives;
>  essential when some underlying metadata differs. (Closes: #1069329)
>    * Actually append the xz --list after the container differences, as it
>  simplifies tests and the output.

Hmm, I still get a hex diff with the test case I posted in the bug:

$ echo foo > foo
$ xz -0 < foo > foo.0.xz
$ xz -9 < foo > foo.9.xz
$ diffoscope foo.0.xz foo.9.xz
--- foo.0.xz
+++ foo.9.xz
│┄ Format-specific differences are supported for XZ compressed files but no 
file-specific differences were detected; falling back to a binary diff. file(1) 
reports: XZ compressed data, checksum CRC64
@@ -1,4 +1,4 @@
 : fd37 7a58 5a00 0004 e6d6 b446 0200 2101  .7zXZ..F..!.
-0010: 0c00  8f98 419c 0100 0366 6f6f 0a00  ..Afoo..
+0010: 1c00  10cf 58cc 0100 0366 6f6f 0a00  ..Xfoo..
 0020: ffd7 ac5a 3031 9cf2 0001 1c04 6f2c 9cc1  ...Z01..o,..
 0030: 1fb6 f37d 0100  0004 595a...}..YZ

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


signature.asc
Description: This is a digitally signed message part
___
Reproducible-builds mailing list
Reproducible-builds@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/reproducible-builds


Bug#1069322: diffoscope crashes when trying to compare unreproducible src:dasel build artifacts

2024-05-14 Thread Holger Levsen
On Tue, May 14, 2024 at 11:43:29AM +0100, Chris Lamb wrote:
> Ah, I was hoping that the systemd slice apparatus would be able to
> contain any traceback, but now that I think of it, being OOM-killed is
> not quite the same as CPython-level crash (and thus traceback).

:)
 
> > https://tests.reproducible-builds.org/debian/artifacts/r00t-me/trixie_i386_dasel_tmp-kqFaQ/
> > is maybe working as in crashing for you?
> 
> Alas, this works for me and does not crash. I suppose the next thing
> might be to try and run with --debug? That way, we might be able to
> determine which file, comparator or external tool was being run when
> diffoscope invoked the ire of the oom-killer.

I'm not sure how --debug output should survive, but you mean just running
diffoscope with an added --debug option?


-- 
cheers,
Holger

 ⢀⣴⠾⠻⢶⣦⠀
 ⣾⠁⢠⠒⠀⣿⡁  holger@(debian|reproducible-builds|layer-acht).org
 ⢿⡄⠘⠷⠚⠋⠀  OpenPGP: B8BF54137B09D35CF026FE9D 091AB856069AAA1C
 ⠈⠳⣄

The average US president has been charged with 2 felonies: #45 with 91 and
the others with 0.


signature.asc
Description: PGP signature
___
Reproducible-builds mailing list
Reproducible-builds@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/reproducible-builds


Bug#1069322: diffoscope crashes when trying to compare unreproducible src:dasel build artifacts

2024-05-14 Thread Chris Lamb
Holger Levsen wrote:

>> Hm, I can't seem to reproduce the crash with these files. In the first
>> instance, can you paste a traceback or similar of the crash in
>> question? Maybe it is fixable just from that without having to find
>> and upload more files, etc.
>
> I don't have a traceback as the oom-kill also kills the surrounding
> processes...

Ah, I was hoping that the systemd slice apparatus would be able to
contain any traceback, but now that I think of it, being OOM-killed is
not quite the same as CPython-level crash (and thus traceback).

> https://tests.reproducible-builds.org/debian/artifacts/r00t-me/trixie_i386_dasel_tmp-kqFaQ/
> is maybe working as in crashing for you?

Alas, this works for me and does not crash. I suppose the next thing
might be to try and run with --debug? That way, we might be able to
determine which file, comparator or external tool was being run when
diffoscope invoked the ire of the oom-killer.


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org  chris-lamb.co.uk
   `-

___
Reproducible-builds mailing list
Reproducible-builds@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/reproducible-builds


Bug#1069322: diffoscope crashes when trying to compare unreproducible src:dasel build artifacts

2024-05-14 Thread Holger Levsen
On Wed, May 08, 2024 at 03:07:00PM +0100, Chris Lamb wrote:
> Hm, I can't seem to reproduce the crash with these files. In the first
> instance, can you paste a traceback or similar of the crash in
> question? Maybe it is fixable just from that without having to find
> and upload more files, etc.

I don't have a traceback as the oom-kill also kills the surrounding
processes...

May 13 20:45:41 jenkins kernel: 
oom-kill:constraint=CONSTRAINT_MEMCG,nodemask=(null),cpuset=/,mems_allowed=0,oom_memcg=/user.slice/user-103.slice/user@103.service/rb.slice,task_memcg=/user.slice/user-103.slice/user@103.service/rb.slice/rb-build.slice/rb-build-diffoscope.slice/rb-diffoscope-i386_1-26686.service,task=diffoscope,pid=4117661,uid=103
May 13 20:45:41 jenkins kernel: Memory cgroup out of memory: Killed process 
4117661 (diffoscope) total-vm:218023820kB, anon-rss:86849224kB, 
file-rss:40448kB, shmem-rss:0kB, UID:103 pgtables:425080kB oom_score_adj:200
May 13 20:45:41 jenkins systemd[1]: user@103.service: A process of this unit 
has been killed by the OOM killer.
May 13 20:45:41 jenkins systemd[1620]: rb-diffoscope-i386_1-26686.service: A 
process of this unit has been killed by the OOM killer.

is basically all I see.

https://tests.reproducible-builds.org/debian/artifacts/r00t-me/trixie_i386_dasel_tmp-kqFaQ/
is maybe working as in crashing for you?


-- 
cheers,
Holger

 ⢀⣴⠾⠻⢶⣦⠀
 ⣾⠁⢠⠒⠀⣿⡁  holger@(debian|reproducible-builds|layer-acht).org
 ⢿⡄⠘⠷⠚⠋⠀  OpenPGP: B8BF54137B09D35CF026FE9D 091AB856069AAA1C
 ⠈⠳⣄

https://showyourstripes.info


signature.asc
Description: PGP signature
___
Reproducible-builds mailing list
Reproducible-builds@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/reproducible-builds