Commit Graph

1744 Commits

Author SHA1 Message Date
Gao,Yan
f5fd0c950c Fix: ipc: Prevent fd and memory leaks in handle_new_connection()
In handle_new_connection(), connection_accept() could fail, which would
leave the state of the connection inactive. Previously, in this case,
the socket and the allocated qb_ipcs_connection would be leaked.
2015-10-06 18:01:16 +02:00
Christine Caulfield
1a7ea3b8d8 log: don't call dlopen inside dl_iterate_phdr()
Some platforms (eg. FreeBSD 10+) don't support calling dlopen() from
within a dl_iterate_phdr() callback; so save all of the dlpi_names to
a list and iterate over them afterwards.

This fixes a deadlock which occurs in dlopen() when called from
within dl_iterate_phdr() on FreeBSD 10+ when linked to libthr.

Patch from dpejesh on github.
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
2015-10-01 15:01:14 +01:00
Christoph Berg
8afa63fec7 Testsuite is stable now. Closes: #754692. 2015-09-30 12:05:43 +02:00
Christine Caulfield
b635cc9703 tests: Allow more time for stress_connections tests
On *BSD and other platforms the stress_connections can timeout and
fail the tests. I've increased the timeout here to an hour as it
takes nearly that long on my VM environment but it seems that's not
common, luckily.

This was also seen on mips/mipsel.

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
2015-09-25 15:12:36 +01:00
Christoph Berg
851e4224a0 Add debian/libqb0.symbols.ppc64 symlink. 2015-09-25 15:56:39 +02:00
Christoph Berg
0437411a5e Add two more patches from upstream to fix ipc test. 2015-09-25 15:13:39 +02:00
Christine Caulfield
7ebcb3d3cf ipc: Revert half of a previous *BSD ipc-name patch
Only one of the strndup calls should have subtracted 9 from
the name length. The other should have remained at 8.

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
2015-09-24 16:15:05 +01:00
Christine Caulfield
0f68c8c828 ipc: Don't send the dispatch_del() function a closed fd
The current code closes the fd before passing it to the
provided delete function. In the default case this can generate
"epoll_ctl(del): Bad file descriptor" messages when debug logging
is enabled.

This patch swaps over the calls so that a valid FD is passed to
the delete function.

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
Reviewed-By: Ken Gaillot <kgaillot@redhat.com>
2015-09-24 16:04:28 +01:00
Christoph Berg
53905ed67e Use dh --with autotools_dev again. 2015-09-23 10:48:30 +02:00
Christoph Berg
f28983aa5f releasing package libqb version 0.17.2.real-1 2015-09-23 10:44:28 +02:00
Christine Caulfield
1908e6c15b Fix deletion of sockets on *BSD platforms
The code removed the last 8 characters of a socket name
to get the 'base name', but 9 are needed.

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
2015-09-22 09:58:23 +01:00
Adrian Vondendriesch
f29798beeb New version with proper tarball.
* Import new Upstream release tarball for version 0.17.2.
* Bump version to 0.17.2.real-1.
* Update watch file to track the proper release tarballs. Also add
  dversionmangle to find upstream tarballs for "real" versions.
2015-09-22 10:48:54 +02:00
Adrian Vondendriesch
f0bf6d87d5 Merge tag 'upstream/0.17.2.real'
Upstream version 0.17.2.real.
The former tarball doesn't contain the files needed to build a proper libqb
version. Fix that by importing the release tarball.
2015-09-22 10:28:04 +02:00
Adrian Vondendriesch
d18d1f1578 Imported Upstream version 0.17.2.real 2015-09-22 10:27:02 +02:00
Adrian Vondendriesch
c3ca372a3e Update debian/watch file.
Update debian/watch file to track the official release tarballs. Those tarballs
include .tarball-version. If we use tarballs generated by github, pkg-version
will not work correctly (version UNKNOWN).

Signed-off-by: Adrian Vondendriesch <adrian.vondendriesch@credativ.de>
2015-09-21 18:56:42 +02:00
Christoph Berg
328d02968e releasing package libqb version 0.17.2-1 2015-09-20 19:57:28 +02:00
Adrian Vondendriesch
abb2a609e7 Create debian/patches/0001-Fix-check_ipc-tests-so-they-exit-correctly.patch.
All changes provided within the patch are already upstream. We need to remove
this patch within the next upstream release.

Signed-off-by: Adrian Vondendriesch <adrian.vondendriesch@credativ.de>
2015-09-20 17:56:08 +02:00
Ken Gaillot
5e38df0b74 Update last reference to quarterback-devel mailing list 2015-09-11 17:15:22 -05:00
Christine Caulfield
aec4cde431 Fix check_ipc tests so they exit correctly
On some platforms the check_ipc test can fail due to SIGTERM
being delivered to to exiting server process. There is a race
condition between the server main loop quitting and the
signal being delivered.

This patch closes that race loophole in two places, firstly
it makes SIGTERM/SIGSTOP exit immediately rather than just signalling
the mainloop, secondly it calls exit() rather than return when the server
mainloop completes to that the client code does not start executing!

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
2015-09-11 09:16:52 +01:00
Ken Gaillot
6957f24738 docs: update doxygen files
These are the results of "doxygen -u" to get rid of warnings.
2015-09-09 15:54:29 -05:00
Ken Gaillot
31b86f97a6 Add helper script for generating online documentation
If build-aux/generate-docs is run from the top level of the checkout,
it will prompt for the old and new version numbers, and generate
doxygen, ABI compatibility and change log documentation,
and commit them to the gh-pages branch.
2015-09-09 15:54:29 -05:00
Ken Gaillot
63a4ea31ae test: add helper script for running coverity 2015-09-09 15:54:26 -05:00
Christoph Berg
c1a034d426 New upstream version, including all our patches! 2015-09-07 16:34:25 +02:00
Christoph Berg
edb390601d Merge tag 'upstream/0.17.2'
Upstream version 0.17.2
2015-09-07 15:07:06 +02:00
Christoph Berg
37c156628d Imported Upstream version 0.17.2 2015-09-07 15:07:05 +02:00
Ken Gaillot
6d52a9d505 update copy of gitlog-to-changelog to latest GNU version
downloaded from http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;f=build-aux/gitlog-to-changelog
2015-08-28 11:41:24 -05:00
Ken Gaillot
bffd413f5c minor fixes to check script's ABI report
- update location of HTML output
- don't exit if there were incompatible ABI changes
- don't need branch name variable since we're not creating new branch for build anymore
2015-08-28 11:20:20 -05:00
Christine Caulfield
4d817cc7e0 Somme minor fixes to the check script
Update for latest git command
add $BROWSER instead of ahrdcoded google-chrome

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
2015-08-24 11:38:39 +01:00
David Vossel
bd2c587f6c Merge pull request #161 from kgaillot/fix
Fix: valgrind "invalid file descriptor" warning
2015-08-18 14:55:43 -05:00
Ken Gaillot
7cd90f11db release version 0.17.2
This revision switches libtool soname versioning from -version-number to
-version-info, and updates the travis configuration to use their newly
recommended infrastructure.
2015-08-18 09:14:51 -05:00
Ken Gaillot
d41b234a65 doc: improve README and RPM description 2015-08-18 09:14:51 -05:00
Ken Gaillot
780f893122 Fix: valgrind "invalid file descriptor" warning 2015-08-18 09:14:50 -05:00
David Vossel
187bff7979 Merge pull request #162 from ab-oe/master
Increase the length of description field.
2015-08-17 17:16:51 -05:00
Arkadiusz Bubala
0766a3ca54 Increase the length of description field.
Make description field larger to satisfy all possible pids and file
descriptor values.
2015-08-06 08:57:13 +02:00
Arkadiusz Bubala
ece408cb72 Increase the length of description field.
When both the corosync and pacemaker has PID larger or equal 10000
and when the file descriptor is larger or equal 10 the desciption
will have at least 17 characters.
2015-08-05 12:50:36 +02:00
Christoph Berg
d77e6704c0 Bump symbol versions for qb_ipc_type, qb_log_conf, and qb_log_filter_type. Patch by Ferenc Wágner, thanks! Closes: #794566 2015-08-04 16:13:15 +02:00
Christoph Berg
520a798e3e Make libqb0.symbols.ppc64el a symlink to powerpc. 2015-08-04 16:07:03 +02:00
Christoph Berg
dace7c21ef releasing package libqb version 0.17.1-5 2015-07-27 19:58:14 +02:00
Adrian Vondendriesch
6e9553c8db Add psmisc to autopkgtest dependencies.
We need to add psmisc to autopkgtest dependencies, otherwise `killall` will not
be available.

Signed-off-by: Adrian Vondendriesch <adrian.vondendriesch@credativ.de>
2015-07-18 14:05:35 +02:00
Christoph Berg
a37686023d Fix dir->symlink transition for /usr/share/doc/libqb-dev. Thanks to Andreas Beckmann for spotting and the fixing instructions! Closes: #788167 2015-06-09 22:57:57 +02:00
Christoph Berg
707e76e8d2 Add architecture-specific symbols files for kfreebsd-*; epoll is replaced by kqueue there. 2015-06-09 22:35:37 +02:00
Christoph Berg
64f29a67ef Re-disable __attribute__((section())) on powerpc and ppc64el. Instead, ship architecture-specific symbols files that skip the __start___verbose and __stop___verbose symbols. 2015-05-15 21:07:48 +02:00
Christoph Berg
4a342ee6d3 releasing package libqb version 0.17.1-2 2015-05-15 19:06:39 +02:00
Christoph Berg
fc255f5294 Ignore testsuite results on kfreebsd-* for now. 2015-05-15 18:56:43 +02:00
Christoph Berg
95965f30a4 Enable __attribute__((section())) on powerpc, it was hardcoded "no" in configure.ac. 2015-05-15 18:55:39 +02:00
David Vossel
35faa45558 Merge pull request #157 from davidvossel/solaris-compile-fix
Fix: resolves compile error for solaris
2015-05-15 10:32:44 -05:00
David Vossel
055c18cd81 Fix: resolves compile error for solaris 2015-05-15 09:15:30 -05:00
Christoph Berg
8840663382 releasing package libqb version 0.17.1-1 2015-05-06 14:52:49 +02:00
Christoph Berg
1449fba725 Multi-arch the binaries. 2015-05-06 14:25:51 +02:00
Christoph Berg
53ab6e0fa5 Use native jquery again, use multi-arch paths, fix doc handling 2015-05-05 23:03:07 +02:00