Hi,
Im having some cpl-c module problems..
Both are related to time-switch.
What it seems to me like is that bymonth parameter is parsed somehow
wrong which then causes overflow. I added bit more debug and attr_name
and attr_len seem to be completely off-the-track. (The actual line
number of the overflow in cpl_switches.h is 763 because of the one line
added.)
Input:
<time dtstart="20071101T090000" dtend="20171101T090000"
byhour="7,8,9,10,11,12,13,14,15,16,17,18,19,20">
Output:
openser[5160]: DEBUG:cpl_run_script: processing CPL node
openser[5160]: DEBUG:cpl_run_script: processing time-switch node
openser[5160]: DEBUG:cpl-c:run_time_switch: checking recv. time stamp <1195111240>
openser[5160]: DEBUG:cpl-c:set_TZ: switching TZ as "TZ=Europe/Helsinki"
openser[5160]: ---> fill = Thu Nov 15 09:20:40 2007
openser[5160]: DEBUG:cpl_c:testing, attr_name: [0], attr_len: [16]
openser[5160]: DEBUG:cpl_c:run_time_node: attribute [0] found :[20071101T090000]
openser[5160]: DEBUG:cpl_c:testing, attr_name: [1], attr_len: [16]
openser[5160]: DEBUG:cpl_c:run_time_node: attribute [1] found :[20171101T090000]
openser[5160]: DEBUG:cpl_c:testing, attr_name: [19], attr_len: [12592]
openser[5160]: ERROR:cpl_c: overflow detected ip=0xb5a3c8ec ptr=0xb5a3fa6e in func.
cpl_switches.h, line 764
openser[5160]: DEBUG:cpl-c:set_TZ: switching TZ as "TZ="
openser[5160]: ERROR:cpl_c:cpl_run_script: script error
Second problem is the byhour attribute, which doesnt seem to be supported
at all.
Input:
<time dtstart="20071101T090000" dtend="20171101T090000"
byhour="7,8,9,10,11,12,13,14,15,16,17,18,19,20">
Output:
openser[5162]: DEBUG:cpl_run_script: processing CPL node
openser[5162]: DEBUG:cpl_run_script: processing time-switch node
openser[5162]: DEBUG:cpl-c:run_time_switch: checking recv. time stamp <1195111623>
openser[5162]: DEBUG:cpl-c:set_TZ: switching TZ as "TZ=Europe/Helsinki"
openser[5162]: ---> fill = Thu Nov 15 09:27:03 2007
openser[5162]: DEBUG:cpl_c:testing, attr_name: [0], attr_len: [16]
openser[5162]: DEBUG:cpl_c:run_time_node: attribute [0] found :[20071101T090000]
openser[5162]: DEBUG:cpl_c:testing, attr_name: [1], attr_len: [16]
openser[5162]: DEBUG:cpl_c:run_time_node: attribute [1] found :[20171101T090000]
openser[5162]: DEBUG:cpl_c:testing, attr_name: [9], attr_len: [39]
openser[5162]: DEBUG:cpl_c:run_time_node: attribute [9] found
:[7,8,9,10,11,12,13,14,15,16,17,18,19,20]
openser[5162]: ERROR:cpl_c:run_time_switch: unsupported attribute [9] found in TIME node
openser[5162]: DEBUG:cpl-c:set_TZ: switching TZ as "TZ="
openser[5162]: ERROR:cpl_c:cpl_run_script: script error
Br,
Aki Rehn