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

Unix.Unix_error(Unix.EINVAL, "select", "") on Linux #3

Open
jonahbeckford opened this issue Jan 31, 2025 · 1 comment
Open

Unix.Unix_error(Unix.EINVAL, "select", "") on Linux #3

jonahbeckford opened this issue Jan 31, 2025 · 1 comment
Assignees

Comments

@jonahbeckford
Copy link
Contributor

DkCoder is not building with libev on Linux, but it should. Same issue as ocsigen/lwt#222.

An integration test with more than 1024 open files inside Lwt should be added to validate libev is being used.

Symptoms

The following appears consistently when running an DkAssets_Std-Upload job after several downloads. The Lwt_engine.select#select means that libev was not built (confer https://github.com/ocsigen/lwt/blob/e625c09af4840cb035c4df237355cef6cdd8a300/src/unix/lwt_engine.ml#L406-L422):

DkAssets_Std-Upload.bc: [INFO] ARCHIVED         online/qtsdkrepository/windows_x86/desktop/qt5_5152/qt.qt5.5152.debug_info.win64_msvc2019_64/5.15.2-0-202011130602qtserialport-Windows-Windows_10-MSVC2019-Windows-Windows_10-X86_64-debug-symbols.7z.sha256
DkAssets_Std-Upload.bc: [INFO] Downloading https://mirrors.ocf.berkeley.edu/qt/online/qtsdkrepository/windows_x86/desktop/qt5_5152/qt.qt5.5152.qtpurchasing.win64_msvc2019_64/5.15.2-0-202011130602qtpurchasing-Windows-Windows_10-MSVC2019-Windows-Windows_10-X86_64.7z
Fatal error: exception Unix.Unix_error(Unix.EINVAL, "select", "")
Raised by primitive operation at unknown location
Called from Lwt_engine.select#select in file "build/_deps/lwt-src/src/unix/lwt_engine.ml", line 407, characters 26-60
Called from unknown location
Re-raised at Lwt_engine.select_based#iter in file "build/_deps/lwt-src/src/unix/lwt_engine.ml", line 359, characters 4-256
Called from Lwt_main.run.run_loop in file "build/_deps/lwt-src/src/unix/lwt_main.ml", line 36, characters 6-49
Called from Lwt_main.run in file "build/_deps/lwt-src/src/unix/lwt_main.ml", line 106, characters 8-13
Re-raised at Lwt_main.run in file "build/_deps/lwt-src/src/unix/lwt_main.ml", line 112, characters 4-13
Called from DkAssets_Std__Up865e89dead__Upload.get_asset_file_from_origin.(fun) in file "src/DkAssets_Std/Upload.ml", line 82, characters 10-207
Called from Stdlib__List.iter in file "list.ml", line 110, characters 12-15
Called from DkAssets_Std__Up865e89dead__Upload.get_asset_file_from_origin in file "src/DkAssets_Std/Upload.ml", line 73, characters 4-745
Re-raised at DkAssets_Std__Up865e89dead__Upload.sha256_file.(fun).feedloop in file "src/DkAssets_Std/Upload.ml", line 61, characters 25-204
Called from DkAssets_Support__Da2836f73cel__DataModel.S3.upload_asset_version_A in file "src/DkAssets_Support/DataModel.ml", line 295, characters 29-58
Called from DkAssets_Support__Da2836f73cel__DataModel.S3.upload_asset_version.(fun) in file "src/DkAssets_Support/DataModel.ml", line 329, characters 10-115
Called from Stdlib__List.fold_left in file "list.ml", line 121, characters 24-34
Called from DkAssets_Support__Da2836f73cel__DataModel.S3.upload_asset_version in file "src/DkAssets_Support/DataModel.ml", line 326, characters 6-229
Called from DkAssets_Std__Up865e89dead__Upload.upload.(fun) in file "src/DkAssets_Std/Upload.ml", line 204, characters 8-121
Called from Stdlib__List.iter in file "list.ml", line 110, characters 12-15
Called from DkAssets_Std__Up865e89dead__Upload.__init in file "src/DkAssets_Std/Upload.ml", line 259, characters 4-181
Called from Dune__exe__UploadX__ in file "#s/DkAssets_Std/UploadX__.ml", line 4, characters 9-23
[ERROR][2025-01-31T12:40:02Z] /Run/
       Problem
       -------
       Failed to DkAssets_Std.Upload script. Code: 516e251b.
       
       
       Underlying Error
       ----------------
       run
         ['/builds/diskuv/distributions/1.0/DkAssets/.z-dk/tools/coder/h/2.2.1-4/bin/ocamlrunx'
             
         '/builds/diskuv/distributions/1.0/DkAssets/_build/install/default/bin/DkAssets_Std-Upload.bc'
              '--spec-json-url'
             
         'untrusted/specs/qt-desktop-5.15.2.plaintext.json#e225a52861965b46c767551d3292abe6a9d62473703b81d253189f3b719369ed'
              '--log-level' 'INFO' '--sensitive-cache-dir' 's-cache']: exited
         with 2
@jonahbeckford jonahbeckford self-assigned this Jan 31, 2025
@jonahbeckford
Copy link
Contributor Author

Also lwt is at 5.7.0 when it should be the latest 5.9.0:

# SYNC: dksdk-cmake/cmake/compiler/create.cmake, dksdk-coder/ci/opamrepo/packages/lwt, dksdk-coder/src/SelfCode_Std/Metadata.ml, dksdk-cmake/cmake/DkSDKSupportedContent.cmake

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

No branches or pull requests

1 participant