{"record":{"id":"b67f3dc67341f3ab","repo":"sqlmapproject/sqlmap","slug":"the-specified-shared-library-file-does-not-exist","errorCode":null,"errorMessage":"the specified shared library file does not exist","messagePattern":"the specified shared library file does not exist","errorType":"exception","errorClass":"SqlmapFilePathException","httpStatus":null,"severity":"error","filePath":"lib/takeover/udf.py","lineNumber":218,"sourceCode":"            warnMsg += \"the current session user is not a database administrator\"\n            logger.warning(warnMsg)\n\n        if not conf.shLib:\n            msg = \"what is the local path of the shared library? \"\n\n            while True:\n                self.udfLocalFile = readInput(msg, default=None, checkBatch=False)\n\n                if self.udfLocalFile:\n                    break\n                else:\n                    logger.warning(\"you need to specify the local path of the shared library\")\n        else:\n            self.udfLocalFile = conf.shLib\n\n        if not os.path.exists(self.udfLocalFile):\n            errMsg = \"the specified shared library file does not exist\"\n            raise SqlmapFilePathException(errMsg)\n\n        if not self.udfLocalFile.endswith(\".dll\") and not self.udfLocalFile.endswith(\".so\"):\n            errMsg = \"shared library file must end with '.dll' or '.so'\"\n            raise SqlmapMissingMandatoryOptionException(errMsg)\n\n        elif self.udfLocalFile.endswith(\".so\") and Backend.isOs(OS.WINDOWS):\n            errMsg = \"you provided a shared object as shared library, but \"\n            errMsg += \"the database underlying operating system is Windows\"\n            raise SqlmapMissingMandatoryOptionException(errMsg)\n\n        elif self.udfLocalFile.endswith(\".dll\") and Backend.isOs(OS.LINUX):\n            errMsg = \"you provided a dynamic-link library as shared library, \"\n            errMsg += \"but the database underlying operating system is Linux\"\n            raise SqlmapMissingMandatoryOptionException(errMsg)\n\n        self.udfSharedLibName = os.path.splitext(os.path.basename(self.udfLocalFile))[0]\n        self.udfSharedLibExt = os.path.splitext(self.udfLocalFile)[1][1:]\n","sourceCodeStart":200,"sourceCodeEnd":236,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/takeover/udf.py#L200-L236","documentation":"Error \"the specified shared library file does not exist\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/takeover/udf.py:218 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}