[MDEV-29539] [ERROR] mysqld got exception 0xc0000005 Created: 2022-09-14 Updated: 2022-09-15 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Update |
| Affects Version/s: | 10.6.9 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Kyungsuk Yoo | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
. OS: Windows11 Pro 21H2 (OS build 22000.978) |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
Hello, I'm implementing a program to draw diagram showing connections between nodes with information of which node(s) go(es) to which node(s). And table LN_MODEL_SEQ shows the connections between nodes where To implement this a massive program in Node.js runs, but MariaDB stops in the middle with a log like this in Node.js side: error: ERROR {"timestamp":"2022-09-15 00:12:27"}error: CONNECTION CLOSED {"timestamp":"2022-09-15 00:12:27"}error: GENERAL ERROR {"timestamp":"2022-09-15 00:12:27"}error: errno: -4077 {"timestamp":"2022-09-15 00:12:27"}error: errcode: -4077 {"timestamp":"2022-09-15 00:12:27"}error: Error: read ECONNRESET *And the MariaDB error log is like this: * 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 Server version: 10.6.9-MariaDB Thread pointer: 0x1d29ed97098 Trying to get some variables. Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on,condition_pushdown_for_subquery=on,rowid_filter=on,condition_pushdown_from_having=on,not_null_range_scan=off The manual page at https://mariadb.com/kb/en/how-to-produce-a-full-stack-trace-for-mysqld/ contains What am I supposed to do to prevent this unexpected shutdown? |
| Comments |
| Comment by Vladislav Vaintroub [ 2022-09-15 ] | ||||||||||||||||||
|
More detailed stack trace, from the .dmp file
The exception is access violation caused by deferencing NULL pointer , in ctype.c, line 910
Unfortunately there is not much other information available from the .dmp (no heap in it only stack) lifelix, you probably can workaround that exact bug, by avoiding prepared statements | ||||||||||||||||||
| Comment by Kyungsuk Yoo [ 2022-09-15 ] | ||||||||||||||||||
|
Thanks a lot!!! By the way, how does using preparedstatement or not affect this situation? | ||||||||||||||||||
| Comment by Vladislav Vaintroub [ 2022-09-15 ] | ||||||||||||||||||
|
lifelix, the crash happens in execution of prepared statement, while resolving parameters, thus my guess that it will go away once prepared statement disappear. If you have an example of the Node.js program that used to crash, this would likely be useful here to repeat the error. | ||||||||||||||||||
| Comment by Alice Sherepa [ 2022-09-15 ] | ||||||||||||||||||
|
probably the same bug as MDEV-19811 |