Skip to content

Assertion `mon > 0 && mon < 13 && year <= 9999' failed. Crash in debug builds #131

@meetamit77

Description

@meetamit77

Verified with 8.0.44-alisql-dev-debug version of debug builds

mysqld: sql/tztime.cc:356:
my_time_t sec_since_epoch(int, int, int, int, int, int):
Assertion `mon > 0 && mon < 13 && year <= 9999' failed.
mysqld got signal 6

#7 sec_since_epoch tztime.cc:356
#8 sec_since_epoch tztime.cc:387
#9 Time_zone_utc::TIME_to_gmt_sec tztime.cc:779
#10 DeltaAppender::append_mysql_field delta_appender.cc:495
#11 DeltaAppender::append_row_insert delta_appender.cc:117
#12 DuckdbThdContext::append_row_insert duckdb_context.cc:199
#13 ha_duckdb::write_row ha_duckdb.cc:653
#14 handler::ha_write_row handler.cc:8053
#15 write_record sql_insert.cc:2135
#16 Sql_cmd_insert_values::execute_inner sql_insert.cc:669

Repro

Use the attached alisql_tztime_crash_repro.zip

unzip alisql_tztime_crash_repro.zip
cd alisql_crash_repro
bash reproduce.sh /tmp/mysql_21000.sock root 127.0.0.1 <-- Change the socket name if you are running it in a different socket

alisql_crash_repro.zip

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions