Ubuntu precise 64bit + Percona = fail

Bug #1063943 reported by Cal Leeming

This bug report was converted into a question: question #245389: Ubuntu precise 64bit + Percona = fail.

18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
MySQL Data Dumper
Invalid
Undecided
Unassigned

Bug Description

Using the mydumper package from repo fails with this;

[3230741.530652] processqueue[13125]: segfault at 0 ip 00007f784b722336 sp 00007f784a99be60 error 4 in

libglib-2.0.so.0.3200.3[7f784b69f000+f2000]
[3230747.945488] processqueue[13131]: segfault at 0 ip 00007f72bba59336 sp 00007f72bacd2e60 error 4 in

libglib-2.0.so.0.3200.3[7f72bb9d6000+f2000]
[3230758.194969] processqueue[13137]: segfault at 0 ip 00007f0c5aa93336 sp 00007f0c59d0ce60 error 4 in

libglib-2.0.so.0.3200.3[7f0c5aa10000+f2000]
[3230780.686775] processqueue[13141]: segfault at 0 ip 00007f9eb5cec336 sp 00007f9eb4f65e60 error 4 in

libglib-2.0.so.0.3200.3[7f9eb5c69000+f2000]
[3230784.336484] processqueue[13146]: segfault at 0 ip 00007f132641c336 sp 00007f1325695e60 error 4 in

libglib-2.0.so.0.3200.3[7f1326399000+f2000]
[3230794.710549] processqueue[13153]: segfault at 0 ip 00007fb97bac9336 sp 00007fb97ad42e60 error 4 in

libglib-2.0.so.0.3200.3[7fb97ba46000+f2000]

** Message: Connected to a MySQL server
** Message: Started dump at: 2012-10-08 16:53:16

I am using percona libs.

> dpkg -l | grep percona
ii percona-server-client-5.5 5.5.27-rel28.1-296.precise Percona Server database client binaries
ii percona-server-common-5.5 5.5.27-rel28.1-296.precise Percona Server database common files (e.g. /etc/mysql/my.cnf)
ii percona-server-server-5.5 5.5.27-rel28.1-296.precise Percona Server database server binaries
ii percona-toolkit 2.1.4 Advanced MySQL and system command-line tools
ii percona-xtrabackup 2.0.3-470.precise Open source backup tool for InnoDB and XtraDB
ii xtrabackup 2.0.3-470.precise Transitional package for percona-xtrabackup

 > apt-cache showpkg mydumper
Package: mydumper
Versions:
0.5.1-1ubuntu1 (/var/lib/apt/lists/us-east-1.ec2.archive.ubuntu.com_ubuntu_dists_precise_universe_binary-amd64_Packages)
 Description Language:
                 File: /var/lib/apt/lists/us-east-1.ec2.archive.ubuntu.com_ubuntu_dists_precise_universe_binary-amd64_Packages
                  MD5: aeb30b8248c26bc4b50eb2a94783398d
 Description Language: en
                 File: /var/lib/apt/lists/us-east-1.ec2.archive.ubuntu.com_ubuntu_dists_precise_universe_i18n_Translation-en
                  MD5: aeb30b8248c26bc4b50eb2a94783398d

Reverse Depends:
  mydumper:i386,mydumper
Dependencies:
0.5.1-1ubuntu1 - libc6 (2 2.4) libglib2.0-0 (2 2.31.2) libmysqlclient18 (2 5.5.13-1) libpcre3 (2 8.10) zlib1g (2 1:1.2.3.3.dfsg) libjs-sphinxdoc (2 1.0) mydumper:i386 (0 (null))
Provides:
0.5.1-1ubuntu1 -
Reverse Provides:

Attempted to compile the latest development package but got;

> cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- MySQL not found.
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- checking for one of the modules 'glib-2.0'
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:350 (message):
  None of the required 'glib-2.0' found
Call Stack (most recent call first):
  cmake/modules/FindGLIB2.cmake:10 (pkg_search_module)
  CMakeLists.txt:10 (find_package)

-- checking for one of the modules 'gthread-2.0'
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:350 (message):
  None of the required 'gthread-2.0' found
Call Stack (most recent call first):
  cmake/modules/FindGLIB2.cmake:11 (pkg_search_module)
  CMakeLists.txt:10 (find_package)

CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:306 (message):
  pkg-config tool not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:320 (_pkg_check_modules_internal)
  cmake/modules/FindPCRE.cmake:25 (pkg_check_modules)
  CMakeLists.txt:11 (find_package)

-- Could NOT find PCRE (missing: PCRE_INCLUDE_DIR PCRE_PCRE_LIBRARY PCRE_PCREPOSIX_LIBRARY)
CMake Warning at docs/CMakeLists.txt:9 (message):
  Unable to find Sphinx documentation generator

CMake Warning at docs/CMakeLists.txt:152 (message):
  Missing python-sphinx documentation tools, docs will not be built

-- ------------------------------------------------
-- MYSQL_CONFIG = MYSQL_CONFIG-NOTFOUND
-- CMAKE_INSTALL_PREFIX = /usr/local
-- BUILD_DOCS = ON
-- RUN_CPPCHECK = OFF
-- Change a values with: cmake -D<Variable>=<Value>
-- ------------------------------------------------
--
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GLIB2_LIBRARIES (ADVANCED)
    linked by target "mydumper" in directory /root/mydumper-0.5.1
    linked by target "myloader" in directory /root/mydumper-0.5.1
GTHREAD2_LIBRARIES (ADVANCED)
    linked by target "mydumper" in directory /root/mydumper-0.5.1
    linked by target "myloader" in directory /root/mydumper-0.5.1
MYSQL_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /root/mydumper-0.5.1
MYSQL_LIBRARIES_mysqlclient
    linked by target "mydumper" in directory /root/mydumper-0.5.1
    linked by target "myloader" in directory /root/mydumper-0.5.1
PCRE_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /root/mydumper-0.5.1
PCRE_PCRE_LIBRARY (ADVANCED)
    linked by target "mydumper" in directory /root/mydumper-0.5.1
    linked by target "myloader" in directory /root/mydumper-0.5.1

-- Configuring incomplete, errors occurred!

Shame because this looked like such a cool little tool :(

Cal Leeming (sleepycal)
description: updated
Revision history for this message
Domas Mituzas (domas-mituzas) wrote :

well, if Percona have broken ABI (stack traces of segfaults would be useful), you should definitely try building - albeit for that you need few dependancies (all mentioned in README) to build properly.

Revision history for this message
Cal Leeming (sleepycal) wrote :

To be honest, I don't normally use Ubuntu - I only used it because EC2 had it on their AMIs 'officially'. I haven't really got any spare time to go back and reproduce the problem again, really sorry.

Just on a side note, I found the build script errors to be *very* unhelpful, it was saying I was missing various dependencies, but they were installed! Not the best build system in the world lol.

Thanks for the reply anyway, hoping one day I can give this tool another shot on Debian as it looks fantastic!

Cal

Revision history for this message
Domas Mituzas (domas-mituzas) wrote :

I'm reviewing some of build problems, but generally all seems to be working on my systems.

Revision history for this message
Brett O'Donnell (cornernote) wrote :

I installed a clean 12.04 on amazon aws.

# apt-get update
# apt-get install mysql-server mydumper
# mydumper
Segmentation fault (core dumped)

(sorry, not sure how to get the segfault traces)

Revision history for this message
DavidDucos (david-ducos) wrote :

Same here, I tested in 32 and 64 bit Ubuntu platform and in both i get a segmentation fault.

In 64 bit I tried 0.5.1, 0.5.2 and trunk version with the same result.

Revision history for this message
Mischa ter Smitten (mischa-ter-smitten) wrote :

This is how I got things working:

http://blog.tersmitten.nl/how-to-install-mydumper-on-ubuntu-12-04-in-combination-with-percona-server.html

It also works for Ubuntu 12.04 with regular MySQL 5.5.

Revision history for this message
Max Bubenick (max-bubenick) wrote :

is not a mydumper bug, this is because a wrong linked file, to make it work you need to fix

libmysqlclient_r.so linked file as Mischa mention in the above link

Changed in mydumper:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.