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

Semaphore-Lock-Bug #7

Closed
dmdhrumilmistry opened this issue Oct 28, 2023 · 0 comments · Fixed by #8
Closed

Semaphore-Lock-Bug #7

dmdhrumilmistry opened this issue Oct 28, 2023 · 0 comments · Fixed by #8
Assignees
Labels
bug Something isn't working

Comments

@dmdhrumilmistry
Copy link
Collaborator

This is raised when rate limit options are being used.

2023-10-28 14:02:10,820 - offat.tester.tester_utils - INFO - Checking for SQLi vulnerability: (tester_utils.py:76)
Traceback (most recent call last):
  File "/Users/apple/repos/OWASP/OFFAT/.venv/bin/offat", line 6, in <module>
    sys.exit(start())
             ^^^^^^^
  File "/Users/apple/repos/OWASP/OFFAT/src/offat/__main__.py", line 69, in start
    generate_and_run_tests(
  File "/Users/apple/repos/OWASP/OFFAT/src/offat/tester/tester_utils.py", line 78, in generate_and_run_tests
    results += run_test(test_runner=test_runner, tests=sqli_fuzz_tests, regex_pattern=regex_pattern)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/apple/repos/OWASP/OFFAT/src/offat/tester/tester_utils.py", line 36, in run_test
    test_results = run(test_runner.run_tests(tests))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/apple/.pyenv/versions/3.11.3/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/Users/apple/.pyenv/versions/3.11.3/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/apple/.pyenv/versions/3.11.3/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/Users/apple/repos/OWASP/OFFAT/src/offat/tester/test_runner.py", line 119, in run_tests
    return await gather(*tasks)
           ^^^^^^^^^^^^^^^^^^^^
  File "/Users/apple/repos/OWASP/OFFAT/src/offat/tester/test_runner.py", line 89, in send_request
    response = await self._client.request(url=url, method=http_method, *args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/apple/repos/OWASP/OFFAT/src/offat/http.py", line 128, in request
    async with self._semaphore:
  File "/Users/apple/.pyenv/versions/3.11.3/lib/python3.11/asyncio/locks.py", line 15, in __aenter__
    await self.acquire()
  File "/Users/apple/.pyenv/versions/3.11.3/lib/python3.11/asyncio/locks.py", line 379, in acquire
    fut = self._get_loop().create_future()
          ^^^^^^^^^^^^^^^^
  File "/Users/apple/.pyenv/versions/3.11.3/lib/python3.11/asyncio/mixins.py", line 20, in _get_loop
    raise RuntimeError(f'{self!r} is bound to a different event loop')
RuntimeError: <asyncio.locks.Semaphore object at 0x1052ba790 [locked]> is bound to a different event loop
Unclosed client session
@dmdhrumilmistry dmdhrumilmistry added the bug Something isn't working label Oct 28, 2023
@dmdhrumilmistry dmdhrumilmistry linked a pull request Oct 28, 2023 that will close this issue
@dmdhrumilmistry dmdhrumilmistry self-assigned this Oct 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant