kolbe@pbnj mysql-debug-4.1.12-apple-darwin7.9.0-powerpc $ gdb --args ./bin/mysqld --data="$PWD"/data GNU gdb 5.3-20030128 (Apple version gdb-309) (Thu Dec 4 15:41:30 GMT 2003) Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "powerpc-apple-darwin". Reading symbols for shared libraries ... done (gdb) run Starting program: /Users/kolbe/Devel/mysql/installations/mysql-debug-4.1.12-apple-darwin7.9.0-powerpc/bin/mysqld --data=/Users/kolbe/Devel/mysql/installations/mysql-debug-4.1.12-apple-darwin7.9.0-powerpc/data Reading symbols for shared libraries . done 050614 14:33:12 [Warning] Setting lower_case_table_names=2 because file system for /Users/kolbe/Devel/mysql/installations/mysql-debug-4.1.12-apple-darwin7.9.0-powerpc/data/ is case insensitive 050614 14:33:14 InnoDB: Started; log sequence number 0 43634 /Users/kolbe/Devel/mysql/installations/mysql-debug-4.1.12-apple-darwin7.9.0-powerpc/bin/mysqld: ready for connections. Version: '4.1.12-debug' socket: '/tmp/mysql.sock' port: 3306 MySQL Community Edition - Debug (GPL) Program received signal EXC_BAD_ACCESS, Could not access memory. [Switching to process 4068 thread 0x2903] 0x90007220 in strlen () (gdb) bt full #0 0x90007220 in strlen () No symbol table info available. #1 0x000d4fd4 in GRANT_TABLE::GRANT_TABLE(st_table*, st_table*) (this=0x2045c10, form=0x464dbc, col_privs=0x2033200) at sql_acl.cc:1869 key_len = 57387424 key = "TH>\1770\002\000\000\000\220\000\025|\220\001(THTH>\177\000D\000\002D\220\001),\220\000\v TH>\177 \000\000\000\000\220\000\f,\003kaP \000Ae\002\000\000\000\000\000\000\000\220\000\nETH>\1770\002\003d\000\220\000\v\020\000\t\224TH>\177@\000.\217\000TH>\202TH\000\000\000\020\000\000\005\f\002\000\000\000\000\000\005\f\220\000\v TH>\177P\002\002\204\000\220\000\f,\000\000\000\001\000\000\000\000\0008Tl\000\000\000\000TH>\200PTH>\177\200\000\000\000:\0008A\234\000)(C)TH>\177\200\000\000\000\003\000)P\002\003d\000\000\000\000\000\000\000\f\000\000\000\005\f\220\000\031OTH>\177\002\000\000\000"... #2 0x000d4d98 in GRANT_TABLE::GRANT_TABLE(st_table*, st_table*) (this=0xfffffffc, form=0x0, col_privs=0xfefefeff) at sql_acl.cc:1834 No locals. #3 0x000d6ea0 in grant_init(THD*) (org_thd=0x2028400) at sql_list.h:34 mem_check = (struct GRANT_TABLE *) 0x2045c10 thd = (THD *) 0x2036400 tables = {{ next = 0xf03e83ec, db = 0x2effff0 "mysql", alias = 0x2e8ef4 "tables_priv", real_name = 0x2e8ef4 "tables_priv", option = 0x0, on_expr = 0x0, natural_join = 0x0, use_index = 0x0, ignore_index = 0x0, table = 0x2033800, table_list = 0x0, derived = 0x0, grant = { grant_table = 0x0, version = 0, privilege = 0, want_privilege = 0 }, lock_type = TL_READ, outer_join = 0, shared = 0, db_length = 0, real_name_length = 0, straight = false, updating = false, force_index = false, ignore_leaves = false, cacheable_table = false, table_in_update_from_clause = false }, { next = 0x0, db = 0x2effff0 "mysql", alias = 0x2e8f00 "columns_priv", real_name = 0x2e8f00 "columns_priv", option = 0x0, on_expr = 0x0, natural_join = 0x0, use_index = 0x0, ignore_index = 0x0, table = 0x2033200, table_list = 0x0, derived = 0x0, grant = { grant_table = 0x0, version = 0, privilege = 0, want_privilege = 0 }, lock_type = TL_READ, outer_join = 0, shared = 0, db_length = 0, real_name_length = 0, straight = false, updating = false, force_index = false, ignore_leaves = false, cacheable_table = false, table_in_update_from_clause = false }} lock = (MYSQL_LOCK *) 0x36ba9a0 memex_ptr = (MEM_ROOT *) 0x483618 return_val = 1 '\001' t_table = (TABLE *) 0x2033800 c_table = (TABLE *) 0x2033200 check_no_resolve = false _db_func_ = 0x385c14 "MUTX" _db_file_ = 0x385c10 "RWLKMUTX" _db_level_ = 0 _db_framep_ = (char **) 0xd7050 counter = 2 ptr = {0x2033800, 0x2033200} #4 0x000d7110 in grant_reload(THD*) (thd=0x2028400) at sql_acl.cc:2751 old_column_priv_hash = { key_offset = 0, key_length = 0, records = 1, blength = 2, current_record = 4294967295, flags = 0, array = { buffer = 0x202a800 "yyyy\002\003\016\020", elements = 1, max_element = 1023, alloc_increment = 1023, size_of_element = 8 }, get_key = 0xd5364 , free = 0xd5374 , charset = 0x3933f8 } old_grant_option = true old_mem = { free = 0x2030e00, used = 0x0, pre_alloc = 0x0, min_malloc = 32, block_size = 996, block_num = 5, first_block_usage = 0, error_handler = 0x3b1d4 } _db_func_ = 0x0 _db_file_ = 0x0 _db_level_ = 0 _db_framep_ = (char **) 0x383300 #5 0x0007f318 in reload_acl_and_cache(THD*, unsigned long, st_table_list*, bool*) (thd=0x2028400, options=1, tables=0x0, write_to_binlog=0xf03e8aa0) at sql_parse.cc:4886 result = false tmp_write_to_binlog = true #6 0x0007c884 in mysql_execute_command(THD*) (thd=0x2028400) at sql_parse.cc:3493 write_to_binlog = 4030630752 res = 0 lex = (LEX *) 0x202843c slave_fake_lock = false fake_prev_lock = (MYSQL_LOCK *) 0x0 select_lex = (SELECT_LEX *) 0x2028548 tables = (TABLE_LIST *) 0x0 unit = (SELECT_LEX_UNIT *) 0x2028448 _db_func_ = 0x28f6001 "flush privileges" _db_file_ = 0x2037e20 "" _db_level_ = 16 _db_framep_ = (char **) 0x2037e10 #7 0x0007dd44 in mysql_parse(THD*, char*, unsigned) (thd=0x2028400, inBuf=0x0, length=33719356) at sql_parse.cc:4189 lex = (LEX *) 0x202843c _db_func_ = 0x42af4d29
_db_file_ = 0x28f6001 "flush privileges" _db_level_ = 33783328 _db_framep_ = (char **) 0x11 #8 0x00078b24 in dispatch_command(enum_server_command, THD*, char*, unsigned) (command=COM_QUERY, thd=0x2028400, packet=0x28f6001 "flush privileges", packet_length=17) at sql_parse.cc:1505 packet_end = 0x2037e20 "" net = (NET *) 0x2037e20 error = false _db_func_ = 0xf03e8dc0 "TH>\2160\002\002\204" _db_file_ = 0x3832e8 "" _db_level_ = 3691708 _db_framep_ = (char **) 0x1000 #9 0x000785ec in do_command(THD*) (thd=0x2028400) at sql_parse.cc:1318 packet = 0x28f6000 "\003flush privileges" old_timeout = 30 packet_length = 17 net = (NET *) 0x20289a8 command = COM_QUERY _db_func_ = 0x0 _db_file_ = 0x0 _db_level_ = 0 _db_framep_ = (char **) 0x0 #10 0x00077bcc in handle_one_connection (arg=0xfffffffc) at sql_parse.cc:1050 error = 0 net = (NET *) 0x20289a8 thd = (THD *) 0x2028400 launch_time = 4294967292 set = 0 #11 0x90024910 in _pthread_body () No symbol table info available.