[Bug 286666] Failed to rebuild autoinstall ISO for freebsd-14.3-BETA1-64bit with error: Unused fields should be 0

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 09 May 2025 17:53:10 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286666

--- Comment #3 from Ed Maste <emaste@freebsd.org> ---
OK, was able to reproduce with FreeBSD-14.3-BETA1-amd64-dvd1.iso

>>> iso.open("/home/emaste/images/FreeBSD-14.3-BETA1-amd64-dvd1.iso")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/emaste/src/pycdlib/pycdlib/pycdlib.py", line 4066, in open
    self._open_fp(fp)
  File "/home/emaste/src/pycdlib/pycdlib/pycdlib.py", line 2235, in _open_fp
    ic_level, lastbyte = self._walk_directories(self.pvd, extent_to_ptr,
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/emaste/src/pycdlib/pycdlib/pycdlib.py", line 1051, in
_walk_directories
    rr = new_record.parse(vd, data[offset:offset + lenbyte],
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/emaste/src/pycdlib/pycdlib/dr.py", line 282, in parse
    if xa_rec.parse(record[record_offset:], self.len_fi):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/emaste/src/pycdlib/pycdlib/dr.py", line 86, in parse
    raise pycdlibexception.PyCdlibInvalidISO('Unused fields should be 0')
pycdlib.pycdlibexception.PyCdlibInvalidISO: Unused fields should be 0

It would be nice if pycdlib produced more detailed error messages, e.g. "Unused
fields should be 0 in XA record at file offset 123456".

-- 
You are receiving this mail because:
You are the assignee for the bug.