Skip Menu |

This queue is for tickets about the IO-Interface CPAN distribution.

Report information
The Basics
Id: 45788
Status: new
Priority: 0/
Queue: IO-Interface

People
Owner: Nobody in particular
Requestors: bcreane [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.05
Fixed in: (no value)



Subject: memory leak on Darwin when accessing hwaddr
The following script is causing a memory leak on Mac OS X v10.5.6 (intel): #!/usr/bin/perl use strict; use IO::Interface::Simple; my $en0 = IO::Interface::Simple->new('en0'); my $hwaddr = $en0->hwaddr; Perl version is 5.8.9 built with macports, also fails with the Mac OS X default version of perl 5.8.8. The report from "leaks" is: Process 28529: 24218 nodes malloced for 1487 KB Process 28529: 1 leak for 2560 total leaked bytes. Leak: 0x869800 size=2560 0x0086981c 0x0086a0ca 0x00008049 0x00869a4c ........I...L... 0x00000000 0x00000000 0x00869a60 0x00869838 ........`...8... 0x0086a0ca 0x00008049 0x00869adc 0x00869ac0 ....I........... 0x00869af8 0x00000000 0x00869854 0x0086a0ca ........T....... 0x00008049 0x00869b04 0x00869afc 0x00869b14 I............... 0x00000000 0x00869870 0x0086a0ca 0x00008049 ....p.......I... 0x00869b40 0x00869b24 0x00869b5c 0x00000000 @...$...\....... 0x0086988c 0x0086a0ce 0x00008010 0x00869b60 ............`... ... Call stack: [thread 0xa00aa720]: | start | main | perl_run | Perl_runops_standard | Perl_pp_entersub | XS_IO__Interface_if_hwaddr | getifaddrs | malloc | malloc_zone_malloc