Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XrdCl:: zip :: pgread :: buffer is too small #1732

Closed
adriansev opened this issue Jul 3, 2022 · 5 comments
Closed

XrdCl:: zip :: pgread :: buffer is too small #1732

adriansev opened this issue Jul 3, 2022 · 5 comments
Assignees

Comments

@adriansev
Copy link
Contributor

Hi @simonmichal ! we have another problem related to copy operation of a zip member:
from dump log:

[2022-07-03 15:06:20.135248 +0300][Error  ][XRootD            ] [st-048-bb6fd221.cern.ch:1095] Handling response to kXR_pgread (handle: 0x00000000, offset: 4731697, size: 3010): user supplied buffer is too small for the received data.
[2022-07-03 15:06:20.135255 +0300][Dump   ][File              ] [0x900084b0@file://localhost/home/adrian/tmp/eccbaf72-2b76-518d-ad9d-cc88bdf752c4.meta4?xrdcl.requuid=eba86e06-2433-4a01-a5ca-ea2ae8ca5b94&xrdcl.unzip=QC_production.json] File state error encountered. Message kXR_pgread (handle: 0x00000000, offset: 4731697, size: 3010) returned with [ERROR] Invalid response
[2022-07-03 15:06:20.135269 +0300][Error  ][File              ] [0x900084b0@file://localhost/home/adrian/tmp/eccbaf72-2b76-518d-ad9d-cc88bdf752c4.meta4?xrdcl.requuid=eba86e06-2433-4a01-a5ca-ea2ae8ca5b94&xrdcl.unzip=QC_production.json] Fatal file state error. Message kXR_pgread (handle: 0x00000000, offset: 4731697, size: 3010) returned with [ERROR] Invalid response
[2022-07-03 15:06:20.135273 +0300][Dump   ][File              ] [0x900084b0@file://localhost/home/adrian/tmp/eccbaf72-2b76-518d-ad9d-cc88bdf752c4.meta4?xrdcl.requuid=eba86e06-2433-4a01-a5ca-ea2ae8ca5b94&xrdcl.unzip=QC_production.json] Failing message kXR_pgread (handle: 0x00000000, offset: 4731697, size: 3010) with [ERROR] Invalid response
[2022-07-03 15:06:20.135333 +0300][Debug  ][Utility           ] Unable read 0 bytes at 0 from file://localhost/home/adrian/tmp/eccbaf72-2b76-518d-ad9d-cc88bdf752c4.meta4?xrdcl.unzip=QC_production.json: [ERROR] Invalid response
[2022-07-03 15:06:20.200058 +0300][Error  ][JobMgr            ] The job manager is not running

full logs: https://asevcenc.web.cern.ch/asevcenc/xrootd_zip_small_buffer/
puzzling thing is that we have a similar case (same file stored in a zip) that is working (see dump logs for working vs non-working case)
Let me know if you need any other information...
Thanks a lot!!!

@simonmichal
Copy link
Contributor

@adriansev : thanks for reporting this issue and for the reproducer! Just to let you know I was able to reproduce the problem and now it's under investigation.

@simonmichal simonmichal self-assigned this Jul 5, 2022
@simonmichal
Copy link
Contributor

@adriansev : I just pushed a patch: 91f9052, could you give it a try?

@simonmichal
Copy link
Contributor

@adriansev : the patch 91f9052 is incomplete and still needs some polishing, please stay tuned ;-)

@simonmichal
Copy link
Contributor

@adriansev : I just pushed b35b603, now it's ready to be tested ;-)

@adriansev
Copy link
Contributor Author

adriansev commented Jul 12, 2022

@simonmichal sorry for tardiness, i was in holidays .. so, i can confirm that this is fixed! Thanks a lot!!
L.E. tested with master b35b603

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants