Skip to content

Instantly share code, notes, and snippets.

@waterlink
Created August 30, 2015 23:10
Show Gist options
  • Save waterlink/ab0a845fa29342a54d84 to your computer and use it in GitHub Desktop.
Save waterlink/ab0a845fa29342a54d84 to your computer and use it in GitHub Desktop.
Valgrind output for waterlink/mysql_adapter.cr run
.where(query_hash)
finds multiple records==957== Invalid read of size 8
==957== at 0x4A0FB5: GC_generic_malloc_many (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration_spec)
==957== by 0x4AA30E: GC_malloc_atomic (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration_spec)
==957== by 0x4A06EC: GC_generic_or_special_malloc (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration_spec)
==957== by 0x4A08AA: GC_realloc (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration_spec)
==957== by 0x4142E5: __crystal_realloc (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration_spec)
==957== by 0x42068E: *Pointer(UInt8)@Pointer(T)#realloc<Pointer(UInt8), Int32>:Pointer(UInt8) (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration_spec)
==957== by 0x4199B6: *String::Builder#resize_to_capacity<String::Builder, Int32>:Pointer(UInt8) (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration_spec)
==957== by 0x419A68: *String::Builder#to_s<String::Builder>:String (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration_spec)
==957== by 0x437C79: *ActiveRecord::Sql::QueryGenerator#_generate<ActiveRecord::Sql::QueryGenerator, (String | Int32), Int32>:ActiveRecord::Sql::Query (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration_spec)
==957== by 0x437B43: *ActiveRecord::Sql::QueryGenerator#generate_binary_op<ActiveRecord::Sql::QueryGenerator, ActiveRecord::Query::Equal, String, Int32, Bool>:ActiveRecord::Sql::Query (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration_spec)
==957== by 0x437859: *ActiveRecord::Sql::QueryGenerator#generate_binary_op<ActiveRecord::Sql::QueryGenerator, ActiveRecord::Query::Equal, String, Int32>:ActiveRecord::Sql::Query (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration_spec)
==957== by 0x4377FB: *ActiveRecord::Sql::QueryGenerator#_generate<ActiveRecord::Sql::QueryGenerator, ActiveRecord::Query::Equal, Int32>:ActiveRecord::Sql::Query (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration_spec)
==957== Address 0x20666f2073746f4c is not stack'd, malloc'd or (recently) free'd
==957==
==957==
==957== Process terminating with default action of signal 11 (SIGSEGV)
==957== General Protection Fault
==957== at 0x4A0FB5: GC_generic_malloc_many (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration_spec)
==957== by 0x4AA30E: GC_malloc_atomic (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration_spec)
==957== by 0x4A06EC: GC_generic_or_special_malloc (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration_spec)
==957== by 0x4A08AA: GC_realloc (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration_spec)
==957== by 0x4142E5: __crystal_realloc (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration_spec)
==957== by 0x42068E: *Pointer(UInt8)@Pointer(T)#realloc<Pointer(UInt8), Int32>:Pointer(UInt8) (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration_spec)
==957== by 0x4199B6: *String::Builder#resize_to_capacity<String::Builder, Int32>:Pointer(UInt8) (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration_spec)
==957== by 0x419A68: *String::Builder#to_s<String::Builder>:String (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration_spec)
==957== by 0x437C79: *ActiveRecord::Sql::QueryGenerator#_generate<ActiveRecord::Sql::QueryGenerator, (String | Int32), Int32>:ActiveRecord::Sql::Query (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration_spec)
==957== by 0x437B43: *ActiveRecord::Sql::QueryGenerator#generate_binary_op<ActiveRecord::Sql::QueryGenerator, ActiveRecord::Query::Equal, String, Int32, Bool>:ActiveRecord::Sql::Query (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration_spec)
==957== by 0x437859: *ActiveRecord::Sql::QueryGenerator#generate_binary_op<ActiveRecord::Sql::QueryGenerator, ActiveRecord::Query::Equal, String, Int32>:ActiveRecord::Sql::Query (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration_spec)
==957== by 0x4377FB: *ActiveRecord::Sql::QueryGenerator#_generate<ActiveRecord::Sql::QueryGenerator, ActiveRecord::Query::Equal, Int32>:ActiveRecord::Sql::Query (in /home/oleksii/code/github/waterlink/mysql_adapter.cr/integration_spec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment