Bugs item #3596942, was opened at 2012-12-17 08:29 Message generated for change (Comment added) made by seb_kuzminsky You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=106744&aid=3596942&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: Task Controller Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Sebastian Kuzminsky (seb_kuzminsky) Assigned to: Nobody/Anonymous (nobody) Summary: segfault in task with bad vars and/or position file Initial Comment: Gene Haskett reported the bug here: http://thread.gmane.org/gmane.linux.distributions.emc.devel/8656/ Master branch, realtime build, task would segfault at startup. Gene found a work-around here: http://thread.gmane.org/gmane.linux.distributions.emc.devel/8656/focus=8678 The position.txt file was empty. He removed both the position.txt file and the vars file (linuxcnc.vars), and the segfault went away and everything worked fine. ---------------------------------------------------------------------- Comment By: Sebastian Kuzminsky (seb_kuzminsky) Date: 2012-12-17 13:04 Message: This can be reproduced in sim: build master start the axis.ini config, let axis start, then quit truncate the position.txt file to 0 bytes restart axis.ini, milltask dumps core, preventing linuxcnc from starting I think there are two problems here: The first bug is that milltask segfaults when it tries to read a 0-byte position.txt file. The other bug is that the position.txt file can be corrupted (the original bug was apparently preceded by linuxcnc crashing). We should be using the rename(2) method to provide safe, atomic updates of all our critical files. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=106744&aid=3596942&group_id=6744 ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
