Skip to content

windows ci failed with STATUS_DLL_INIT_FAILED #3902

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

Closed
evenyag opened this issue May 10, 2024 · 8 comments
Closed

windows ci failed with STATUS_DLL_INIT_FAILED #3902

evenyag opened this issue May 10, 2024 · 8 comments

Comments

@evenyag
Copy link
Contributor

evenyag commented May 10, 2024

What type of bug is this?

Unexpected error

What subsystems are affected?

Standalone mode

Minimal reproduce step

Run the nightly CI
https://github.com./GreptimeTeam/greptimedb/actions/runs/9009678033/job/24754350747

What did you expect to see?

The CI is passed

What did you see instead?

The CI is failed

What operating system did you use?

Windows Server 2022

What version of GreptimeDB did you use?

latest

Relevant log output and stack trace

Caused by:
  for `benchmarks::bin/nyc-taxi`, command `'C:\a\greptimedb\greptimedb\target\debug\deps\nyc_taxi-1c449a394a7932c1.exe' --list --format terse` exited with code 0xc0000142: A dynamic link library (DLL) initialization routine failed. (os error 1114)


     Running `target\debug\sqlness-runner.exe`
error: process didn't exit successfully: `target\debug\sqlness-runner.exe` (exit code: 0xc0000142, STATUS_DLL_INIT_FAILED)
Error: Process completed with exit code 1.
@evenyag
Copy link
Contributor Author

evenyag commented May 10, 2024

On Windows Server 2022 there are some strange DDL issues.

1434:0d10 @ 09019093 - LdrpInitializeNode - ERROR: Init routine 00007FFDA6925700 for DLL "C:\Windows\SYSTEM32\vertdll.dll" failed during DLL_PROCESS_ATTACH
1434:0d10 @ 09019093 - LdrpInitializeProcess - ERROR: Running the init routines of the executable's static imports failed with status 0xc0000142
1434:0d10 @ 09019093 - _LdrpInitialize - ERROR: Process initialization failed with status 0xc0000142

After adding vertdll.dll from Windows 10 to target/debug/, the sqlness.exe could be executed. So it seems that the binary has some issues using the vertdll.dll on Windows Server 2022.

@evenyag
Copy link
Contributor Author

evenyag commented May 10, 2024

The dumpbin command shows that we uses WaitOnAddress from the vertdll.dll

 .\dumpbin.exe -imports sqlness-runner.exe

Outputs:

vertdll.dll
            141C09710 Import Address Table
            1423918D8 Import Name Table
                    0 time date stamp
                    0 Index of first forwarder reference

                        7 WaitOnAddress
                        9 WakeByAddressSingle
                        8 WakeByAddressAll

I wonder if it is related to this issue rust-lang/rust#123999 as rust-lang/rust#124019 mentioned WaitOnAddress

@evenyag
Copy link
Contributor Author

evenyag commented May 11, 2024

Some tests are failed on Windows Server 2019. We got a permission denied error while deleting a file. But the file is actually deleted.

2024-05-11T12:00:57.565505Z  INFO common_telemetry::logging: logs dir = /tmp/__unittest_logs
2024-05-11T12:00:57.566327Z  INFO mito2::cache::file_cache::tests: temp dir is C:\Users\ADMINI~1\AppData\Local\Temp\2\T8ZIFB
2024-05-11T12:00:57.777286Z DEBUG mito2::cache::file_cache: deleted file files/8589934592000.67b7aad5-1616-491e-9301-55e6dadfd2e3.parquet
2024-05-11T12:00:57.778244Z  WARN mito2::cache::file_cache: Failed to delete a cached file files/8589934592000.67b7aad5-1616-491e-9301-55e6dadfd2e3.parquet err=PermissionDenied (permanent) at delete => permission denied

Context:
   service: fs
   path: files/8589934592000.67b7aad5-1616-491e-9301-55e6dadfd2e3.parquet

Source:
   Access is denied. (os error 5)

@evenyag
Copy link
Contributor Author

evenyag commented May 14, 2024

Let's wait for the next release to see if everything works fine.

@evenyag
Copy link
Contributor Author

evenyag commented May 15, 2024

Maybe another related issue: nextest-rs/nextest#1493

@evenyag
Copy link
Contributor Author

evenyag commented May 17, 2024

@evenyag
Copy link
Contributor Author

evenyag commented May 17, 2024

The error still exists in the release action...... https://github.com./GreptimeTeam/greptimedb/actions/runs/9114277736/job/25057956421#logs

Added a workaround for this in #3969

@evenyag
Copy link
Contributor Author

evenyag commented May 20, 2024

Let's keep this open until nextest-rs/nextest#1493 is fixed so we can upgrade the nextest that contains that patch.

yihong0618 added a commit to yihong0618/greptimedb that referenced this issue Mar 29, 2025
github-merge-queue bot pushed a commit that referenced this issue Mar 30, 2025
WenyXu pushed a commit to WenyXu/greptimedb that referenced this issue Apr 7, 2025
zyy17 pushed a commit to zyy17/greptimedb that referenced this issue Apr 7, 2025
killme2008 added a commit that referenced this issue Apr 8, 2025
* fix: mysql prepare bool value (#5732)

* fix: mysql prepare limit&offset param (#5734)

* fix: prepare limit&offset param

* test: sqlness

* chore: per review

* chore: per review

* fix: wrap table name with `` (#5748)

* fix: wrap table name with quotes

* fix: minor fix

* fix: handle nullable default value (#5747)

* fix: handle nullable default value

* chore: update sqlness

* fix: properly give placeholder types (#5760)

* fix: properly give placeholder types

* chore: update sqlness

* fix: support __name__ matcher in label values (#5773)

* fix: typo variadic (#5800)

Signed-off-by: Ruihang Xia <[email protected]>

* fix: close issue #3902 since upstream fixed (#5801)

Signed-off-by: yihong0618 <[email protected]>

* fix: correct error status code (#5802)

* fix: interval cast expression can't work in range query, #5805 (#5813)

* fix: interval cast expression can't work in range query, #5805

* fix: nested cast

* test: make vector test stable

* feat: introduce poison mechanism for procedure  (#5822)

* feat: introduce poison for procedure

* tests: add unit tests

* refactor: minor refactor

* fix: unit tests

* chore: fix unit tests

* chore: apply suggestions from CR

* chore: apply suggestions from CR

* chore: update comments

* chore: introduce `ProcedureStatus::Poisoned`

* chore: upgrade greptime-proto to `2be0f`

* chore: apply suggestions from CR

* fix: throw errors instead of ignoring (#5792)

* fix: throw errors instead of ignoring

* fix: fix unit tests

* refactor: remove schema version check

* fix: fix clippy

* chore: remove unused error

* refactor: remove schema version check

* feat: handle mutliple results

* feat: introduce consistency guard

* fix: release consistency guard on datanode operation completion

* test: add tests

* chore: remove schema version

* refactor: rename

* test: add more tests

* chore: print all error

* tests: query table after alteration

* log ignored request

* refine fuzz test

* chore: fix clippy and log mailbox message

* chore: close prepared statement after execution

* chore: add comment

* chore: remove log

* chore: rename to `ConsistencyPoison`

* chore: remove unused error

* fix: fix unit tests

* chore: apply suggestions from CR

---------

Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: yihong0618 <[email protected]>
Co-authored-by: discord9 <[email protected]>
Co-authored-by: Yohan Wal <[email protected]>
Co-authored-by: Yingwen <[email protected]>
Co-authored-by: Ruihang Xia <[email protected]>
Co-authored-by: yihong <[email protected]>
Co-authored-by: dennis zhuang <[email protected]>
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