Menu

#102 0.9.3-git lircrc with modes causes irexec to segfault

0.9.3
closed
nobody
None
fixed,
2015-08-01
2015-04-18
No

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.

Discussion

  • Alec Leamas

    Alec Leamas - 2015-05-01

    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?

     
  • lotan_rm

    lotan_rm - 2015-07-14

    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.

     
  • Alec Leamas

    Alec Leamas - 2015-08-01

    fixed in [f62a66]. Thanks for debugging + patch!

     

    Related

    Commit: [f62a66]

  • Alec Leamas

    Alec Leamas - 2015-08-01
    • status: open --> closed
    • Resolution: na, --> fixed,
    • Milestone: Future --> 0.9.3
     

Log in to post a comment.