Skip Menu |

This queue is for tickets about the IPTables-IPv4 CPAN distribution.

Report information
The Basics
Id: 4026
Status: resolved
Worked: 1 hour (60 min)
Priority: 0/
Queue: IPTables-IPv4

People
Owner: Nobody in particular
Requestors: zdila [...] antik.sk
Cc:
AdminCc:

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



Subject: secon commit causes segmentation fault
IPTables-IPv4-0.98 This is perl, v5.8.0 built for i386-linux-thread-multi Linux aqua 2.4.21-rc1 #2 Mon May 12 08:03:26 CEST 2003 i686 unknown my $table = IPTables::IPv4::init('filter'); # some operations with chains / rules $table $table->commit(); # some other operations with chains / rules $table $table->commit(); # causes segmentation fault !!!
[guest - Mon Oct 6 11:16:33 2003]: Show quoted text
> IPTables-IPv4-0.98 > This is perl, v5.8.0 built for i386-linux-thread-multi > Linux aqua 2.4.21-rc1 #2 Mon May 12 08:03:26 CEST 2003 i686 unknown > > my $table = IPTables::IPv4::init('filter'); > # some operations with chains / rules $table > $table->commit(); > # some other operations with chains / rules $table > $table->commit(); # causes segmentation fault !!!
You shouldn't be doing anything after the commit(). The handle is no longer good after that. I'll have to see how this can be better enforced. -- Derrik Pates dpates@dsdk12.net
Please try the current CVS tree. It can be downloaded at http://sourceforge.net/projects/iptperl/ . [guest - Mon Oct 6 11:16:33 2003]: Show quoted text
> my $table = IPTables::IPv4::init('filter'); > # some operations with chains / rules $table > $table->commit();
After this point, the object in $table will be replaced with undef. Show quoted text
> # some other operations with chains / rules $table > $table->commit(); # causes segmentation fault !!!
This will cause an error in your program, because you'll be invoking methods on an undefined value. It should not have been allowed before, but I wasn't properly handling the case of commit() being invoked. -- Derrik Pates dpates@dsdk12.net