[ZBX-5275] zbx_malloc: allocating already allocated memory. Please report this to Zabbix developers. Created: 2012 Jul 05  Updated: 2017 May 30  Resolved: 2012 Aug 22

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 2.0.2rc1
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: Adail Horst Assignee: Unassigned
Resolution: Won't fix Votes: 1
Labels: distributed, memory
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CENTOS 6 x64 with mysql
Distributed enviroment (on master node)


Attachments: File create_hosts.sql     File create_items.sql     Text File zabbix_server.txt    
Issue Links:
Duplicate
is duplicated by ZBX-5499 zbx_malloc in zabbix_server - milions... Closed
is duplicated by ZBX-5726 zabbix_server crash - sensitive on DB... Closed

 Description   

26814:20120704:212545.123 file:checks_calculated.c,line:241 zbx_malloc: allocating already allocated memory. Please report this to Zabbix developers.



 Comments   
Comment by Adail Horst [ 2012 Jul 05 ]

Enviroment description is wrong (sory)

Is
CENTOS 6 x32
In a DM Node CHILD (Not Master)

Comment by richlv [ 2012 Jul 05 ]

is this problem repeatable ?
did zabbix server stop ?

Comment by richlv [ 2012 Jul 05 ]

temporary resolving to transition in workflow

Comment by Adail Horst [ 2012 Jul 05 ]

yes... i have some of this lines in my log (10... 20...)

Comment by Łukasz Jernaś [ 2012 Jul 12 ]

As far as I can tell this problem was already in 2.0.0

Comment by Łukasz Jernaś [ 2012 Jul 12 ]

The server is working, restarting it doesn't help. This might be related to the memleak we were observing in 2.0.0.

Comment by Alexander Vladishev [ 2012 Jul 28 ]

Can you please attach log with debug level 4 (~100 lines before the error) and output of SQL commands:

show create table hosts;
show create table items;

Comment by dakol [ 2012 Aug 03 ]

same symptoms here in 2.0.2
Postgresql in use

Comment by Alexander Vladishev [ 2012 Aug 11 ]

It can occur in a case to the duplicated hosts in a node.

Please check it by executing a SQL statement:

select host, count(*) from hosts group by host having count(*) > 1;

Please add condition "where hostid between n00000000000000 and n99999999999999" if you have a distributed monitoring. n - the number of a local node.

Comment by Alexander Vladishev [ 2012 Aug 22 ]

I close the issue. Please reopen if a problem not with the duplicated hosts.

Comment by Olgierd Wolodkiewicz [ 2012 Aug 27 ]

SQL statement:

select host, count(*) from hosts group by host having count(*) > 1; 

doesn't return any records, but the error still exists:

  17878:20120827:031828.657 [file:checks_calculated.c,line:241] zbx_malloc: allocating already allocated memory. Please report this to Zabbix developers.
Comment by Leonid Satanovsky [ 2013 Feb 15 ]

Alexander, thanks for duplicated hosts hint. It helped.
Nevertheless, it'd be VERY useful if in such case (dumpicated hosts) and other corner cases some error message showed up
on the web interface.
Thanks!

Generated at Thu Mar 28 18:29:56 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.