[OpenSER-Devel] ERROR:core:pv_printf: buffer overflow (doing a long SQL query)

Bogdan-Andrei Iancu bogdan at voice-system.ro
Mon Jan 7 16:30:23 UTC 2008


Hi Iñaki,

You need to increase PV_PRINT_BUF_SIZE which is the size of the buffer 
used for printing the end result. PV_PRINT_BUF_NO  is the number of 
buffers to be used in case of nested calls, but it is not your case.

Regards,
Bogdan

Iñaki Baz Castillo wrote:
> On Monday 07 January 2008 16:45:24 Iñaki Baz Castillo wrote:
>   
>> -----------------------------------
>> Jan  7 16:42:30 [4101] ERROR:core:pv_printf: no more space for text [34]
>> Jan  7 16:42:30 [4101] ERROR:core:pv_printf: buffer overflow -- increase
>> the buffer size...
>> Jan  7 16:42:30 [4101] ERROR:avpops:ops_dbquery_avps: cannot print the
>> query -----------------------------------
>>
>> It ocurrs when the RURI is very long (because the SQL uses the RURI).
>>
>> How can I increase that buffer size? Thanks a lot.
>>     
>
> I've found in pvar.c:
>
> -----------------
> #define PV_PRINT_BUF_SIZE  1024
> #define PV_PRINT_BUF_NO    3
> /*IMPORTANT NOTE - even if the function prints and returns a static buffer, it
>  * has built-in support for 3 levels of nesting (or concurrent usage).
>  * If you think it's not enough for you, either use pv_printf() directly,
>  * either increase PV_PRINT_BUF_NO   --bogdan */
> -----------------
>
> Should I increase PV_PRINT_BUF_SIZE or PV_PRINT_BUF_NO ?
>
>
>
>   




More information about the Devel mailing list