[debian-mysql] Fwd: [JIRA] (MDEV-5707) MTR fails on kfreebsd
Otto Kekäläinen
otto at seravo.fi
Thu Feb 20 10:58:47 UTC 2014
Hello James,
I've reported the build fail issues on different archs to upstream. I
got this request below to temporarily apply a patch and re-build to
get debugging info.
Did you as DD have access to the build machines and have possibility
to do this kind of test runs?
Or should I just apply this to git head and wait until you upload
5.5.35-2 or something?
---------- Forwarded message ----------
From: Elena Stepanova (JIRA) <jira at mariadb.atlassian.net>
Date: 2014-02-20 12:53 GMT+02:00
Subject: [JIRA] (MDEV-5707) MTR fails on kfreebsd
To: otto at seravo.fi
[ https://mariadb.atlassian.net/browse/MDEV-5707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41846#comment-41846
]
Elena Stepanova commented on MDEV-5707:
---------------------------------------
I don't see anything obvious in MTR that could cause the difference
between MySQL and MariaDB, the fragments of code that do the check for
socket path length are identical.
If you could apply (temporarily!) the patch below, we might gather
more information about what is going on. The patch itself cannot fix
anything, it just adds more logging.
{noformat}
=== modified file 'mysql-test/lib/My/Platform.pm'
--- mysql-test/lib/My/Platform.pm 2011-06-30 15:37:13 +0000
+++ mysql-test/lib/My/Platform.pm 2014-02-20 10:51:00 +0000
@@ -120,6 +120,16 @@
my $len = length($path) - length($tmpdir) - 1;
my $testfile = $tmpdir . "/" . "x" x ($len > 0 ? $len : 1);
my $sock;
+ print("Trying to create socket with name $testfile\n");
+ if (-e $testfile) {
+ print("...but $testfile already exists\n");
+ if (-d $testfile) {
+ print("...and $testfile is a directory\n");
+ }
+ if (! -w $testfile) {
+ print("...and $testfile is not writable\n");
+ }
+ }
eval {
$sock= new IO::Socket::UNIX
(
@@ -128,10 +138,10 @@
);
$truncated= 1; # Be negatvie
- die "Could not create UNIX domain socket: $!"
+ print("Could not create socket\n") && die "Could not create UNIX
domain socket: $!"
unless defined $sock;
- die "UNIX domain socket path was truncated"
+ print("Socket path was truncated to ".$sock->hostpath()."\n") &&
die "UNIX domain socket path was truncated"
unless ($testfile eq $sock->hostpath());
$truncated= 0; # Yes, it worked!
{noformat}
> MTR fails on kfreebsd
> ---------------------
>
> Key: MDEV-5707
> URL: https://mariadb.atlassian.net/browse/MDEV-5707
> Project: MariaDB Development
> Issue Type: Bug
> Affects Versions: 5.5.35
> Environment: Debian official build system
> Reporter: Otto Kekäläinen
> Assignee: Elena Stepanova
> Labels: debian, kfreebsd, tests
>
> As seen at https://buildd.debian.org/status/package.php?p=mariadb-5.5 the Debian MariaDB packages do not build on architecture kfreebsd (both i386 and amd64). Builds fail with the error:
> {noformat}
> mysql-test-run: *** ERROR: Socket path '/tmp/0rfd4fI37_' too long, it would be truncated and thus not possible to use for connection to MySQL Server. Set a shorter with --tmpdir=<path> option
> {noformat}
> Equivalent MySQL packages build successfully as seen on https://buildd.debian.org/status/package.php?p=mysql-5.5
> Maybe there are some patches in MySQL that could be imported into MariaDB?
- Otto
--
Check out our blog at http://seravo.fi/blog
and follow @ottokekalainen
More information about the pkg-mysql-maint
mailing list