Displaying 16 results from an estimated 16 matches for "nbdkit_gdb".
2017 Nov 13
4
[nbdkit PATCH 0/3] various nbdkit patches
...'m okay if you choose to take some but not others; the
most important one is patch 3 which fixes a protocol violation
that makes it impossible for a client to try and recover from EIO
failures over a partially-flaky source block device.
Eric Blake (3):
maint: Add emacs hint file
maint: Add NBDKIT_GDB support to in-tree nbdkit script
connections: Don't send NBD_CMD_READ payload on error
.dir-locals.el | 1 +
nbdkit.in | 9 +++++++--
src/connections.c | 2 +-
3 files changed, 9 insertions(+), 3 deletions(-)
create mode 100644 .dir-locals.el
--
2.13.6
2018 Nov 13
0
[PATCH 2/2] build: Replace ./nbdkit with a C program.
...sac
-done
-
-# If -v flag was given on the command line, print the command.
-if [ $verbose ]; then
- echo $b/src/nbdkit "${args[@]}"
-fi
-
-prefix=
-# If NBDKIT_VALGRIND=1 is set in the environment, then we run
-# the program under valgrind. This is used by the tests.
-# Similarly, if NBDKIT_GDB=1 is set in the environment, we run
-# the program under gdb, useful during development.
-if [ "$NBDKIT_VALGRIND" ]; then
- prefix="@VALGRIND@ --vgdb=no --leak-check=full --error-exitcode=119 --suppressions=$s/valgrind-suppressions --trace-children=no --child-silent-after-fork=yes...
2018 Nov 14
0
[PATCH nbdkit v2 2/2] build: Replace ./nbdkit with a C program.
...sac
-done
-
-# If -v flag was given on the command line, print the command.
-if [ $verbose ]; then
- echo $b/src/nbdkit "${args[@]}"
-fi
-
-prefix=
-# If NBDKIT_VALGRIND=1 is set in the environment, then we run
-# the program under valgrind. This is used by the tests.
-# Similarly, if NBDKIT_GDB=1 is set in the environment, we run
-# the program under gdb, useful during development.
-if [ "$NBDKIT_VALGRIND" ]; then
- prefix="@VALGRIND@ --vgdb=no --leak-check=full --error-exitcode=119 --suppressions=$s/valgrind-suppressions --trace-children=no --child-silent-after-fork=yes...
2018 Nov 14
5
[PATCH nbdkit v3 0/4] build: Replace ./nbdkit with a C program.
...as_arg.
- Moved some variable decls into the inner loop.
- Make nbdkit wrapper depend on config.status, so if srcdir or
builddir changes then we rebuild the wrapper. It probably does so
anyway because <config.h> will change, but let's be safe.
- Document NBDKIT_VALGRIND=1 and NBDKIT_GDB=1.
- Add two extra patches which fix existing uses of NBDKIT_VALGRIND.
- Retested (make check && make check-valgrind).
Rich.
2018 Nov 14
3
[PATCH nbdkit v2 0/2] build: Replace ./nbdkit with a C program.
v1 was here:
https://www.redhat.com/archives/libguestfs/2018-November/msg00147.html
v2:
- Use stdbool for booleans.
- Use __attribute__((format(printf))).
- Don't abort on invalid options, exit with failure instead.
- Preserve long/short option choices in the output.
- Add '=' in long option output, ie. always use --longopt=arg.
- Add "--" parameter
2018 Nov 13
3
[PATCH 0/2] build: Replace ./nbdkit with a C program.
This patch series solves the FreeBSD shebang problem in a completely
different way, and a few other things besides. I propose that we
replace ./nbdkit with a C program. The C program is a straightforward
translation of the shell script.
Some advantages of this approach are:
- We can parse options in exactly the same way as the real program.
- Use the more accurate ‘is_short_name’ test for
2018 Nov 14
2
Re: [PATCH 2/2] build: Replace ./nbdkit with a C program.
...long_index;
> + int verbose = 0;
Worth using <stdbool.h> and making this one bool?
> + size_t i;
> + char *s;
> +
> + /* If NBDKIT_VALGRIND=1 is set in the environment, then we run the
> + * program under valgrind. This is used by the tests. Similarly if
> + * NBDKIT_GDB=1 is set, we run the program under GDB, useful during
> + * development.
> + */
> + s = getenv ("NBDKIT_VALGRIND");
> + if (s && strcmp (s, "1") == 0) {
The shell did this if NBDKIT_VALGRIND was set to anything non-empty; now
you are requiring it to b...
2017 Nov 14
0
Re: [nbdkit PATCH] nbd: Add new nbd forwarding plugin
...lake wrote:
> Note: ./nbdkit is a bit unsafe in that it blindly inherits $valgrind
> from the environment; but that was nice because it let me do:
> valgrind='gdb --args' ./nbdkit nbd ...
> for a gdb debug session to work out the kinks in my code. Maybe we
> want to support NBDKIT_GDB similarly to NBDKIT_VALGRIND, and to clean
> up the script to not foolishly inherit variables outside of the
> namespace, but that's a task for another day.
As a fix for the valgrind issue, how about this patch? Of course it
will stop you from (ab-)using valgrind!
>From 75dd0d10221f...
2018 Dec 02
0
[PATCH nbdkit 3/4] valgrind: Enable valgrinding of Python plugin.
...mat ("--suppressions=%s/valgrind/suppressions", builddir);
passthru ("--trace-children=no");
passthru ("--run-libc-freeres=no");
- passthru ("--num-callers=20");
+ passthru ("--num-callers=100");
}
else {
s = getenv ("NBDKIT_GDB");
--
2.19.0.rc0
2017 Nov 12
6
[nbdkit PATCH] nbd: Add new nbd forwarding plugin
...Blake <eblake@redhat.com>
---
Note: ./nbdkit is a bit unsafe in that it blindly inherits $valgrind
from the environment; but that was nice because it let me do:
valgrind='gdb --args' ./nbdkit nbd ...
for a gdb debug session to work out the kinks in my code. Maybe we
want to support NBDKIT_GDB similarly to NBDKIT_VALGRIND, and to clean
up the script to not foolishly inherit variables outside of the
namespace, but that's a task for another day.
---
configure.ac | 1 +
plugins/Makefile.am | 1 +
plugins/nbd/Makefile.am | 63 +++++
plug...
2018 Nov 14
1
Re: [PATCH 2/2] build: Replace ./nbdkit with a C program.
...4:51 PM, Richard W.M. Jones wrote:
> [...]
>>> + size_t i;
>>> + char *s;
>>> +
>>> + /* If NBDKIT_VALGRIND=1 is set in the environment, then we run the
>>> + * program under valgrind. This is used by the tests. Similarly if
>>> + * NBDKIT_GDB=1 is set, we run the program under GDB, useful during
>>> + * development.
>>> + */
>>> + s = getenv ("NBDKIT_VALGRIND");
>>> + if (s && strcmp (s, "1") == 0) {
>>
>> The shell did this if NBDKIT_VALGRIND was set to a...
2020 Aug 20
0
[PATCH nbdkit 12/13] wrapper: Port the wrapper to run on Windows.
...endif /* WIN32 */
+
int
main (int argc, char *argv[])
{
@@ -141,6 +181,7 @@ main (int argc, char *argv[])
char ts[32];
int r;
+#ifndef WIN32
/* If NBDKIT_VALGRIND=1 is set in the environment, then we run the
* program under valgrind. This is used by the tests. Similarly if
* NBDKIT_GDB=1 is set, we run the program under GDB, useful during
@@ -167,9 +208,15 @@ main (int argc, char *argv[])
passthru ("--args");
}
}
+#endif
/* Needed for plugins written in OCaml. */
- s = getenv ("LD_LIBRARY_PATH");
+#ifndef WIN32
+#define LD_LIBRARY_PATH &qu...
2018 Nov 14
0
Re: [PATCH 2/2] build: Replace ./nbdkit with a C program.
...Blake wrote:
> On 11/13/18 4:51 PM, Richard W.M. Jones wrote:
[...]
> >+ size_t i;
> >+ char *s;
> >+
> >+ /* If NBDKIT_VALGRIND=1 is set in the environment, then we run the
> >+ * program under valgrind. This is used by the tests. Similarly if
> >+ * NBDKIT_GDB=1 is set, we run the program under GDB, useful during
> >+ * development.
> >+ */
> >+ s = getenv ("NBDKIT_VALGRIND");
> >+ if (s && strcmp (s, "1") == 0) {
>
> The shell did this if NBDKIT_VALGRIND was set to anything non-empty;
>...
2018 Dec 02
10
[PATCH nbdkit 0/4] Multiple valgrind improvements and possible security fix.
I worked out why valgrind wasn't being applied to nbdkit when run by
many of the tests (patches 1-2). Unfortunately I'm not able to make
it actually fail tests when valgrind fails. Although the situation is
marginally improved in that you can now manually examine the *.log
files and find valgrind failures that way. Also adds valgrinding of
the Python plugin (patch 3).
Along the way I
2020 Feb 16
6
[nbdkit PATCH v4 0/4] vddk: Drive library loading from libdir parameter.
I'm a lot happier with this version: no mucking with dlmopen(). It
does add a bit more coupling between nbdkit proper and the vddk plugin
(namely, nbdkit now exports a new function that the vddk plugin relies
on), but patch 2 adds testsuite coverage of the new function so we
shouldn't regress.
Patch 1 and 2 are new, patch 3 is unchanged from when Rich posted it
in v2, and patch 4 is
2020 Aug 20
15
[PATCH nbdkit 0/13] Port to Windows without using a separate library.
Also available here:
https://github.com/rwmjones/nbdkit/tree/2020-windows-mingw-nolib
After a lot of work I have made the port to Windows work without using
a separate library. Instead, on Windows only, we build an "import
library" (library of stubs) which resolves references to nbdkit_*
functions in the main program and fixes up the plugin, basically the
first technique outlined in