Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Iolists aren't handled correctly by ~s #47

Closed
Vagabond opened this Issue · 6 comments

2 participants

@Vagabond
Collaborator
lager:log(info, self(), "~s", [[[123,[34,<<"Raw-Application-Data">>,34],58,[34,<<"ecallmgr_Account-ID=3c50db2998c5bb1b813fd8ba67e9cda8">>,34],44,[34,<<"Raw-Application-Name">>,34],58,[34,<<"set">>,34],44,[34,<<"Disposition">>,34],58,[34,<<"DELAYED NEGOTIATION">>,34],44,[34,<<"Transfer-History">>,34],58,<<"{}">>,44,[34,<<"Call-Direction">>,34],58,[34,<<"inbound">>,34],44,[34,<<"Channel-State">>,34],58,[34,<<"execute">>,34],44,[34,<<"Msg-ID">>,34],58,[34,<<"1333642869484012">>,34],44,[34,<<"Timestamp">>,34],58,[34,<<"1333642869484012">>,34],44,[34,<<"Custom-Channel-Vars">>,34],58,[123,[34,<<"Inception">>,34],58,[34,<<"off-net">>,34],125],44,[34,<<"Application-Name">>,34],58,[34,<<"set">>,34],44,[34,<<"Channel-Call-State">>,34],58,[34,<<"RINGING">>,34],44,[34,<<"Call-ID">>,34],58,[34,<<"771bc0be0ec61bf94bf21a6d68c68534@72.249.14.242">>,34],44,[34,<<"App-Version">>,34],58,[34,<<"0.8.0">>,34],44,[34,<<"App-Name">>,34],58,[34,<<"ecallmgr">>,34],44,[34,<<"Event-Name">>,34],58,[34,<<"CHANNEL_EXECUTE">>,34],44,[34,<<"Event-Category">>,34],58,[34,<<"call_event">>,34],44,[34,<<"Server-ID">>,34],58,[34,<<>>,34],125]]]).

12:23:23.838 [info] FORMAT ERROR: "~s" [[[123,[34,<<"Raw-Application-Data">>,34],58,[34,<<"ecallmgr_Account-ID=3c50db2998c5bb1b813fd8ba67e9cda8">>,34],44,[34,<<"Raw-Application-Name">>,34],58,[34,<<"set">>,34],44,[34,<<"Disposition">>,34],58,[34,<<"DELAYED NEGOTIATION">>,34],44,[34,<<"Transfer-History">>,34],58,<<"{}">>,44,[34,<<"Call-Direction">>,34],58,[34,<<"inbound">>,34],44,[34,<<"Channel-State">>,34],58,[34,<<"execute">>,34],44,[34,<<"Msg-ID">>,34],58,[34,<<"1333642869484012">>,34],44,[34,<<"Timestamp">>,34],58,[34,<<"1333642869484012">>,34],44,[34,<<"Custom-Channel-Vars">>,34],58,[123,[34,<<"Inception">>,34],58,[34,<<"off-net">>,34],125],44,[34,<<"Application-Name">>,34],58,[34,<<"set">>,34],44,[34,<<"Channel-Call-State">>,34],58,[34,<<"RINGING">>,34],44,[34,<<"Call-ID">>,34],58,[34,<<"771bc0be0ec61bf94bf21a6d68c68534@72.249.14.242">>,34],44,[34,<<"App-Version">>,34],58,[34,<<"0.8.0">>,34],44,[34,<<"App-Name">>,34],58,[34,<<"ecallmgr">>,34],44,[34,<<"Event-Name">>,34],58,[34,<<"CHANNEL_EXECUTE">>,34],44,[34,<<"Event-Category">>,34],58,[34,<<"call_event">>,34],44,[34,<<"Server-ID">>,34],58,[34,<<>>,34],125]]]
@si14

Not sure if it is really related to this particular issue, but:

19:27:55.619 [error] CRASH REPORT Process rnbwdash_backyard with 1 neighbours crashed with reason: no function clause matching {rnbwdash_backyard,handle_twlght_status,[{failed},<<51,81,79,68,81,81,79,72,76,48,68,70,55,55,78,87,53,55>>,32796],[{file,[47,104,111,109,101,47,115,105,49,52,47,119,111,114,107,47,114,101,112,111,115,47,114,97,105,110,98,111,119,100,97,115,104,47,97,112,112,115,47,114,110,98,119,100,97,115,104,47,115,114,99,47,114,110,98,119,100,97,115,104,95,98,97,99,107,121,97,114,100,46,101,114,108]},{line,134}]}
@Vagabond
Collaborator

You're running R15 and don't have the latest lager that has support for R15, so you're seeing the file/line numbers added in R15.

@si14

I mean that list should be a string.

@Vagabond
Collaborator

You mean this binary:

<<51,81,79,68,81,81,79,72,76,48,68,70,55,55,78,87,53,55>>

What version of lager do you have? Can you try again with latest master?

@si14

Nope, I mean this list:

{file,[47,104,111,109,101,47,115,105,49,52,47,119,111,114,107,47,114,101,112,111,115,47,114,97,105,110,98,111,119,100,97,115,104,47,97,112,112,115,47,114,110,98,119,100,97,115,104,47,115,114,99,47,114,110,98,119,100,97,115,104,95,98,97,99,107,121,97,114,100,46,101,114,108]},{line,134}
@Vagabond
Collaborator

As I said, that is because you're running R15 without the latest lager. If lager gets a backtrace M:F/A it doesn't understand it prints it with ~w, not ~p.

@Vagabond Vagabond closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.