Bug #47748 The blackhole plugin cannot be loaded on Solaris with dtrace enabled.
Submitted: 30 Sep 2009 14:23 Modified: 4 Aug 2010 20:03
Reporter: Horst Hunger Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Storage Engines Severity:S3 (Non-critical)
Version:next OS:Solaris (SunOS 5.10 Generic_127128-11 i86pc i386 i86pc)
Assigned to: Horst Hunger CPU Architecture:Any
Tags: blackhole, DTrace, plugin

[30 Sep 2009 14:23] Horst Hunger
Description:
Trying to load blackhole as a plugin on Solaris with dtrace enabled ends up in

CURRENT_TEST: main.blackhole_plugin
mysqltest: At line 6: query 'INSTALL PLUGIN blckhole SONAME 'ha_blackhole.so'' failed: 1126: Can't open shared library '/home/hh221802/bzr/mysql-47146/mysql-test/../storage/blackhole/.libs/ha_blackhole.so' (errno: 2 ld.so.1: mysqld: fatal: relocation error: file /home/hh221802/bzr/mysql-47146/mysql-test/../storage/blackhole/.libs/ha_blackhole)

How to repeat:
execute the install statement mentioned in the error text on a solaris system with dtrace enabled.

Suggested fix:
Look at the patch fixing bug#47739, same problem with archive.
[18 Feb 2010 10:43] 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/100728

3860 Horst.Hunger	2010-02-18
      This patch fixes bug#47748 and allows to make blackhole as shared obvject on SOlaris including dtrace. It also contains a test for blackhole as plugin.
[30 Mar 2010 7:07] 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/104593

2977 Horst.Hunger	2010-03-30
      Revised patch for bug#47748 including a test for blackhole as plugin.
[21 Apr 2010 7:21] 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/106185

3143 Horst.Hunger	2010-04-21
      Patch for bug#47748 after review including a test.
[21 Apr 2010 12:38] Horst Hunger
Pushed patch into next-mr-bugfixing and 6.0-codebase-bugfixing.
[27 Apr 2010 9:46] Bugs System
Pushed into 6.0.14-alpha (revid:alik@sun.com-20100427094135-5s49ecp3ckson6e2) (version source revid:alik@sun.com-20100427093843-uekr85qkd7orx12t) (merge vers: 6.0.14-alpha) (pib:16)
[27 Apr 2010 9:51] Bugs System
Pushed into mysql-next-mr (revid:alik@sun.com-20100427094036-38frbg3famdlvjup) (version source revid:alik@sun.com-20100427093825-92wc8b22d4yg34ju) (pib:16)
[6 May 2010 9:04] MC Brown
A note has been added to the 6.0.15 changelog: 

        The BLACKHOLE storage engine would fail to                                                                                      
        load on Solaris, OpenSolaris and Mac OS X if DTrace probes had                                                                                     
        been enabled.
[6 May 2010 10:36] MC Brown
Thanks Alexey - should have noticed it was the dynamic builds. I've updated the entry to remove Mac OS X
[4 Aug 2010 8:10] Bugs System
Pushed into mysql-trunk 5.6.1-m4 (revid:alik@ibmvm-20100804080001-bny5271e65xo34ig) (version source revid:alik@sun.com-20100427095914-pzlxbqjjtnngxmf0) (merge vers: 5.6.99-m4) (pib:18)
[4 Aug 2010 8:26] Bugs System
Pushed into mysql-trunk 5.6.1-m4 (revid:alik@ibmvm-20100804081533-c1d3rbipo9e8rt1s) (version source revid:alik@sun.com-20100427095914-pzlxbqjjtnngxmf0) (merge vers: 5.6.99-m4) (pib:18)
[4 Aug 2010 20:03] Paul DuBois
Noted in 5.6.0 changelog.