Bugs item #3440704, was opened at 2011-11-21 03:30
Message generated for change (Comment added) made by grandixximo
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=106744&aid=3440704&group_id=6744

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: G-code Interpreter
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Michael Haberler (mahsofo)
Assigned to: Nobody/Anonymous (nobody)
Summary: RFL with external Oword subs- accidential code execution

Initial Comment:
the attached files bug.ngc and nobug.ngc should be equivalent - the only 
difference is that nobug.ngc has the external sub 100.ngc copied into it

to exercise:
- load nobug.ngc and run-from-line 13 which executes only T3M6 (correct)
- load bug.ngc and run-from-line 5 which also executes T1M6 and T2M6 before T3M6

----------------------------------------------------------------------

Comment By: grandixximo (grandixximo)
Date: 2011-11-23 01:10

Message:
I'm also glad you found a workaround, i wanted just to specify that it will
not work for everyone.

If i may ask, how long do you think it will take to fix this bug?

I'm not pretending you fix the bug tomorrow, not even that you start
working on it today, just want to know how long do you think it will take,
working on it with your normal pace...

----------------------------------------------------------------------

Comment By: Michael Haberler (mahsofo)
Date: 2011-11-23 00:48

Message:
I didnt say I wont fix it but at this point I'm glad I understood the
nature of the bug well enough so I could offer a workaround

the real fix involves substantial work - extending the interpreter to
support source context identification of statements in addition to line
numbers which are not unique in the presence of multiple ngc files

this is needed for other purposes as well, like previewing or stepping
subroutines, but is not in place yet

----------------------------------------------------------------------

Comment By: grandixximo (grandixximo)
Date: 2011-11-21 17:45

Message:
The workaround is fine as long as the sub it's only 3 lines long, when you
start adding lines to the the sub you need to add lines in between
calls,assuming that most subs are much longer than 3 lines, it's not a
reasonable workaround for everyone.



----------------------------------------------------------------------

Comment By: Michael Haberler (mahsofo)
Date: 2011-11-21 08:14

Message:
workaround:
before each o-word call, insert 2 (two!) empty lines
for run-from-line from an oword call, point to the empty line just before
the call 

practice example:

 o100 sub
 (debug, sub-1: param 1 = #1)
 o100 endsub



o100 call [1]


o100 call [2]


(debug,ending)
m2


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=106744&aid=3440704&group_id=6744

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to