[Devel] unixodbc memory problem

Vadim Berezniker VadimB at nbsvoice.com
Wed May 2 14:56:27 CEST 2007


There's nothing unusual in the logs. The memory debugger doesn't detect
access to freed memory does it?

Below is the relevant excerpt from the log. As you can see the
address_reload function bombs out because the ip address string it gets
back from unixodbc is not valid. It works properly if memory debugging
is not compiled in.

0(0) qm_malloc(0xb5e51000, 512) called from hash.c:
new_addr_hash_table(310)
 0(0) qm_malloc(0xb5e51000, 512) returns address 0xb600cd64 frag.
0xb600cd4c (size=512) on 1 -th hit
 0(0) qm_malloc(0xb5e51000, 512) called from hash.c:
new_addr_hash_table(310)
 0(0) qm_malloc(0xb5e51000, 512) returns address 0xb600cf94 frag.
0xb600cf7c (size=512) on 1 -th hit
 0(0) qm_malloc(0xb5e51000, 4) called from address.c:
init_addresses(258)
 0(0) qm_malloc(0xb5e51000, 4) returns address 0xb600d1c4 frag.
0xb600d1ac (size=4) on 1 -th hit
 0(0) qm_malloc(0xb5e51000, 2064) called from hash.c:
new_subnet_table(448)
 0(0) qm_malloc(0xb5e51000, 2064) returns address 0xb600d1f8 frag.
0xb600d1e0 (size=2064) on 1 -th hit
 0(0) qm_malloc(0xb5e51000, 2064) called from hash.c:
new_subnet_table(448)
 0(0) qm_malloc(0xb5e51000, 2064) returns address 0xb600da38 frag.
0xb600da20 (size=2064) on 1 -th hit
 0(0) qm_malloc(0xb5e51000, 4) called from address.c:
init_addresses(269)
 0(0) qm_malloc(0xb5e51000, 4) returns address 0xb600e278 frag.
0xb600e260 (size=4) on 1 -th hit
 0(0) malloc 0x98abcc0 size 28 end 0x98abcdc
 0(0) malloc 0x99bb4e0 size 16 end 0x99bb4f0
 0(0) malloc 0x99773e0 size 16 end 0x99773f0
 0(0) malloc 0x9a325a0 size 4096 end 0x9a335a0
 0(0) malloc 0x99773f8 size 16 end 0x9977408
 0(0) malloc 0x99fef90 size 16 end 0x99fefa0
 0(0) malloc 0x99fefa8 size 16 end 0x99fefb8
 0(0) malloc 0x99fefc0 size 2 end 0x99fefc2
 0(0) malloc 0x99bb1b0 size 13 end 0x99bb1bd
 0(0) malloc 0x99bb1c8 size 3 end 0x99bb1cb
 0(0) malloc 0x99bb1d8 size 2 end 0x99bb1da
 0(0) free 0x9a325a0
0(0) malloc 0x99bb4d0 size 8 end 0x99bb4d8
 0(0) malloc 0x979c788 size 64 end 0x979c7c8
 0(0) free 0x99fefc0
 0(0) free 0x99bb1b0
 0(0) free 0x99bb1c8
 0(0) free 0x99bb1d8
 0(0) free 0x99fefa8
 0(0) free 0x99fef90
 0(0) free 0x99773f8
 0(0) Number of rows in address table: 1
 0(0) ERROR: permissions: address_reload(): Database problem

-----Original Message-----
From: Bogdan-Andrei Iancu [mailto:bogdan at voice-system.ro] 
Sent: Wednesday, May 02, 2007 8:39 AM
To: Vadim Berezniker
Cc: devel at openser.org
Subject: Re: [Devel] unixodbc memory problem

check the mem_log level to be less than debug value, in order to get the

mem logs printed.

In the mean while I will try to take a look at the issue you mentioned.

Thanks and regards,
bogdan




More information about the Devel mailing list