Displaying 10 results from an estimated 10 matches for "help_error".
2010 Sep 21
1
Please Help_Error:cannot allocate vector of size 400.4Mb
Hello, everyone,
When I run R, I met:
"error:cannot allocate vector of size 400Mb", My data is large.
What should I do?
Thanks, everyone.
--
View this message in context: http://r.789695.n4.nabble.com/Please-Help-Error-cannot-allocate-vector-of-size-400-4Mb-tp2549004p2549004.html
Sent from the R help mailing list archive at Nabble.com.
2017 Mar 06
7
[PATCH 0/6] Various Coverity fixes #2
Hi,
this patch series fixes few more issues discovered by Coverity.
Thanks,
Pino Toscano (6):
tail: check the return value pf guestfs_set_pgroup
daemon: btrfs: check end_stringsbuf return values everywhere
java: use cleanup handlers for structs (lists) as return values
lib: qemu: improve handling of FILE*
p2v: check more return values
p2v: fix possible close(-1) issue
cat/tail.c
2016 May 12
0
[PATCH 4/4] lib: qemu: Memoize qemu feature detection.
...safe_calloc (g, 1, sizeof *data);
+
+ if (test_qemu (g, data) == -1) {
+ free (data);
+ return NULL;
+ }
+
+ /* Now memoize the qemu output in the cache directory. */
+ debug (g, "saving test results");
+
+ fp = fopen (qemu_help_filename, "w");
+ if (fp == NULL) {
+ help_error:
+ perrorf (g, "%s", qemu_help_filename);
+ if (fp != NULL) fclose (fp);
+ guestfs_int_free_qemu_data (data);
+ return NULL;
+ }
+ if (fprintf (fp, "%s", data->qemu_help) == -1)
+ goto help_error;
+ if (fclose (fp) == -1)
+ goto help_error;
+
+ fp = fope...
2017 Sep 12
0
[PATCH v2 2/5] lib: qemu: Factor out common code for reading and writing cache files.
...if (qemu_fields[i].test (g, data) == -1)
+ goto error;
+ }
/* Now memoize the qemu output in the cache directory. */
debug (g, "saving test results");
- {
- CLEANUP_FCLOSE FILE *fp = NULL;
- fp = fopen (qemu_help_filename, "w");
- if (fp == NULL) {
- help_error:
- perrorf (g, "%s", qemu_help_filename);
- guestfs_int_free_qemu_data (data);
- return NULL;
- }
- if (fprintf (fp, "%s", data->qemu_help) == -1)
- goto help_error;
+ for (i = 0; i < NR_FIELDS; ++i) {
+ CLEANUP_FREE char *filename =
+ sa...
2016 May 25
4
[PATCH 0/4] qemu: Use sqlite to store qemu detection data.
Patches 1 & 2 were posted previously here:
https://www.redhat.com/archives/libguestfs/2016-May/msg00134.html
Patch 3 is a hack so I can test this using my own version of qemu (the
`-L ?' stuff is not upstream).
Patch 4 is where the real action takes place: Replace the caching of
qemu features in blob-like files with a sqlite database. Probably the
best way to approach this patch is to
2016 May 18
2
[PATCH v2 0/2] lib: qemu: Memoize qemu feature detection.
v1 -> v2:
- Rebase on top of Pino's version work.
Two patches went upstream, these are the two remaining patches.
Note the generation number is still inside the qemu.stat file. We
could put it in the filename, I have no particular preference.
Rich.
2017 Sep 11
4
[PATCH 0/4] lib: qemu: Add test for mandatory locking.
The patch I posted last week to disable mandatory locking for readonly
drives
(https://www.redhat.com/archives/libguestfs/2017-September/msg00013.html)
was wrong in a couple of respects. Firstly it didn't work, which I
didn't detect because my tests were testing the wrong thing. Oops.
Secondly it used a simple version number check to detect qemu binaries
implementing mandatory locking.
2017 Sep 12
8
[PATCH v3 0/6] launch: direct: Disable qemu locking when opening drives readonly.
v2 -> v3:
- I addressed everything that Pino mentioned last time.
- It's tricky to get a stable run when multiple copies of qemu are
involved, because the same cache files get overwritten by parallel
libguestfs. So I changed the names of the cache files to include
the qemu binary key (size, mtime), which removes this conflict.
This is in new patch 4/6.
Rich.
2017 Sep 12
9
[PATCH v2 0/5] launch: direct: Disable qemu locking when opening drives readonly (RHBZ#1417306)
Patches 1-4 are almost the same as they are when previously posted
here:
https://www.redhat.com/archives/libguestfs/2017-September/msg00039.html
Patch 5 actually uses the mandatory locking test to turn off locking
in the narrow case where a drive is opened readonly, and then only for
the drive being inspected.
Passes ordinary tests (‘check-direct’ and ‘check-valgrind-direct’).
Rich.
2016 May 12
7
[PATCH 0/4] lib: qemu: Memoize qemu feature detection.
Doing qemu feature detection in the direct backend takes ~100ms
because we need to run `qemu -help' and `qemu -devices ?', and each of
those interacts with glibc's very slow link loader.
Fixing the link loader is really hard. Instead memoize the
output of those two commands.
This patch series first separates all the code dealing with qemu into
a separate module (src/qemu.c) and