[pgpool-general: 35] Re: ERROR: *** glibc detected *** /opt/pgpool/bin/pgpool: malloc(): memory corruption: 0x091aad88 ***

Tatsuo Ishii ishii at postgresql.org
Tue Dec 6 07:43:55 JST 2011


I found a nasty bug with black/white function list memory allocation
logic.  While etracting each function taken, it adds "^" and "$" if it
does not include them.  Problem is, someone forgot to add extra space
for them. Included is a one line patch to fix the problem. Please try.
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp

> Hello everyone in the list, I need to add some functions to black_function_list, but when I start pgpool, this error is shows:
> 
> 2011-12-05 09:05:42 DEBUG: pid 10155: key: black_function_list
> 2011-12-05 09:05:42 DEBUG: pid 10155: value: 'currval,lastval,nextval,setval,.*insertar.*,.*eliminar.*,.*modificar.*,.*crear.*,fun_aprobar_tramite,fun_cita.*,.*cancelar.*,fun_asignar_rol,fun_acceso_usuario_recuperar_clave' kind: 4
> 2011-12-05 09:05:42 DEBUG: pid 10155: extract_string_tokens: token: currval
> 2011-12-05 09:05:42 DEBUG: pid 10155: extract_string_tokens: token: lastval
> 2011-12-05 09:05:42 DEBUG: pid 10155: extract_string_tokens: token: nextval
> 2011-12-05 09:05:42 DEBUG: pid 10155: extract_string_tokens: token: setval
> 2011-12-05 09:05:42 DEBUG: pid 10155: extract_string_tokens: token: .*insertar.*
> 2011-12-05 09:05:42 DEBUG: pid 10155: extract_string_tokens: token: .*eliminar.*
> 2011-12-05 09:05:42 DEBUG: pid 10155: extract_string_tokens: token: .*modificar.*
> 2011-12-05 09:05:42 DEBUG: pid 10155: extract_string_tokens: token: .*crear.*
> 2011-12-05 09:05:42 DEBUG: pid 10155: extract_string_tokens: token: fun_aprobar_tramite
> 2011-12-05 09:05:42 DEBUG: pid 10155: extract_string_tokens: token: fun_cita.*
> 2011-12-05 09:05:42 DEBUG: pid 10155: extract_string_tokens: token: .*cancelar.*
> 2011-12-05 09:05:42 DEBUG: pid 10155: extract_string_tokens: token: fun_asignar_rol
> 2011-12-05 09:05:42 DEBUG: pid 10155: extract_string_tokens: token: fun_acceso_usuario_recuperar_clave
> 2011-12-05 09:05:42 DEBUG: pid 10155: add_to_patterns: regex pattern: ^currval$
> 2011-12-05 09:05:42 DEBUG: pid 10155: add_to_patterns: regex pattern: ^lastval$
> 2011-12-05 09:05:42 DEBUG: pid 10155: add_to_patterns: regex pattern: ^nextval$
> 2011-12-05 09:05:42 DEBUG: pid 10155: add_to_patterns: regex pattern: ^setval$
> 2011-12-05 09:05:42 DEBUG: pid 10155: add_to_patterns: regex pattern: ^.*insertar.*$
> 2011-12-05 09:05:42 DEBUG: pid 10155: add_to_patterns: regex pattern: ^.*eliminar.*$
> 2011-12-05 09:05:42 DEBUG: pid 10155: add_to_patterns: regex pattern: ^.*modificar.*$
> 2011-12-05 09:05:42 DEBUG: pid 10155: add_to_patterns: regex pattern: ^.*crear.*$
> 2011-12-05 09:05:42 DEBUG: pid 10155: add_to_patterns: regex pattern: ^fun_aprobar_tramite$
> 2011-12-05 09:05:42 DEBUG: pid 10155: add_to_patterns: regex pattern: ^fun_cita.*$
> 2011-12-05 09:05:42 DEBUG: pid 10155: add_to_patterns: regex pattern: ^.*cancelar.*$
> 2011-12-05 09:05:42 DEBUG: pid 10155: add_to_patterns: regex pattern: ^fun_asignar_rol$
> *** glibc detected *** /opt/pgpool/bin/pgpool: malloc(): memory corruption: 0x091aad88 ***
> 
> In other way, If I change the last function name, this error is shows:
> 
> 2011-12-05 09:21:40 DEBUG: pid 11199: key: black_function_list
> 2011-12-05 09:21:40 DEBUG: pid 11199: value: 'currval,lastval,nextval,setval,.*insertar.*,.*eliminar.*,.*modificar.*,.*crear.*,fun_aprobar_tramite,fun_cita.*,.*cancelar.*,fun_asignar_rol,.*_recuperar_clave' kind: 4
> 2011-12-05 09:21:40 DEBUG: pid 11199: extract_string_tokens: token: currval
> 2011-12-05 09:21:40 DEBUG: pid 11199: extract_string_tokens: token: lastval
> 2011-12-05 09:21:40 DEBUG: pid 11199: extract_string_tokens: token: nextval
> 2011-12-05 09:21:40 DEBUG: pid 11199: extract_string_tokens: token: setval
> 2011-12-05 09:21:40 DEBUG: pid 11199: extract_string_tokens: token: .*insertar.*
> 2011-12-05 09:21:40 DEBUG: pid 11199: extract_string_tokens: token: .*eliminar.*
> 2011-12-05 09:21:40 DEBUG: pid 11199: extract_string_tokens: token: .*modificar.*
> 2011-12-05 09:21:40 DEBUG: pid 11199: extract_string_tokens: token: .*crear.*
> 2011-12-05 09:21:40 DEBUG: pid 11199: extract_string_tokens: token: fun_aprobar_tramite
> 2011-12-05 09:21:40 DEBUG: pid 11199: extract_string_tokens: token: fun_cita.*
> 2011-12-05 09:21:40 DEBUG: pid 11199: extract_string_tokens: token: .*cancelar.*
> 2011-12-05 09:21:40 DEBUG: pid 11199: extract_string_tokens: token: fun_asignar_rol
> 2011-12-05 09:21:40 DEBUG: pid 11199: extract_string_tokens: token: .*_recuperar_clave
> 2011-12-05 09:21:40 DEBUG: pid 11199: add_to_patterns: regex pattern: ^currval$
> 2011-12-05 09:21:40 DEBUG: pid 11199: add_to_patterns: regex pattern: ^lastval$
> 2011-12-05 09:21:40 DEBUG: pid 11199: add_to_patterns: regex pattern: ^nextval$
> 2011-12-05 09:21:40 DEBUG: pid 11199: add_to_patterns: regex pattern: ^setval$
> 2011-12-05 09:21:40 DEBUG: pid 11199: add_to_patterns: regex pattern: ^.*insertar.*$
> 2011-12-05 09:21:40 DEBUG: pid 11199: add_to_patterns: regex pattern: ^.*eliminar.*$
> 2011-12-05 09:21:40 DEBUG: pid 11199: add_to_patterns: regex pattern: ^.*modificar.*$
> 2011-12-05 09:21:40 DEBUG: pid 11199: add_to_patterns: regex pattern: ^.*crear.*$
> 2011-12-05 09:21:40 DEBUG: pid 11199: add_to_patterns: regex pattern: ^fun_aprobar_tramite$
> 2011-12-05 09:21:40 DEBUG: pid 11199: add_to_patterns: regex pattern: ^fun_cita.*$
> 2011-12-05 09:21:40 DEBUG: pid 11199: add_to_patterns: regex pattern: ^.*cancelar.*$
> 2011-12-05 09:21:40 DEBUG: pid 11199: add_to_patterns: regex pattern: ^fun_asignar_rol$
> *** glibc detected *** /opt/pgpool/bin/pgpool: invalid fastbin entry (free): 0x08fa3598 ***
> 
> Could anybody help me to solve this issue.
> 
> Regards.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pool_config.patch
Type: text/x-patch
Size: 452 bytes
Desc: not available
URL: <http://www.sraoss.jp/pipermail/pgpool-general/attachments/20111206/6421df8b/attachment.bin>


More information about the pgpool-general mailing list