<div dir="ltr"><div dir="ltr">Hi, could it be caused by this?<div><br></div><div><a href="https://github.com/kamailio/kamailio/blob/master/src/modules/xlog/xlog.c#L65">https://github.com/kamailio/kamailio/blob/master/src/modules/xlog/xlog.c#L65</a><br></div><div><br></div><div>I tried to increment it, recompiled kamailio and the error doesn't show up anymore</div><div><br></div><div>Thanks,</div><div>Enrico</div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mer 13 feb 2019 alle ore 17:29 Enrico Bandiera <<a href="mailto:enrico.bandiera@cloud.timenet.it">enrico.bandiera@cloud.timenet.it</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hello Daniel, here are the logs:<div><br></div><div><div>29(46) ERROR: <core> [core/pvapi.c:1457]: pv_printf(): no more space for spec value - printed:7 token:5131 buffer:4096</div><div>29(46) ERROR: <core> [core/pvapi.c:1467]: pv_printf(): buffer overflow -- increase the buffer size...</div><div>29(46) ERROR: <core> [core/pvapi.c:1457]: pv_printf(): no more space for spec value - printed:7 token:5129 buffer:4096</div><div>29(46) ERROR: <core> [core/pvapi.c:1467]: pv_printf(): buffer overflow -- increase the buffer size...</div></div><div><br></div><div>Thanks,</div><div>Enrico</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mer 13 feb 2019 alle ore 09:45 Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p>Hello,</p>
<p>I pushed a patch to print more details about printed size,
current token size and overall output buffer size in those error
log messages -- the commit:</p>
<p> *
<a class="gmail-m_-107520485748568656gmail-m_714751527475955211moz-txt-link-freetext" href="https://github.com/kamailio/kamailio/commit/44e48809a608d4de46d61198137cd669c6a4763f" target="_blank">https://github.com/kamailio/kamailio/commit/44e48809a608d4de46d61198137cd669c6a4763f</a></p>
<p>Can you try with this patch and send again here on mailing list
the error log messages?</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="gmail-m_-107520485748568656gmail-m_714751527475955211moz-cite-prefix">On 13.02.19 09:20, Enrico Bandiera
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><br>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">---------- Forwarded message
---------<br>
From: <strong class="gmail_sendername" dir="auto">Enrico
Bandiera</strong> <span dir="ltr"><<a href="mailto:enrico.bandiera@cloud.timenet.it" target="_blank">enrico.bandiera@cloud.timenet.it</a>></span><br>
Date: mer 13 feb 2019 alle ore 09:18<br>
Subject: Re: [SR-Users] pv_buffer_size config value actually
ignored?<br>
To: Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>><br>
</div>
<br>
<br>
<div dir="ltr">
<div dir="ltr">Hello Daniel, yes we do use that $avp for a
log line which is actually a big json, the $avp is
composed by multiple jansson_append calls and at the end
an xlog() calls prints it</div>
<div>Could it also be that I'm miscalculating because of the
encoding? 4K utf8 characters could be more than 4K (but I
don't think there are so many multibytes characters to let
it reach the 8K limit)</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Il giorno mer 13 feb 2019
alle ore 09:15 Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>> ha
scritto:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p>Hello,</p>
<p>where do you use that avp, because for the avp value
itself, that buffer is not used -- avp values are
stored in shared memory.</p>
<p>Do you use that avp in xlog() or other functions
parameters?</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="gmail-m_-107520485748568656gmail-m_714751527475955211m_-1639198096426645503gmail-m_3979465740738386549moz-cite-prefix">On
13.02.19 09:10, Enrico Bandiera wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">Hi, I'm having some strange issues
with a somewhat big $avp value, when it reaches
a size of about 4K I get this error:</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">
<div dir="ltr">29(47) ERROR: <core>
[core/pvapi.c:1452]: pv_printf(): no more
space for spec value</div>
<div dir="ltr">29(47) ERROR: <core>
[core/pvapi.c:1461]: pv_printf(): buffer
overflow – increase the buffer size...</div>
<div dir="ltr"><br>
</div>
<div>In the docs I read that the default
pv_buffer_size is 8K, I still tried to enforce
it to something bigger and checked the logs to
be sure it was set:</div>
<div><br>
</div>
<div>0(384) DEBUG: <core>
[core/pvapi.c:2062]: pv_init_buffer(): PV
print buffer initialized to [40][16384]<br>
</div>
<div><br>
</div>
<div>But still when reaching the 4K size inside
the $avp that error comes out, is there any
limit I'm not aware of?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Enrico.</div>
</div>
</div>
</div>
<br>
<fieldset class="gmail-m_-107520485748568656gmail-m_714751527475955211m_-1639198096426645503gmail-m_3979465740738386549mimeAttachmentHeader"></fieldset>
<pre class="gmail-m_-107520485748568656gmail-m_714751527475955211m_-1639198096426645503gmail-m_3979465740738386549moz-quote-pre">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="gmail-m_-107520485748568656gmail-m_714751527475955211m_-1639198096426645503gmail-m_3979465740738386549moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a class="gmail-m_-107520485748568656gmail-m_714751527475955211m_-1639198096426645503gmail-m_3979465740738386549moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="gmail-m_-107520485748568656gmail-m_714751527475955211m_-1639198096426645503gmail-m_3979465740738386549moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="gmail-m_-107520485748568656gmail-m_714751527475955211m_-1639198096426645503gmail-m_3979465740738386549moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
<a class="gmail-m_-107520485748568656gmail-m_714751527475955211m_-1639198096426645503gmail-m_3979465740738386549moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="gmail-m_-107520485748568656gmail-m_714751527475955211m_-1639198096426645503gmail-m_3979465740738386549moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 6-8, 2019 -- <a class="gmail-m_-107520485748568656gmail-m_714751527475955211m_-1639198096426645503gmail-m_3979465740738386549moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a>
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- <a class="gmail-m_-107520485748568656gmail-m_714751527475955211m_-1639198096426645503gmail-m_3979465740738386549moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a></pre>
</div>
</blockquote>
</div>
</div>
</div>
<br>
<fieldset class="gmail-m_-107520485748568656gmail-m_714751527475955211mimeAttachmentHeader"></fieldset>
<pre class="gmail-m_-107520485748568656gmail-m_714751527475955211moz-quote-pre">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="gmail-m_-107520485748568656gmail-m_714751527475955211moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a class="gmail-m_-107520485748568656gmail-m_714751527475955211moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="gmail-m_-107520485748568656gmail-m_714751527475955211moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="gmail-m_-107520485748568656gmail-m_714751527475955211moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
<a class="gmail-m_-107520485748568656gmail-m_714751527475955211moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="gmail-m_-107520485748568656gmail-m_714751527475955211moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 6-8, 2019 -- <a class="gmail-m_-107520485748568656gmail-m_714751527475955211moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a>
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- <a class="gmail-m_-107520485748568656gmail-m_714751527475955211moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a></pre>
</div>
</blockquote></div>
</blockquote></div>