[MDEV-26482] Crash If Select UDF and UDF Call DLL Created: 2021-08-26  Updated: 2021-09-21  Resolved: 2021-09-21

Status: Closed
Project: MariaDB Server
Component/s: Plugins
Affects Version/s: 10.4.21
Fix Version/s: N/A

Type: Bug Priority: Critical
Reporter: TAT LIM CHIN Assignee: Sergei Golubchik
Resolution: Won't Fix Votes: 0
Labels: crash
Environment:

MariaDB 10.4.21 64 bits
Windows 10 Pro 64 bits
16 GB RAM
DLL write from Delphi 10.4


Attachments: File Master.err     File MasterUDFSuper.dll     File MasterUDFv7.dll     File SDX64.dll     File mysqld.dmp    

 Description   

210825 12:19:21 [ERROR] mysqld got exception 0xc0000005 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
 
To report this bug, see https://mariadb.com/kb/en/reporting-bugs
 
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed, 
something is definitely wrong and this may fail.
 
Server version: 10.4.21-MariaDB
key_buffer_size=134217728
read_buffer_size=131072
max_used_connections=18
max_threads=65537
thread_count=21
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 195284 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
 
Thread pointer: 0x182bf7f0638
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
MasterUDFv7.dll!???
MasterUDFv7.dll!???
MasterUDFv7.dll!???
MasterUDFv7.dll!__dbk_fcall_wrapper()
MasterUDFv7.dll!masterusbhid()
MasterUDFv7.dll!masterusbhidv7()
mysqld.exe!udf_handler::val_str()[item_func.cc:3629]
mysqld.exe!Item_func_udf_str::val_str()[item_func.cc:3775]
mysqld.exe!Item_func_set_user_var::check()[item_func.cc:5002]
mysqld.exe!set_var_user::check()[set_var.cc:873]
mysqld.exe!sql_set_variables()[set_var.cc:733]
mysqld.exe!mysql_execute_command()[sql_parse.cc:5021]
mysqld.exe!mysql_parse()[sql_parse.cc:7999]
mysqld.exe!dispatch_command()[sql_parse.cc:1860]
mysqld.exe!do_command()[sql_parse.cc:1373]
mysqld.exe!threadpool_process_request()[threadpool_common.cc:381]
mysqld.exe!tp_callback()[threadpool_common.cc:192]
ntdll.dll!TpAllocPool()
ntdll.dll!TpReleaseCleanupGroupMembers()
KERNEL32.DLL!BaseThreadInitThunk()
ntdll.dll!RtlUserThreadStart()
 
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x182996a5bb0): Set @rockeyhid = masterusbhidv7('1')
Connection ID (thread ID): 60
Status: NOT_KILLED



 Comments   
Comment by Sergei Golubchik [ 2021-09-21 ]

This looks like the problem in your UDF? Try to get a stack trace or debug somehow why it crashes

Generated at Thu Feb 08 09:45:39 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.