List:Internals« Previous MessageNext Message »
From:Paul Cadach Date:September 4 2001 11:42am
Subject:Bug in UNIONs
View as plain text  
Hi,

Please, check UNION code because it generates SIGSEGV for me when I'm trying
to do:
    select * from table union all select * from table;

GDB message:
    Program received signal SIGSEGV, Segmentation fault.
    0x80e1539 in fill_record (ptr=0x837e338, values=@0x837b320) at
sql_base.cc:2024
    2024        if (value->save_in_field(field))

GDB's back trace:
    #0  0x80e1539 in fill_record (ptr=0x837e338, values=@0x837b320)
        at sql_base.cc:2024
    #1  0x813e3fd in select_union::send_data (this=0x837f858,
values=@0x837b320)
        at sql_union.cc:202
    #2  0x80ef525 in end_send (join=0xbfffea40, join_tab=0x837fc2c,
        end_of_records=false) at sql_select.cc:4711
    #3  0x80ee6c8 in sub_select (join=0xbfffea40, join_tab=0x837fb10,
        end_of_records=false) at sql_select.cc:4221
    #4  0x80ee3ad in do_select (join=0xbfffea40, fields=0x837b320,
table=0x0,
        procedure=0x0) at sql_select.cc:4112
    #5  0x80e68ba in mysql_select (thd=0x837b188, tables=0x837f3e8,
        fields=@0x837b320, conds=0x0, ftfuncs=@0x837b368, order=0x0,
group=0x0,
        having=0x0, proc_param=0x0, select_options=277386240,
result=0x837f858)
        at sql_select.cc:855
    #6  0x813e18c in mysql_union (thd=0x837b188, lex=0x837b2a4,
result=0x837f5f8)
        at sql_union.cc:133
    #7  0x80e4538 in handle_select (thd=0x837b188, lex=0x837b2a4,
result=0x837f5f8)
        at sql_select.cc:155
    #8  0x80ca6f3 in mysql_execute_command () at sql_parse.cc:1154


Line numbers may differs from original sources because I'd modified some
sources.

WBR,
Paul.


Thread
Bug in UNIONsPaul Cadach4 Sep
  • Re: Bug in UNIONsSinisa Milivojevic4 Sep