help-3dldf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[help-3dldf] RE2: Run Errors


From: Glen Ritchie
Subject: [help-3dldf] RE2: Run Errors
Date: Thu, 26 Aug 2004 17:45:37 -0700 (PDT)

Hi Laurence,

***
Just read your new email on bugs-3dldf.

***
The run2.ldf, which is abc.ldf (from the emails). 

> declaration --> picture_declaration

Yes, you are right. The run command was

>> (gdb) run --multithread-input --multithread-output 
abc.ldf

My mistake.

***
Don't use 'gdb'? Just run outright.

How do I 'selectivly' turn on debugging for that
class's
destructor? Are you suggesting edit the code?

> 3. Turn debugging output on in `~Mutex_Type()'.

********************************************************
address@hidden:~/3dproject/tst-Aug26/run/CWEB> cat abc2.ldf
beginfig(1);
point p[];
p0 := (10, 11, 12);
p1 := (14, 15, 16);
draw p0 .. p1;
endfig
address@hidden:~/3dproject/tst-Aug26/run/CWEB> ls -ltr *.mp
-rw-r-----  1 g users 1720 Jul  9 07:23 3DLDFmp.mp
-rw-r-----  1 g users   87 Aug 26 15:09 3dldfput.mp
-rw-r-----  1 g users    0 Aug 26 15:09 3DLDFput.mp
-rw-r-----  1 g users   91 Aug 26 15:35 run2.mp
-rw-r-----  1 g users   89 Aug 26 15:40 abc.mp

address@hidden:~/3dproject/tst-Aug26/run/CWEB> rm -iv *.mp
rm: remove regular file `3DLDFmp.mp'? n
rm: remove regular file `3dldfput.mp'? y
removed `3dldfput.mp'
rm: remove regular empty file `3DLDFput.mp'? y
removed `3DLDFput.mp'
rm: remove regular file `abc.mp'? y
removed `abc.mp'
rm: remove regular file `run2.mp'? y
removed `run2.mp'
address@hidden:~/3dproject/tst-Aug26/run/CWEB> ./3dldf
--multithread-input --multithread-output abc2.ldf
Parser : `beginfig_command --> BEGINFIG ( INTEGER )'.
Calling `Scan_Parse::beginfig_func()'.
Parser : `beginfig_command --> BEGINFIG ( INTEGER )'.
`Scan_Parse::beginfig_func()' returned 0.

*** Parser: command --> beginfig_command.
[Thread 2] *** Parser: statement_list -->
statement_list statement.

*** Parser: declared_suffix (declared_suffix
LEFT_BRACKET RIGHT_BRACKET).

*** Parser: declaration_list (declared_variable).
[Thread 2] *** Parser: point_declaration -->
POINT_DECLARATOR declaration_list. [Thread 2] ***
Parser: point_declaration: --> POINT_DECLARATOR
declaration_list:   `shape_decl_func()' returned 0.

*** Parser: declaration --> point_declaration.
[Thread 2] *** Parser: statement_list -->
statement_list statement.

*** Parser: suffix (empty).

*** Parser: numeric_token (INTEGER).
$$ == 0

*** Parser: subscript (numeric_token).
$$ == 0

*** Parser: suffix (suffix subscript).
$$ == -
scanner_node->token_real_vector.back() == 0
[Thread 2] *** Parser: variable --> tag suffix.

[Thread 2] *** Parser: variable --> tag suffix:
sb.first == p-.
[Thread 2] *** Parser: `point_variable --> variable
POINT'.
[Thread 2] In parser rule `point_variable --> variable
POINT':
`Scan_Parse::variable_type()' succeeded.

*** Parser: numeric_token (INTEGER).
$$ == 10

*** Parser: numeric_token_atom -->numeric_token).
$$ == 10

*** Parser: numeric_atom (numeric_token_atom).
$$ == 10

*** Parser: numeric_primary --> numeric_atom.
$$ == 10

*** Parser: numeric_secondary (numeric_primary).
$$ == 10

*** Parser: numeric_tertiary (numeric_secondary).
$$ == 10

*** Parser: numeric_expression (numeric_tertiary).
$$ == 10

*** Parser: numeric_token (INTEGER).
$$ == 11

*** Parser: numeric_token_atom -->numeric_token).
$$ == 11

*** Parser: numeric_atom (numeric_token_atom).
$$ == 11

*** Parser: numeric_primary --> numeric_atom.
$$ == 11

*** Parser: numeric_secondary (numeric_primary).
$$ == 11

*** Parser: numeric_tertiary (numeric_secondary).
$$ == 11

*** Parser: numeric_expression (numeric_tertiary).
$$ == 11

*** Parser: numeric_subvector --> numeric_expression
COMMA numeric_expression.

*** Parser: numeric_token (INTEGER).
$$ == 12

*** Parser: numeric_token_atom -->numeric_token).
$$ == 12

*** Parser: numeric_atom (numeric_token_atom).
$$ == 12

*** Parser: numeric_primary --> numeric_atom.
$$ == 12

*** Parser: numeric_secondary (numeric_primary).
$$ == 12

*** Parser: numeric_tertiary (numeric_secondary).
$$ == 12

*** Parser: numeric_expression (numeric_tertiary).
$$ == 12

*** Parser: numeric_subvector --> numeric_subvector
COMMA numeric_expression.

*** Parser: numeric_vector --> LEFT_PARENTHESIS
numeric_subvector RIGHT_PARENTHESIS.

*** Parser: point_primary --> numeric_vector.
p: (10, 11, 12)

*** Parser: point_secondary (point_primary).

*** Parser: point_tertiary (point_secondary).

*** Parser: point_expression (point_tertiary).
[Thread 2] *** Parser: `point_assignment -->
point_variable ASSIGN point_expression'.
[Thread 2] *** Parser: statement_list -->
statement_list statement.

*** Parser: suffix (empty).

*** Parser: numeric_token (INTEGER).
$$ == 1

*** Parser: subscript (numeric_token).
$$ == 1

*** Parser: suffix (suffix subscript).
$$ == -
scanner_node->token_real_vector.back() == 1
[Thread 2] *** Parser: variable --> tag suffix.

[Thread 2] *** Parser: variable --> tag suffix:
sb.first == p-.
[Thread 2] *** Parser: `point_variable --> variable
POINT'.
[Thread 2] In parser rule `point_variable --> variable
POINT':
`Scan_Parse::variable_type()' succeeded.

*** Parser: numeric_token (INTEGER).
$$ == 14

*** Parser: numeric_token_atom -->numeric_token).
$$ == 14

*** Parser: numeric_atom (numeric_token_atom).
$$ == 14

*** Parser: numeric_primary --> numeric_atom.
$$ == 14

*** Parser: numeric_secondary (numeric_primary).
$$ == 14

*** Parser: numeric_tertiary (numeric_secondary).
$$ == 14

*** Parser: numeric_expression (numeric_tertiary).
$$ == 14

*** Parser: numeric_token (INTEGER).
$$ == 15

*** Parser: numeric_token_atom -->numeric_token).
$$ == 15

*** Parser: numeric_atom (numeric_token_atom).
$$ == 15

*** Parser: numeric_primary --> numeric_atom.
$$ == 15

*** Parser: numeric_secondary (numeric_primary).
$$ == 15

*** Parser: numeric_tertiary (numeric_secondary).
$$ == 15

*** Parser: numeric_expression (numeric_tertiary).
$$ == 15

*** Parser: numeric_subvector --> numeric_expression
COMMA numeric_expression.

*** Parser: numeric_token (INTEGER).
$$ == 16

*** Parser: numeric_token_atom -->numeric_token).
$$ == 16

*** Parser: numeric_atom (numeric_token_atom).
$$ == 16

*** Parser: numeric_primary --> numeric_atom.
$$ == 16

*** Parser: numeric_secondary (numeric_primary).
$$ == 16

*** Parser: numeric_tertiary (numeric_secondary).
$$ == 16

*** Parser: numeric_expression (numeric_tertiary).
$$ == 16

*** Parser: numeric_subvector --> numeric_subvector
COMMA numeric_expression.

*** Parser: numeric_vector --> LEFT_PARENTHESIS
numeric_subvector RIGHT_PARENTHESIS.

*** Parser: point_primary --> numeric_vector.
p: (14, 15, 16)

*** Parser: point_secondary (point_primary).

*** Parser: point_tertiary (point_secondary).

*** Parser: point_expression (point_tertiary).
[Thread 2] *** Parser: `point_assignment -->
point_variable ASSIGN point_expression'.
[Thread 2] *** Parser: statement_list -->
statement_list statement.

*** Parser: basic_drawing_command --> DRAW.

*** Parser: suffix (empty).

*** Parser: numeric_token (INTEGER).
$$ == 0

*** Parser: subscript (numeric_token).
$$ == 0

*** Parser: suffix (suffix subscript).
$$ == -
scanner_node->token_real_vector.back() == 0
[Thread 2] *** Parser: variable --> tag suffix.

[Thread 2] *** Parser: variable --> tag suffix:
sb.first == p-.
[Thread 2] *** Parser: `point_variable --> variable
POINT'.
[Thread 2] In parser rule `point_variable --> variable
POINT':
`Scan_Parse::variable_type()' succeeded.

*** Parser: point_primary --> point_variable.

*** Parser: point_secondary (point_primary).

*** Parser: point_tertiary (point_secondary).

*** Parser: point_expression (point_tertiary).

*** Parser: point_connector_list --> point_expression,
(point_connector_list 1).
*** Parser: basic_path_join --> PERIOD_PAIR,
(basic_path_join 1).

*** Parser: path_join --> basic_path_join, (path_join
1).

*** Parser: suffix (empty).

*** Parser: numeric_token (INTEGER).
$$ == 1

*** Parser: subscript (numeric_token).
$$ == 1

*** Parser: suffix (suffix subscript).
$$ == -
scanner_node->token_real_vector.back() == 1
[Thread 2] *** Parser: variable --> tag suffix.

[Thread 2] *** Parser: variable --> tag suffix:
sb.first == p-.
[Thread 2] *** Parser: `point_variable --> variable
POINT'.
[Thread 2] In parser rule `point_variable --> variable
POINT':
`Scan_Parse::variable_type()' succeeded.

*** Parser: point_primary --> point_variable.

*** Parser: point_secondary (point_primary).

*** Parser: point_tertiary (point_secondary).

*** Parser: point_expression (point_tertiary).

*** Parser: point_connector_list -->
point_connector_list path_join point_expression,
(point_connector_list 2).

*** Parser: path_expression --> point_connector_list
(path_expression 2).
$$:
points.size() == 2
connectors.size() == 1
(10, 11, 12) .. (14, 15, 16);
fill_draw_value == 0
draw_color == 0
fill_color == 0
pen == 0
dash_pattern == 0
arrow == false.

*** Parser: path_like_expression: path_expression.

*** Parser: with_clause_draw_list --> EMPTY.
[Thread 2] *** Parser: drawing_command -->
basic_drawing_command path_like_expression
with_clause_draw_list.
[Thread 2] In parser rule
`drawing_command --> basic_drawing_command
path_like_expression with_clause_draw_list':
`Scan_Parse::drawing_command()' succeeded.
*** Parser: `command --> drawing_command'.
[Thread 2] *** Parser: statement_list -->
statement_list statement.

*** Parser: with_clause_output_list --> EMPTY.
[Thread 2] *** Parser: endfig_command --> ENDFIG
with_clause_output_list.


*** Parser: command --> endfig_command.
In `main()': After `pthread_create()':
status == 0
ERROR! In yyparse(): syntax error, unexpected $end,
expecting SEMI_COLON
[Thread 2] ERROR! In `parse_func()':'
`yyparse()' returned with `*return value' == 1
Exiting `parse_func().
Type <RETURN> to continue.

ERROR! In `Mutex_Type::~Mutex_Type(void)':
`pthread_mutex_destroy()' failed.
`status' == `EBUSY' (mutex is in use).
Returning and will try to continue.
Type <RETURN> to continue.

In `main()': After join, thread 2:  status == 0
*return_value == 1
Exiting 3DLDF Version 1.2.0.0.

address@hidden:~/3dproject/tst-Aug26/run/CWEB>

********************************************************

address@hidden:~/3dproject/tst-Aug26/run/CWEB> cat abc2.mp
%%%% abc2.mp.
%%%% Generated on Thu Aug 26 19:39:42 2004
%%%% from abc2.ldf by GNU 3DLDF.

beginfig(1);
draw (9.090909cm, 0.909091cm) .. (10.769231cm,
3.846154cm);
endfig;

address@hidden:~/3dproject/tst-Aug26/run/CWEB> cat ldf_1.log
%%%% ldf_1.log
%%%% Generated on Thu Aug 26 19:39:42 2004 from GNU
3DLDF 1.2.0.0.

[Thread 1] Entering `main()'.


address@hidden:~/3dproject/tst-Aug26/run/CWEB> cat ldf_2.log
%%%% ldf_2.log
%%%% Generated on Thu Aug 26 19:39:42 2004 from GNU
3DLDF 1.2.0.0.

[Thread 2] *** Parser: statement_list -->
statement_list statement.
[Thread 2] *** Parser: point_declaration -->
POINT_DECLARATOR declaration_list. [Thread 2] Entering
`Scan_Parse::shape_decl_func()'.
[Thread 2] In `Scan_Parse::shape_decl_func()':
Not setting new object to INVALID_POINT.
[Thread 2] Exiting `Scan_Parse::shape_decl_func()'
successfully with return value 0.
[Thread 2] *** Parser: point_declaration: -->
POINT_DECLARATOR declaration_list:  
`shape_decl_func()' returned 0.
[Thread 2] *** Parser: statement_list -->
statement_list statement.
[Thread 2] *** Parser: `point_variable --> variable
POINT'.
[Thread 2] In parser rule `point_variable --> variable
POINT':
`Scan_Parse::variable_type()' succeeded.
[Thread 2] *** Parser: `point_assignment -->
point_variable ASSIGN point_expression'.
[Thread 2] Entering `Scan_Parse::assign_simple()'.
[Thread 2] *** Parser: assignment -->
point_assignment.
[Thread 2] *** Parser: statement_list -->
statement_list statement.
[Thread 2] *** Parser: `point_variable --> variable
POINT'.
[Thread 2] In parser rule `point_variable --> variable
POINT':
`Scan_Parse::variable_type()' succeeded.
[Thread 2] *** Parser: `point_assignment -->
point_variable ASSIGN point_expression'.
[Thread 2] Entering `Scan_Parse::assign_simple()'.
[Thread 2] *** Parser: assignment -->
point_assignment.
[Thread 2] *** Parser: statement_list -->
statement_list statement.
[Thread 2] *** Parser: `point_variable --> variable
POINT'.
[Thread 2] In parser rule `point_variable --> variable
POINT':
`Scan_Parse::variable_type()' succeeded.
[Thread 2] *** Parser: `point_variable --> variable
POINT'.
[Thread 2] In parser rule `point_variable --> variable
POINT':
`Scan_Parse::variable_type()' succeeded.
[Thread 2] *** Parser: drawing_command -->
basic_drawing_command path_like_expression
with_clause_draw_list.
[Thread 2] In parser rule
`drawing_command --> basic_drawing_command
path_like_expression with_clause_draw_list':
`Scan_Parse::drawing_command()' succeeded.
[Thread 2] *** Parser: statement_list -->
statement_list statement.
[Thread 2] *** Parser: endfig_command --> ENDFIG
with_clause_output_list.



address@hidden:~/3dproject/tst-Aug26/run/CWEB> cat ldf_3.log
%%%% ldf_3.log
%%%% Generated on Thu Aug 26 19:39:42 2004 from GNU
3DLDF 1.2.0.0.

[Thread 3] Entering `Scan_Parse::output_func()'.
[Thread 3] In `output_func()':About to output picture.
[Thread 3] In `output_func()':Finished outputting
picture.
[Thread 3] In `output_func()':
`picture_arg->endfig' == `true'.
[Thread 3] In `Scan_Parse::output_func()':
`scanner_node->output_pending.lock()' succeeded!
[Thread 3] In `Scan_Parse::output_func()':
`scanner_node->output_pending.signal()' succeeded.
[Thread 3] In `Scan_Parse::output_func()':
`scanner_node->output_pending.unlock()' succeeded!
[Thread 3] . Exiting `Scan_Parse::output_func()'.



address@hidden:~/3dproject/tst-Aug26/run/CWEB>

***

I would trying changing the value of the Point
variable 'p'
in this sample. But, which file are you talking about
(*.web source)?

Or do you mean with an input file?

> I think it would be a good idea if you would try to
relate
> the debugging output with the code in your file. 
This way,
> you can get an idea of what the parser is doing. 
Just
> input this, for example:  
>
> point p;
>
> and then
>
> point p;
> p := 1;
>
> and build up gradually.

***
Yes, I'm quickly getting confused. This is going to
take
more time.

It'll have to wait till the weekend. When I can spend
some
time looking over the whole package. Besides, I need
to
read up on MetaPost.

Glen

***
PS. Ok, you beat me replying to my own message.

I'll send this and see what you said, already, next!!!

%% Local Variables:
%% mode:auto-fill
%% fill-column:59
%% End:


                
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]