crash log on fairly boring select statement
Bug #388889 reported by
Jeff Waugh
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Invalid
|
Critical
|
Jay Pipes |
Bug Description
drizzled crashed on a fairly boring select statement. It seemed very stable before I built it again with curl, pam and event support. I will attach a copy of the crash log.
session->query at 0x8b74fd0 = SELECT YEAR(post_date) AS `year`, MONTH(post_date) AS `month`, count(ID) as posts FROM test_posts WHERE post_type = 'post' AND post_status = 'publish' GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC
Changed in drizzle: | |
status: | In Progress → Incomplete |
Changed in drizzle: | |
milestone: | aloha → bell |
Changed in drizzle: | |
status: | In Progress → Invalid |
To post a comment you must log in.
Assigning to Jay. The crash is triggered by an out_of_bounds exception thrown in std::string: :substr. There are only two places in the code using substr, the gearman_functions plugin and temporal_format.cc. In gearman_functions, all substr calls are related to iterators on the same string, so it seems highly unlikely that it's the cause. Also, the query in question is using dates. :) I had a brief look, but it's doing things with the internal match vectors, so I figured Jay will grok it quicker than me.