Jump to content
Flirc Forums

Segmentation fault with with flirc_util and raw data ....only sometimes...is it length?


Recommended Posts

Posted

I have some scripts using flirc_util that used to work, but after reinstalling and recreating things, now I can't figure out why sometimes I get a segmentation fault.  One script that has a short pattern works with no segmentation fault.  Is there some way that flirc_util needs more memory, shorter patterns, something else? 

I have bolded the original patttern at +565 -1659 and comparing the output from the program everything is the same in the output until the +565, then a -9046 shows up instead of the -1649.  I counted the characters in the input pattern and at 538 characters this seems to be the blowing up place.  Is there some input parameter that has a size limit of that gets blown up and doesn't get length checked?

 

FW Version: v4.6.5v4.6.5
   SKU:     Flirc 2.0 [dori]
   Branch:  master
   Config:  release
   Hash:    0x18BBFCFA
 

The script:

================

"/cygdrive/d/Program Files (x86)/Flirc/flirc_util.exe" sendir --raw="
+9046 -4438 +570 -523 +569 -1645 +568 -524 +568 -1646 +568 -524 +568 -1645 +594 -1621 +594 -1620 +593 -1621 +568 -1646 +593 -1621 +595 -497 +594 -497 +566 -526 +568 -1646 +592 -1622 +568 -524 +568 -1646 +568 -524 +568 -1646 +568 -524 +567 -1646 +568 -525 +568 -524 +567 -1646 +569 -524 +567 -1646 +594 -498 +568 -1647 +567 -524 +568 -1646 +593 -1616 +569 -37000 +9004 -4465 +568 -525 +567 -1647 +592 -518 +548 -1648 +567 -524 +567 -1647 +567 -1648 +566 -1648 +566 -1648 +565 -1649 +566 -1649 +565 -526 +567 -525 +565 -526 +565 -1649 +565 -1649 +566 -525 +567 -1647 +592 -500 +567 -1647 +566 -526 +589 -1625 +591 -500 +567 -1646 +566 -1648 +566 -526 +565 -1648 +567 -525 +566 -1647 +566 -526 +566 -1648 +566 -521 +566 -38000 +8991 -4465 +568 -525 +566 -525 +567 -524 +566 -539 +577 -501 +566 -1647 +566 -1648 +567 -1647 +568 -542 +573 -500 +568 -524 +566 -525 +591 -501 +566 -525 +567 -1647 +566 -1648 +566 -1648 +567 -1647 +567 -525 +566 -1667 +547 -1648 +565 -527 +566 -1647 +567 -1647 +567 -526 +566 -525 +566 -1648 +567 -525 +565 -527 +565 -1648 +567 -525 +566 -521 +566"
============================================

 

The output result:

=========================================================

Transmitting IR Pattern...
+9046 -4438 +570 -523 +569 -1645 +568 -524 +568 -1646 +568 -524 +568 -1645 +594 -1621 +594 -1620 +593 -1621 +568 -1646 +593 -1621 +595 -497 +594 -497 +566 -526 +568 -1646 +592 -1622 +568 -524 +568 -1646 +568 -524 +568 -1646 +568 -524 +567 -1646 +568 -525 +568 -524 +567 -1646 +569 -524 +567 -1646 +594 -498 +568 -1647 +567 -524 +568 -1646 +593 -1616 +569 -37000 +9004 -4465 +568 -525 +567 -1647 +592 -518 +548 -1648 +567 -524 +567 -1647 +567 -1648 +566 -1648 +566 -1648 +565 -1649 +566 -1649 +565 -526 +567 -525 +565 -526 +565 -1649 +565 -9046 +4438 -570 +523 -569 +1645 -568 +524 -568 +1646 -568 +524 -568 +1645 -594 +1621 -594 +1620 -593 +1621 -568 +1646 -593 +1621 -595 +497 -594 +497 -566 +526 -568 +1646 -592 +1622 -568 +524 -568 +1646 -568 +524 -568 +1646 -568 +524 -567 +1646 -568 +525 -568 +524 -567 +1646 -569 +524 -567 +1646 -594 +498 -568 +1647 -567 +524 -568 +1646 -593 +1616 -569 +37000 -9004 +4465 -568 +525 -567 +1647 -592 +518 -548 +1648 -567 +524 -567 +1647 -567 +1648 -566 +1648 -566 +1648 -565 +1649 -566 +1649 -565 +526 -567 +525 -565 +526 -565 +1649 -565 +9046
-50
Done!
sendOK.bat: 行 1:  1836 Segmentation fault      "/cygdrive/d/Program Files (x86)/Flirc/flirc_util.exe" sendir --raw=" +9046 -4438 +570 -523 +569 -1645 +568 -524 +568 -1646 +568 -524 +568 -1645 +594 -1621 +594 -1620 +593 -1621 +568 -1646 +593 -1621 +595 -497 +594 -497 +566 -526 +568 -1646 +592 -1622 +568 -524 +568 -1646 +568 -524 +568 -1646 +568 -524 +567 -1646 +568 -525 +568 -524 +567 -1646 +569 -524 +567 -1646 +594 -498 +568 -1647 +567 -524 +568 -1646 +593 -1616 +569 -37000 +9004 -4465 +568 -525 +567 -1647 +592 -518 +548 -1648 +567 -524 +567 -1647 +567 -1648 +566 -1648 +566 -1648 +565 -1649 +566 -1649 +565 -526 +567 -525 +565 -526 +565 -1649 +565 -1649 +566 -525 +567 -1647 +592 -500 +567 -1647 +566 -526 +589 -1625 +591 -500 +567 -1646 +566 -1648 +566 -526 +565 -1648 +567 -525 +566 -1647 +566 -526 +566 -1648 +566 -521 +566 -38000 +8991 -4465 +568 -525 +566 -525 +567 -524 +566 -539 +577 -501 +566 -1647 +566 -1648 +567 -1647 +568 -542 +573 -500 +568 -524 +566 -525 +591 -501 +566 -525 +567 -1647 +566 -1648 +566 -1648 +567 -1647 +567 -525 +566 -1667 +547 -1648 +565 -527 +566 -1647 +567 -1647 +567 -526 +566 -525 +566 -1648 +567 -525 +565 -527 +565 -1648 +567 -525 +566 -521 +566"
 

===========================================

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...