search for: do_parse

Displaying 20 results from an estimated 23 matches for "do_parse".

2006 May 19
1
Strange error when testing layered web service
...ecode_tag'' c:/ruby/lib/ruby/1.8/soap/parser.rb:179:in `decode_tag'' c:/ruby/lib/ruby/1.8/soap/parser.rb:130:in `start_element'' c:/ruby/lib/ruby/1.8/xsd/xmlparser/parser.rb:67:in `start_element'' c:/ruby/lib/ruby/1.8/xsd/xmlparser/xmlparser.rb:34:in `do_parse'' c:/ruby/lib/ruby/1.8/xsd/xmlparser/xmlparser.rb:31:in `do_parse'' c:/ruby/lib/ruby/1.8/soap/parser.rb:92:in `parse'' c:/ruby/lib/ruby/1.8/soap/processor.rb:39:in `unmarshal'' c:/ruby/lib/ruby/gems/1.8/gems/actionwebservice-1.1.2/lib/action_web_ser vic...
2014 Mar 20
5
[PATCH 1/3] builder/virt-index-validate: try to cleanup in any occasion
...62,7 @@ main (int argc, char *argv[]) struct section *sections; struct parse_context context; FILE *in; + int ret; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEBASEDIR); @@ -109,19 +110,22 @@ main (int argc, char *argv[]) exit (EXIT_FAILURE); } - if (do_parse (&context, in) != 0) { - fprintf (stderr, _("%s: '%s' could not be validated, see errors above\n"), + ret = do_parse (&context, in); + + if (fclose (in) == EOF) { + fprintf (stderr, _("%s: %s: error closing input file: %m (ignored)\n"), prog...
2017 Sep 26
2
building virt-builder still seems to fail.
...hat even after commit df5bd5741b37da9cf97d7a76ac2805557aa630db Author: Richard W.M. Jones <rjones@redhat.com> Date: Tue Apr 29 15:43:20 2014 +0100 builder: Fix parallel builds of index-parse.o. there is a small chance that a build may go wrong with the described symtom, missing "do_parse" symbol. It just happened to me on Debian's ppc64el buildd[1] and I could not reproduce the issue on a ppc64el porterbox -- the whole build worked just fine. Cheers, -Hilko [1] <https://buildd.debian.org/status/fetch.php?pkg=libguestfs&arch=ppc64el&ver=1%3A1.36.6-3&stamp=...
2014 Mar 19
7
[PATCH 1/3] builder: make the C index parser reentrant
...emptylines: %% void -yyerror (const char *msg) +yyerror (YYLTYPE * yylloc, yyscan_t scanner, struct parse_context *context, const char *msg) { fprintf (stderr, "syntax error at line %d: %s\n", - yylloc.first_line, msg); + yylloc->first_line, msg); +} + +int +do_parse (struct parse_context *context, FILE *in) +{ + yyscan_t scanner; + int res; + + scanner_init (&scanner, context, in); + res = yyparse (scanner, context); + scanner_destroy (scanner); + + return res; } diff --git a/builder/index-parser-c.c b/builder/index-parser-c.c index fbbebff..7aeb6d0...
2014 Mar 20
2
Re: [PATCH 1/3] builder/virt-index-validate: try to cleanup in any occasion
...int ret; > > > > setlocale (LC_ALL, ""); > > bindtextdomain (PACKAGE, LOCALEBASEDIR); > > > > @@ -109,19 +110,22 @@ main (int argc, char *argv[]) > > > > exit (EXIT_FAILURE); > > > > } > > > > - if (do_parse (&context, in) != 0) { > > - fprintf (stderr, _("%s: '%s' could not be validated, see errors > > above\n"), + ret = do_parse (&context, in); > > + > > + if (fclose (in) == EOF) { > > + fprintf (stderr, _("%s: %s: error closing inp...
2005 Aug 23
8
Web Services testing... Agile Book p. 435
I am attempting to test the web services added during chapter 20 of the Agile book. The code as written in the book yields 2 errors: test_find_product_by_id(BackendControllerApiTest): XMLParserError: syntax error Anyone hit this yet and get it to work? Thanks. Ken _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2014 Apr 22
3
[PATCH 1/2] builder: add an optional suffix string for INI parsing errors
...rror_suffix : ""); } int diff --git a/builder/index-parser-c.c b/builder/index-parser-c.c index 5dcc82f..099bdf8 100644 --- a/builder/index-parser-c.c +++ b/builder/index-parser-c.c @@ -46,7 +46,7 @@ extern void unix_error (int errcode, char * cmdname, value arg) Noreturn; extern int do_parse (struct parse_context *context, FILE *in); value -virt_builder_parse_index (value progv, value filenamev) +virt_builder_parse_index (value progv, value error_suffixv, value filenamev) { CAMLparam2 (progv, filenamev); CAMLlocal5 (rv, v, sv, sv2, fv); @@ -58,6 +58,7 @@ virt_builder_parse_in...
2015 Jul 08
7
[PATCH 0/6] RFC: basic subscription-manager support in virt-customize
Hi, this series introduces a basic support for registering/attaching/unregistering RHEL guests using subscription-manager, so it is possible to do for example: $ cat <<EOF > sm.conf [general] username=user password=pass [attach-0] pool=ID EOF $ virt-customize -a rhel-guest.qcow2 \ --sm-config sm.conf --sm-register --sm-attach 0 \ --install pkg1 --install pkg2
2017 Sep 26
0
Re: building virt-builder still seems to fail.
...37da9cf97d7a76ac2805557aa630db > Author: Richard W.M. Jones <rjones@redhat.com> > Date: Tue Apr 29 15:43:20 2014 +0100 > > builder: Fix parallel builds of index-parse.o. > > there is a small chance that a build may go wrong with the described > symtom, missing "do_parse" symbol. The affected tree is one that had been configured using --disable-ocaml, therefore the special-case handling for index-parse.h did not work. In the chapter about "Yacc and Lex support", the automake documentation claims that adding the generated .h file to BUILT_SOURCES is...
2024 May 28
2
Segfault when parsing UTF-8 text with srcrefs
Hi all, When I run the following code, R segfaults: text <- "?" srcfile <- srcfilecopy("test.r", text) parse(textConnection(text), srcfile = srcfile) It doesn't segfault if text is ASCII, or it's not wrapped in textConnection, or srcfile isn't set. Hadley -- http://hadley.nz [[alternative HTML version deleted]]
2003 Apr 16
0
vignette segfault bt
...src/main/gram.y:1886 #6 0x080a87e4 in Rf_yyparse () at /usr/local/share/bison/bison.simple:595 #7 0x080a98cd in R_Parse1 (status=0x46) at /ext/R/cvs/R-devel/src/main/gram.y:948 #8 0x080a9bee in R_Parse (n=-1, status=0xbfffcd68) at /ext/R/cvs/R-devel/src/main/gram.y:1083 #9 0x081175d1 in do_parse (call=0x883d674, op=0x8205024, args=0x8839138, env=0x9207e84) at source.c:76 #10 0x080c99e4 in do_internal (call=0x883d5e8, op=0x81fb5e8, args=0x92088bc, env=0x9207e84) at names.c:1056 #11 0x080a3b28 in Rf_eval (e=0x883d5e8, rho=0x9207e84) at eval.c:418 #12 0x080a4f62 in do_begin (call=0x88...
2017 Feb 14
0
[PATCH v2 1/2] GCC 7: Add __attribute__((noreturn)) to some usage functions which call exit.
...| 2 +- utils/qemu-speed-test/qemu-speed-test.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/builder/index-validate.c b/builder/index-validate.c index d3912f3..33086b2 100644 --- a/builder/index-validate.c +++ b/builder/index-validate.c @@ -38,7 +38,7 @@ extern int do_parse (struct parse_context *context, FILE *in); -static void +static void __attribute__((noreturn)) usage (int exit_status) { printf ("%s index\n", getprogname ()); diff --git a/utils/boot-analysis/boot-analysis.c b/utils/boot-analysis/boot-analysis.c index 04b3bdd..1bec9a5 100644 --- a...
2005 Dec 31
1
Error when Testing AWS API (ArgumentError: illegal refid http://test.host/login)
...mlparser/rexmlparser.rb:34:in `tag_start'' /usr/local/ruby/lib/ruby/1.8/rexml/parsers/streamparser.rb:24:in `parse'' /usr/local/ruby/lib/ruby/1.8/rexml/document.rb:173:in `parse_stream'' /usr/local/ruby/lib/ruby/1.8/xsd/xmlparser/rexmlparser.rb:27:in `do_parse'' /usr/local/ruby/lib/ruby/1.8/soap/parser.rb:92:in `parse'' /usr/local/ruby/lib/ruby/1.8/soap/processor.rb:39:in `unmarshal'' /usr/local/ruby/lib/ruby/gems/1.8/gems/actionwebservice-1.0.0/lib/action_web_service/protocol/soap_protocol.rb:84:in `decode...
1999 Jan 27
0
load() patch
...+load("all.Rdata",globalenv()) } \keyword{file} diff -r --unified R-0.63.2.orig/src/main/names.c R-0.63.2/src/main/names.c --- R-0.63.2.orig/src/main/names.c Wed Nov 25 09:51:49 1998 +++ R-0.63.2/src/main/names.c Tue Jan 26 16:15:07 1999 @@ -472,7 +472,7 @@ #endif {"parse", do_parse, 0, 11, 4, PP_FUNCALL}, {"save", do_save, 0, 111, 3, PP_FUNCALL}, -{"load", do_load, 0, 111, 1, PP_FUNCALL}, +{"load", do_load, 0, 111, 2, PP_FUNCALL}, {"hdf5save", do_hdf5save, 0, 0, -1, PP_FUNCALL}, {"hdf5load", do_hdf5load, 0, 11, 2, PP_FUNCA...
2004 Jun 25
4
Bug in parse(text = <long polynom>) (PR#7022)
Merci beaucoup, Jean, for the bug report -- which I'm no "completeing" to R-bugs >>>>> "Jean" == Jean Coursol <coursol@cristal.math.u-psud.fr> >>>>> on Thu, 24 Jun 2004 15:22:37 +0200 (CEST) writes: Jean> I was exploring the polynom library with students: <and found a segmentation fault from parsing a long expression>
2003 Apr 05
0
sweave/gc segfault bt
...n R_Parse1 (status=0x46) at /ext/R/cvs/R-devel/src/main/gram.y:948 #8 0x080a9e1e in R_Parse (n=-1, status=0xbfffcdf8) at /ext/R/cvs/R-devel/src/main/gram.y:1083 #9 0x080a9fa3 in R_ParseConn (con=0x1, n=-1, status=0xbfffcdf8) at /ext/R/cvs/R-devel/src/main/gram.y:1147 #10 0x08117b61 in do_parse (call=0x883dc90, op=0x8205704, args=0x88397c0, env=0x94f5cf0) at source.c:76 #11 0x080c9e24 in do_internal (call=0x883dc04, op=0x81fbcc8, args=0x94f52d4, env=0x94f5cf0) at names.c:1056 #12 0x080a3d18 in Rf_eval (e=0x883dc04, rho=0x94f5cf0) at eval.c:418 #13 0x080a5172 in do_begin (call=0x...
2017 Feb 14
4
[PATCH v2 0/2] GCC 7: Misc fixes
v1 -> v2: - Use intprops macro suggested by danpb. Rich.
2002 Aug 14
0
source() crashes on long lines (PR#1900)
...D1 R.DLL:004873D1 Rf_yyerror # 00487933 R.DLL:00487933 Rf_isValidName # 00487ECC R.DLL:00487ECC Rf_yylex # 00484D71 R.DLL:00484D71 Rf_yyparse # 004866DF R.DLL:004866DF Rf_yyparse # 004869E1 R.DLL:004869E1 R_Parse # 00486B66 R.DLL:00486B66 R_ParseConn # 004F6AC3 R.DLL:004F6AC3 do_parse # 004AA5A7 R.DLL:004AA5A7 do_internal # 0047F494 R.DLL:0047F494 Rf_eval # 00480808 R.DLL:00480808 do_begin # 0047F494 R.DLL:0047F494 Rf_eval # 0047FAA6 R.DLL:0047FAA6 Rf_applyClosure # 0047F6DD R.DLL:0047F6DD Rf_eval # 00481065 R.DLL:00481065 do_set # 0047F494 R.DLL:0047F494...
2017 Feb 14
2
[PATCH 1/2] GCC 7: Add __attribute__((noreturn)) to some usage functions which call exit.
...| 2 +- utils/qemu-speed-test/qemu-speed-test.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/builder/index-validate.c b/builder/index-validate.c index d3912f3..33086b2 100644 --- a/builder/index-validate.c +++ b/builder/index-validate.c @@ -38,7 +38,7 @@ extern int do_parse (struct parse_context *context, FILE *in); -static void +static void __attribute__((noreturn)) usage (int exit_status) { printf ("%s index\n", getprogname ()); diff --git a/utils/boot-analysis/boot-analysis.c b/utils/boot-analysis/boot-analysis.c index 04b3bdd..1bec9a5 100644 --- a...
2000 Jan 29
1
HDF5 as a module
...============================================================ RCS file: /home/rcvs/src/R/src/main/names.c,v retrieving revision 1.119 diff -c -r1.119 names.c *** src/main/names.c 2000/01/27 05:41:22 1.119 --- src/main/names.c 2000/01/29 00:23:18 *************** *** 515,522 **** {"parse", do_parse, 0, 11, 4, PP_FUNCALL}, {"save", do_save, 0, 111, 4, PP_FUNCALL}, {"load", do_load, 0, 111, 2, PP_FUNCALL}, - {"hdf5save", do_hdf5save, 0, 0, -1, PP_FUNCALL}, - {"hdf5load", do_hdf5load, 0, 11, 2, PP_FUNCALL}, {"deparse", do_deparse, 0, 11, 2...