Gene,
I dont think it's the HAL file (gut feeling) - could be any number of reasons,
see below:
Am 15.12.2012 um 23:38 schrieb Gene Heskett:
> Greetings;
>
> I have a startup error that doesn't make any sense to me.
>
> From dmsg:
>
> gene@lathe:~/linuxcnc/configs/my-lathe$ linuxcnc -l
> LINUXCNC - 2.6.0-pre0-3610-g3ff05c9
> Machine configuration directory is '/home/gene/linuxcnc/configs/my-lathe'
> Machine configuration file is 'my-lathe.ini'
> Starting LinuxCNC...
> redis server started as: 'redis-server ', logging to: /dev/null
> (time=1355606562.264318,pid=2836): Registering server on TCP port 5005.
> (time=1355606562.264584,pid=2836): running server for TCP port 5005
> (connection_socket = 3).
> io started
> iocontrol: machine: 'my-lathe' version 'unknown'
> halcmd loadusr io started
> task pid=2898
> task: machine: 'my-lathe' version 'unknown'
> emcTaskOnce: Python plugin configuredemcTaskOnce: extract(task_instance):
> KeyError: ('task',)
>
> emcTaskOnce: no Python Task() instance available, using default iocontrol-
> based task methods
> waiting for s.axes
> waiting for s.axes
> waiting for s.axes
> waiting for s.axes
> waiting for s.axes
> waiting for s.axes
> waiting for s.axes
> waiting for s.axes
> waiting for s.axes
> A configuration error is preventing LinuxCNC from starting.
> More information may be available when running from a terminal.
> Shutting down and cleaning up LinuxCNC...
> (time=1355606570.945526,pid=2836): Deleting 5 channels from the
> NML_Main_Channel_List.
> (time=1355606570.945584,pid=2836): Deleting emcCommand NML channel from
> NML_Main_Channel_List.
> (time=1355606570.945614,pid=2836): deleting NML (1)
> (time=1355606570.945640,pid=2836): delete (CMS *) 0x980a1e8;
> (time=1355606570.945678,pid=2836): rcs_shm_close(shm->key=1001(0x3E9),shm-
>> size=8192(0x2000),shm->addr=0xb7708000)
> (time=1355606570.945737,pid=2836): deleting CMS (emcCommand)
> (time=1355606570.945771,pid=2836): free( data = 0x980abd0);
> (time=1355606570.945800,pid=2836): Leaving ~CMS()
> (time=1355606570.945825,pid=2836): CMS::delete(0x980a1e8)
> (time=1355606570.945852,pid=2836): CMS::delete successful.
> (time=1355606570.945878,pid=2836): Leaving ~NML()
> (time=1355606570.945902,pid=2836): NML channel deleted from
> NML_Main_Channel_List
> (time=1355606570.945928,pid=2836): Deleting emcStatus NML channel from
> NML_Main_Channel_List.
> (time=1355606570.945954,pid=2836): deleting NML (2)
> (time=1355606570.945979,pid=2836): delete (CMS *) 0x980fab8;
> (time=1355606570.946008,pid=2836): rcs_shm_close(shm->key=1002(0x3EA),shm-
>> size=16384(0x4000),shm->addr=0xb7704000)
> (time=1355606570.946050,pid=2836): deleting CMS (emcStatus)
> (time=1355606570.946081,pid=2836): free( data = 0x98104a0);
> (time=1355606570.946109,pid=2836): Leaving ~CMS()
> (time=1355606570.946133,pid=2836): CMS::delete(0x980fab8)
> (time=1355606570.946158,pid=2836): CMS::delete successful.
> (time=1355606570.946184,pid=2836): Leaving ~NML()
> (time=1355606570.946209,pid=2836): NML channel deleted from
> NML_Main_Channel_List
> (time=1355606570.946233,pid=2836): Deleting emcError NML channel from
> NML_Main_Channel_List.
> (time=1355606570.946259,pid=2836): deleting NML (3)
> (time=1355606570.946284,pid=2836): delete (CMS *) 0x98148d0;
> (time=1355606570.946312,pid=2836): rcs_shm_close(shm->key=1003(0x3EB),shm-
>> size=8192(0x2000),shm->addr=0xb7702000)
> (time=1355606570.946355,pid=2836): deleting CMS (emcError)
> (time=1355606570.946385,pid=2836): free( data = 0x98152b8);
> (time=1355606570.946413,pid=2836): Leaving ~CMS()
> (time=1355606570.946438,pid=2836): CMS::delete(0x98148d0)
> (time=1355606570.946463,pid=2836): CMS::delete successful.
> (time=1355606570.946489,pid=2836): Leaving ~NML()
> (time=1355606570.946513,pid=2836): NML channel deleted from
> NML_Main_Channel_List
> (time=1355606570.946538,pid=2836): Deleting toolCmd NML channel from
> NML_Main_Channel_List.
> (time=1355606570.946564,pid=2836): deleting NML (4)
> (time=1355606570.946589,pid=2836): delete (CMS *) 0x9817638;
> (time=1355606570.946616,pid=2836): rcs_shm_close(shm->key=1004(0x3EC),shm-
>> size=1024(0x400),shm->addr=0xb7701000)
> (time=1355606570.946660,pid=2836): deleting CMS (toolCmd)
> (time=1355606570.946689,pid=2836): free( data = 0x9818020);
> (time=1355606570.946716,pid=2836): Leaving ~CMS()
> (time=1355606570.946740,pid=2836): CMS::delete(0x9817638)
> (time=1355606570.946766,pid=2836): CMS::delete successful.
> (time=1355606570.946792,pid=2836): Leaving ~NML()
> (time=1355606570.946817,pid=2836): NML channel deleted from
> NML_Main_Channel_List
> (time=1355606570.946841,pid=2836): Deleting toolSts NML channel from
> NML_Main_Channel_List.
> (time=1355606570.946869,pid=2836): deleting NML (5)
> (time=1355606570.946894,pid=2836): delete (CMS *) 0x98187d0;
> (time=1355606570.946921,pid=2836): rcs_shm_close(shm->key=1005(0x3ED),shm-
>> size=8192(0x2000),shm->addr=0xb76ff000)
> (time=1355606570.946964,pid=2836): deleting CMS (toolSts)
> (time=1355606570.946994,pid=2836): free( data = 0x98191b8);
> (time=1355606570.947020,pid=2836): Leaving ~CMS()
> (time=1355606570.947044,pid=2836): CMS::delete(0x98187d0)
> (time=1355606570.947071,pid=2836): CMS::delete successful.
> (time=1355606570.947096,pid=2836): Leaving ~NML()
> (time=1355606570.947120,pid=2836): NML channel deleted from
> NML_Main_Channel_List
> (time=1355606570.947147,pid=2836): deleting NML (1)
> (time=1355606570.947174,pid=2836): Leaving ~NML()
> (time=1355606570.947200,pid=2836): NML::operater delete(0x980a008)
> (time=1355606570.947228,pid=2836): NML channel deleted from
> Dynamically_Allocated_NML_Objects
> (time=1355606570.947255,pid=2836): deleting NML (2)
> (time=1355606570.947280,pid=2836): Leaving ~NML()
> (time=1355606570.947304,pid=2836): NML::operater delete(0x980f938)
> (time=1355606570.947330,pid=2836): NML channel deleted from
> Dynamically_Allocated_NML_Objects
> (time=1355606570.947356,pid=2836): deleting NML (3)
> (time=1355606570.947381,pid=2836): Leaving ~NML()
> (time=1355606570.947405,pid=2836): NML::operater delete(0x98146d0)
> (time=1355606570.947431,pid=2836): NML channel deleted from
> Dynamically_Allocated_NML_Objects
> (time=1355606570.947456,pid=2836): deleting NML (4)
> (time=1355606570.947481,pid=2836): Leaving ~NML()
> (time=1355606570.947505,pid=2836): NML::operater delete(0x98174b8)
> (time=1355606570.947532,pid=2836): NML channel deleted from
> Dynamically_Allocated_NML_Objects
> (time=1355606570.947557,pid=2836): deleting NML (5)
> (time=1355606570.947582,pid=2836): Leaving ~NML()
> (time=1355606570.947607,pid=2836): NML::operater delete(0x9818650)
> (time=1355606570.947635,pid=2836): NML channel deleted from
> Dynamically_Allocated_NML_Objects
this means milltask died. It should never do that. in particular its not
involved with HAL directly.
> /usr/bin/milltask (pid 2898) died on signal 11, backtrace stored in
> /tmp/backtrace.2898
--^^^^^^^^^^^^^^^^ this file would give some indication what the issue is,
pastebin or post it here please
-m
> /usr/bin/milltask exiting
> /usr/bin/linuxcnc: line 411: 2898 Segmentation fault $EMCTASK -ini
> "$INIFILE"
> Cleanup done
>
> This was captured with full debug enabled in the .ini, but it had not been
> edited for months before this.
>
> The machine had crashed on a linuxcnc exit, from the menu->quit about an
> hour ago, and has since been rebooted. On the reboot, update-manager
> updated both the linuxcnc and the freecad installs, and it seems now stuck
> in the above state.
>
> I'll go do a powerdown this time.
>
> Didn't help. The hal file I've been hacking on is attached. Perhaps I've
> broken a rule somehow by setp'ing a pin?
>
> Dave E., you might see what it is I am trying to do with this recalcitant
> cast iron bitch, attempting to compensate for the near exponential response
> of the controller board in this toy.
>
> Logically, I think it looks like this:
>
> motor drive
> ---------- -------------- --------- -------------
> | rps >|--|> limit2.0 >|--|> abs >|--|>pid.0.cmd |
> ---------- -------------- --------- -------------
>
> Feedback
> ---------------
> setp some value ---------->|>mult2.0.in0 |
> | mult2.0.out>|>>
> net spdlefb0 enc.0.vel->|>mult2.0.in1 | |
> \ --------------- |
> \ <<<<<<<<<<<<<<<<<<<
> \ | ---------------
> \ |->|> sum2.0.in0 | ------------------
> \ | sum2.0.out >|>->| pid.0.feedback |
> \----->|> sum2.0.in1 | ------------------
> ---------------
>
> So the setp controls the multipliers gain contribution to the feedback.
>
> Earlier I was feeding both inputs of the multiplier with vel, with a scale
> & offset, but that worked so well I could get 1 rps for a 1 requested, but
> only about 1.75 rps for a 10 rps requested. Not terribly useful. :)
>
> Comments, fixes welcome as always.
>
> Thanks.
>
> Cheers, Gene
> --
> "There are four boxes to be used in defense of liberty:
> soap, ballot, jury, and ammo. Please use in that order."
> -Ed Howdershelt (Author)
> My web page: <http://coyoteden.dyndns-free.com:85/gene> is up!
> The universe is all a spin-off of the Big Bang.
> I was taught to respect my elders, but its getting
> harder and harder to find any...
> <my-lathe.hal>------------------------------------------------------------------------------
> 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
------------------------------------------------------------------------------
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