Bug #42799 Maria: pushbuild: segfault related to stack_ends_here with pool-of-threads
Submitted: 12 Feb 2009 17:58 Modified: 10 Mar 2009 21:04
Reporter: Guilhem Bichot Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Maria storage engine Severity:S3 (Non-critical)
Version:6.0-maria OS:Linux
Assigned to: Sergei Golubchik CPU Architecture:Any

[12 Feb 2009 17:58] Guilhem Bichot
Description:
Take 6.0-maria
revision-id:guilhem@mysql.com-20090210150451-kabqw9gbnmieoho7
Run
./mtr pool_of_threads --mem
it says:
mysqltest: Could not open connection 'default': 2013 Lost connection to MySQL server at 'reading initial communication packet', system error: 0
(saw this on 32 and 64-bit Linux). There's a segfault in master.err (with an unhelpful stack trace).
Remove this line from sql/scheduler.cc:
    thd->mysys_var->stack_ends_here= thd->thread_stack +
                                     STACK_DIRECTION *
                                     (long)my_thread_stack_size;
and recompile, re-run test, no more crash.
So the bug would be related to
serg@mysql.com-20090112121057-l0e2og9gw1gr5fga

How to repeat:
see above
[16 Feb 2009 18:23] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/66538

2714 Sergei Golubchik	2009-02-16
      Bug #42799 Maria: pushbuild: segfault related to stack_ends_here with pool-of-threads
      remove a superfluous assigment (that was dereferencing thd->mysys_var before it was set)
[17 Feb 2009 11:46] Bugs System
Pushed into 6.0.10-alpha (revid:serg@mysql.com-20090217113558-vpsqsyjule7nz0gk) (version source revid:serg@mysql.com-20090216182248-llk80kqtadp14gi9) (merge vers: 6.0.10-alpha) (pib:6)
[10 Mar 2009 21:04] Guilhem Bichot
wrong code line was never released, nothing to document