Christian Hammers a écrit :
Hello

On 2005-10-17 BERTRAND Joël wrote:

        If I work on the sparc64, I can access to the local mysql
        server. From the i386, I can locally use the mysql server.
        From a external i386, I can reach the both mysql server. But,
        if I try to access to the i386 mysql server from the Sparc64
        workstation, mysql client returns a bus error.

        strace returns:

Please give me some more debugging information:

        Of course. All informations come from the Sparc64 workstation.

 "cat /etc/host.conf"

Root kant:[~] > cat /etc/host.conf
order hosts,bind
multi on

 "cat /etc/hosts"

Root kant:[~] > cat /etc/hosts
127.0.0.1       localhost
192.168.254.1   kant.astelys.fr kant

# Comment réparer les conneries de Monsieur Free !
82.229.72.155   deu95-1-82-229-72-155.fbx.proxad.net

# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)

::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

 "ldd /usr/bin/mysql"

Root kant:[~] > ldd /usr/bin/mysql
        libreadline.so.5 => /lib/libreadline.so.5 (0x70030000)
        libncurses.so.5 => /lib/libncurses.so.5 (0x70074000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x700d0000)
        libmysqlclient.so.14 => /usr/lib/libmysqlclient.so.14 (0x701b8000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x702e8000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x70328000)
        libz.so.1 => /usr/lib/libz.so.1 (0x70350000)
        libm.so.6 => /lib/libm.so.6 (0x70374000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x70408000)
        libc.so.6 => /lib/libc.so.6 (0x70424000)
        libdl.so.2 => /lib/libdl.so.2 (0x7055c000)
        /lib/ld-linux.so.2 (0x70000000)

 "host <name of i386 host>"

Root kant:[~] > host alain
alain.astelys.fr has address 192.168.0.130

 ltrace output instead of strace output

There is no ltrace on debian/sparc. I have downloaded the tarball and built ltrace (with link from sparc to sparc64 in ~/ltrace-0.3.36/sysdeps/linux-gnu). I hope my ltrace is a regular ltrace...

Root kant:[~/ltrace-0.3.36] > ./ltrace mysql -uroot -p -halain
__libc_start_main(104328, 4, 0xeffffdc4, 113424, 113544 <unfinished ...>
_init(0, 0, 0, 0, 0 <unfinished ...>
<... __libc_start_main resumed> )                = 0x7002ccb0
__cxa_atexit(93436, 0, 192928, 0, 0)             = 0
__cxa_atexit(93372, 0, 192928, 0, 0)             = 0
__cxa_atexit(91020, 0, 192928, 0x7002ce64, 0)    = 0
get_defaults_files(4, 0xeffffdc4, 0xeffffcf4, 0xeffffcf0, 0) = 4
my_init(4, 0xeffffdc4, 0xeffffcf4, 0xeffffcf0, 0) = 0
getenv(124928, 0xeffffdc4, 0xeffffcf4, 0xeffffcf0, 0) = 0
my_strdup(124944, 16, 0xeffffcf4, 0xeffffcf0, 0) = 221264
my_strdup(221264, 16, 0xeffffcf4, 0xeffffcf0, 0) = 221280
getenv(124952, 8, 0xeffffcf4, 0xeffffcf0, 0)     = 0
isatty(0, 8, 0xeffffcf4, 0xeffffcf0, 0)          = 1
isatty(1, 8, 0xeffffcf4, 0xeffffcf0, 0)          = 1
load_defaults(120552, 193784, 0xeffffd44, 0xeffffd48, 0) = 0
mysql_get_parameters(0, 221832, 0xeffffd44, 0xeffffd48, 0) = 0x7020dc6c
getenv(124960, 221832, 0xeffffd44, 0xeffffd48, 0) = 0
getenv(124952, 221832, 0xeffffd44, 0xeffffd48, 0) = 0
strcpy(207728, 203584, 0xeffffd44, 0xeffffd48, 0) = 207728
handle_options(0xeffffce8, 0xeffffcec, 193800, 81648, 0x7472feff) = 0
strcmp(114008, 0x701f9ac0, 676, 2800, 206848)    = 0
get_tty_password(0, 0x701f9ac8, 0x1010101, 0x80808080, 0x6e310000Enter password:
) = 221512
mysql_server_init(1, 0xeffffcdc, 198088, 0x80808080, 0x6e310000) = 0
my_malloc(520, 16, 0, 0, 0)                      = 225136
breakpointed at 0x2ec74 (?)
my_malloc(12, 48, 0, 0, 0)                       = 221616
init_alloc_root(199440, 8192, 0, 0, 0)           = 199440
init_alloc_root(199400, 16384, 0, 0x80808080, 0x6e310000) = 199400
memset(198344, 0, 952, 0x80808080, 0x6e310000)   = 198344
mysql_init(198344, 0, 0, 0, 0)                   = 198344
mysql_real_connect(198344, 221368, 221352, 221512, 0 <unfinished ...>
--- SIGBUS (Bus error) ---
+++ killed by SIGBUS +++
Root kant:[~/ltrace-0.3.36] >

        Regards,

        JKB





Reply via email to