Type:
Bug
Priority:
Blocker
Resolution:
Fixed
Affects Version/s:
1.0.0
I've attached a simple test program that crashes.
For example:
$ python3 ./connection_pool_test.py
Segmentation fault (core dumped)
With gdb:
$ gdb python3
GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python3...Reading symbols from /usr/lib/debug/.build-id/5f/4de7b7974f514b4d5baf54bc956904a450c144.debug...done.
done.
(gdb) run ./connection_pool_test.py
Starting program: /usr/bin/python3 ./connection_pool_test.py
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5f356da in MrdbPool_dealloc (self=0x7ffff50b92f0) at src/mariadb_pooling.c:311
311 src/mariadb_pooling.c: No such file or directory.
(gdb) where
#0 0x00007ffff5f356da in MrdbPool_dealloc (self=0x7ffff50b92f0) at src/mariadb_pooling.c:311
#1 0x000000000055146f in type_call.lto_priv () at ../Objects/typeobject.c:918
#2 0x00000000005a9cbc in _PyObject_FastCallDict (kwargs=<optimized out>, nargs=0, args=0xaefb40, func=<type at remote 0x7ffff61411a0>) at ../Objects/tupleobject.c:131
#3 _PyObject_FastCallKeywords () at ../Objects/abstract.c:2496
#4 0x000000000050a5c3 in call_function.lto_priv () at ../Python/ceval.c:4875
#5 0x000000000050cd96 in _PyEval_EvalFrameDefault () at ../Python/ceval.c:3351
#6 0x0000000000509758 in PyEval_EvalFrameEx (throwflag=0, f=Frame 0xaef9b8, for file ./connection_pool_test.py, line 16, in create_connection_pool ()) at ../Python/ceval.c:754
#7 _PyFunction_FastCall (globals=<optimized out>, nargs=11467192, args=<optimized out>, co=<optimized out>) at ../Python/ceval.c:4933
#8 fast_function.lto_priv () at ../Python/ceval.c:4968
#9 0x000000000050a48d in call_function.lto_priv () at ../Python/ceval.c:4872
#10 0x000000000050bfb4 in _PyEval_EvalFrameDefault () at ../Python/ceval.c:3335
#11 0x0000000000507d64 in PyEval_EvalFrameEx (throwflag=0, f=Frame 0xae00f8, for file ./connection_pool_test.py, line 24, in <module> ()) at ../Python/ceval.c:754
#12 _PyEval_EvalCodeWithName.lto_priv.1820 () at ../Python/ceval.c:4166
#13 0x000000000050ae13 in PyEval_EvalCodeEx (closure=0x0, kwdefs=0x0, defcount=0, defs=0x0, kwcount=0, kws=0x0, argcount=0, args=0x0, locals=<optimized out>, globals=<optimized out>, _co=<optimized out>)
at ../Python/ceval.c:4187
#14 PyEval_EvalCode (co=<optimized out>, globals=<optimized out>, locals=<optimized out>) at ../Python/ceval.c:731
#15 0x0000000000634c82 in run_mod () at ../Python/pythonrun.c:1025
#16 0x0000000000634d37 in PyRun_FileExFlags () at ../Python/pythonrun.c:978
#17 0x00000000006384ef in PyRun_SimpleFileExFlags () at ../Python/pythonrun.c:419
#18 0x00000000006386c5 in PyRun_AnyFileExFlags () at ../Python/pythonrun.c:81
#19 0x0000000000639091 in run_file (p_cf=0x7fffffffde5c, filename=<optimized out>, fp=<optimized out>) at ../Modules/main.c:340
#20 Py_Main () at ../Modules/main.c:810
#21 0x00000000004b0d00 in main (argc=2, argv=0x7fffffffe058) at ../Programs/python.c:69
This is with the following environment:
$ python3 --version
Python 3.6.9
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.4 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.4 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
This occurred with MariaDB Connector/Python 1.0.0, which was installed via:
$ tar -xvzf mariadb-connector-python-1.0.0.tar.gz
$ pip3 install mariadb-1.0.0
relates to
CONPY-73
Error from connection pool: No more connections from pool 'web-app' available
Closed
Transition
Time In Source Status
Execution Times
Open
Confirmed
12h 55m
1
Confirmed
Closed
4d 3h 28m
1
{"report":{"fcp":687.5,"ttfb":141.10000038146973,"pageVisibility":"visible","entityId":88085,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"74d9bc71-a2a1-44c6-bb5c-c57724b4d756","navigationType":0,"readyForUser":791.2000002861023,"redirectCount":0,"resourceLoadedEnd":772.7000002861023,"resourceLoadedStart":146.90000009536743,"resourceTiming":[{"duration":11.099999904632568,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bsh/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":146.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":146.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":158,"responseStart":0,"secureConnectionStart":0},{"duration":10.900000095367432,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bsh/820016/12ta74/eb142f92e4bd16bd1ef8b08c1b9d5d56/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":147.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":147.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":158.10000038146973,"responseStart":0,"secureConnectionStart":0},{"duration":41.200000286102295,"initiatorType":"script","name":"https://jira.mariadb.org/s/b09d0d077992e4331b5f9ec0d3ec448c-CDN/lu2bsh/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":147.40000009536743,"connectEnd":147.40000009536743,"connectStart":147.40000009536743,"domainLookupEnd":147.40000009536743,"domainLookupStart":147.40000009536743,"fetchStart":147.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":147.40000009536743,"responseEnd":188.60000038146973,"responseStart":188.60000038146973,"secureConnectionStart":147.40000009536743},{"duration":147.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/b47ab3df14096803b180217eb8482517-CDN/lu2bsh/820016/12ta74/eb142f92e4bd16bd1ef8b08c1b9d5d56/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":147.5,"connectEnd":147.5,"connectStart":147.5,"domainLookupEnd":147.5,"domainLookupStart":147.5,"fetchStart":147.5,"redirectEnd":0,"redirectStart":0,"requestStart":147.5,"responseEnd":294.80000019073486,"responseStart":294.80000019073486,"secureConnectionStart":147.5},{"duration":151.39999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/s/6c569cbf8087ab04e40d0bef98627457-CDN/lu2bsh/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":147.60000038146973,"connectEnd":147.60000038146973,"connectStart":147.60000038146973,"domainLookupEnd":147.60000038146973,"domainLookupStart":147.60000038146973,"fetchStart":147.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":147.60000038146973,"responseEnd":299,"responseStart":299,"secureConnectionStart":147.60000038146973},{"duration":151.7999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":147.60000038146973,"connectEnd":147.60000038146973,"connectStart":147.60000038146973,"domainLookupEnd":147.60000038146973,"domainLookupStart":147.60000038146973,"fetchStart":147.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":147.60000038146973,"responseEnd":299.40000009536743,"responseStart":299.40000009536743,"secureConnectionStart":147.60000038146973},{"duration":152.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":147.7000002861023,"connectEnd":147.7000002861023,"connectStart":147.7000002861023,"domainLookupEnd":147.7000002861023,"domainLookupStart":147.7000002861023,"fetchStart":147.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":147.7000002861023,"responseEnd":299.90000009536743,"responseStart":299.90000009536743,"secureConnectionStart":147.7000002861023},{"duration":206.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bsh/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":147.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":147.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":354.5,"responseStart":0,"secureConnectionStart":0},{"duration":206.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":147.90000009536743,"connectEnd":147.90000009536743,"connectStart":147.90000009536743,"domainLookupEnd":147.90000009536743,"domainLookupStart":147.90000009536743,"fetchStart":147.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":147.90000009536743,"responseEnd":354.5,"responseStart":354.5,"secureConnectionStart":147.90000009536743},{"duration":207.39999961853027,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bsh/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":148.10000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":148.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":355.5,"responseStart":0,"secureConnectionStart":0},{"duration":207.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/81b5d7c27af3ebc078cc4a36383678ba-CDN/lu2bsh/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":148.30000019073486,"connectEnd":148.30000019073486,"connectStart":148.30000019073486,"domainLookupEnd":148.30000019073486,"domainLookupStart":148.30000019073486,"fetchStart":148.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":148.30000019073486,"responseEnd":355.6000003814697,"responseStart":355.6000003814697,"secureConnectionStart":148.30000019073486},{"duration":409.2999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":153.7000002861023,"connectEnd":153.7000002861023,"connectStart":153.7000002861023,"domainLookupEnd":153.7000002861023,"domainLookupStart":153.7000002861023,"fetchStart":153.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":153.7000002861023,"responseEnd":563,"responseStart":563,"secureConnectionStart":153.7000002861023},{"duration":434.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":153.80000019073486,"connectEnd":153.80000019073486,"connectStart":153.80000019073486,"domainLookupEnd":153.80000019073486,"domainLookupStart":153.80000019073486,"fetchStart":153.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":153.80000019073486,"responseEnd":588.6000003814697,"responseStart":588.6000003814697,"secureConnectionStart":153.80000019073486},{"duration":212.2999997138977,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":350.2000002861023,"connectEnd":350.2000002861023,"connectStart":350.2000002861023,"domainLookupEnd":350.2000002861023,"domainLookupStart":350.2000002861023,"fetchStart":350.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":350.2000002861023,"responseEnd":562.5,"responseStart":562.5,"secureConnectionStart":350.2000002861023},{"duration":8,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bsh/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":581.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":581.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":589.5,"responseStart":0,"secureConnectionStart":0},{"duration":185.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":582.5,"connectEnd":582.5,"connectStart":582.5,"domainLookupEnd":582.5,"domainLookupStart":582.5,"fetchStart":582.5,"redirectEnd":0,"redirectStart":0,"requestStart":582.5,"responseEnd":767.9000000953674,"responseStart":767.9000000953674,"secureConnectionStart":582.5},{"duration":189.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/a000436f14ae82363031988faf35ddba-CDN/lu2bsh/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":582.9000000953674,"connectEnd":582.9000000953674,"connectStart":582.9000000953674,"domainLookupEnd":582.9000000953674,"domainLookupStart":582.9000000953674,"fetchStart":582.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":582.9000000953674,"responseEnd":772.7000002861023,"responseStart":772.7000002861023,"secureConnectionStart":582.9000000953674},{"duration":120.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":679.7000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":679.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":800.2000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":152.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":706.8000001907349,"connectEnd":706.8000001907349,"connectStart":706.8000001907349,"domainLookupEnd":706.8000001907349,"domainLookupStart":706.8000001907349,"fetchStart":706.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":706.8000001907349,"responseEnd":858.9000000953674,"responseStart":858.9000000953674,"secureConnectionStart":706.8000001907349}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":11,"responseStart":141,"responseEnd":147,"domLoading":144,"domInteractive":874,"domContentLoadedEventStart":874,"domContentLoadedEventEnd":937,"domComplete":1255,"loadEventStart":1255,"loadEventEnd":1255,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":838.2000002861023},{"name":"bigPipe.sidebar-id.end","time":839},{"name":"bigPipe.activity-panel-pipe-id.start","time":839.2000002861023},{"name":"bigPipe.activity-panel-pipe-id.end","time":840.2000002861023},{"name":"activityTabFullyLoaded","time":951.8000001907349}],"measures":[],"correlationId":"8e1a1487cf8640","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":70,"dbReadsTimeInMs":13,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}