This lircrc from lirc website
begin order begin button = KEY_OK prog = irexec config = echo "This is printed last" end end order begin button = KEY_OK prog = irexec config = echo "This is printed first" mode = order flags = quit end
works fine on 0.9.2a but causes "irexec <config file="">" to seg fault on 0.9.3-git
Commenting out the begin order section, irexec runs ok.
Using a simple setup with a mceusb lircd config + ircat using the config file above I cannot reproduce this. Could you please provide more details how you trigger this, and preferably also a stacktrace as described in CONTRIBUTE.md?
I had the same problem, debugged it and found that lirc_readconfig() needs lirc_prog to be set which is only set in lirc_init().
It's probably a good idea to execute lirc_init() before any other lirc_ call anyway.
Patch to fix it is attached.
fixed in [f62a66]. Thanks for debugging + patch!
Related
Commit: [f62a66]