Skip to content

Unhandled exception (#10e730f4) #6167

Closed

Description

@sqlmapreporter
Running version: 1.10.6.34#dev
Python version: 3.14.7
Operating system: Linux-6.18.54.1-microsoft-standard-WSL2-x86_64-with-glibc2.43
Command line: /usr/local/bin/sqlmap -u ************************************ --batch
Technique: None
Back-end DBMS: None
Traceback (most recent call last):
  File "/opt/sqlmap/lib/request/comparison.py", line 181, in _comparison
    seqMatcher.set_seq2(seq2)
    ~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/lib/python3.14/difflib.py", line 248, in set_seq2
    self.__chain_b()
    ~~~~~~~~~~~~~~^^
  File "/lib/python3.14/difflib.py", line 281, in __chain_b
    indices = b2j.setdefault(elt, [])
TypeError: 'str' object is not callable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "sqlmap", line 222, in main
    start()
    ~~~~~^^
  File "/opt/sqlmap/lib/core/decorators.py", line 99, in _
    result = f(*args, **kwargs)
  File "/opt/sqlmap/lib/controller/controller.py", line 607, in start
    injection = checkSqlInjection(place, parameter, value)
  File "/opt/sqlmap/lib/controller/checks.py", line 507, in checkSqlInjection
    Request.queryPage(genCmpPayload(), place, raise404=False)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/sqlmap/lib/core/decorators.py", line 99, in _
    result = f(*args, **kwargs)
  File "/opt/sqlmap/lib/request/connect.py", line 1662, in queryPage
    return comparison(page, headers, code, getRatioValue, pageLength)
  File "/opt/sqlmap/lib/request/comparison.py", line 46, in comparison
    _ = _adjust(_comparison(page, headers, code, getRatioValue, pageLength), getRatioValue)
                ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/sqlmap/lib/request/comparison.py", line 184, in _comparison
    seqMatcher.set_seq2(repr(seq2))
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "/lib/python3.14/difflib.py", line 248, in set_seq2
    self.__chain_b()
    ~~~~~~~~~~~~~~^^
  File "/lib/python3.14/difflib.py", line 281, in __chain_b
    indices = b2j.setdefault(elt, [])
TypeError: 'str' object is not callable

Activity

  1. stamparm commented on Nov 2, 2026

    @stamparm
    Member

    Same class as #6158-#6161: an unrelated object shows up under a known name inside difflib, and here it fails again on sqlmap's immediate retry, so the interpreter state itself is broken on this machine. This isn't reproducible on any CPython build, including 3.14.7. Please also update - you're on 1.10.6, five months old.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions