PacketFence - BTS - PacketFence
View Issue Details
0001636PacketFencecorepublic2013-04-25 08:122013-04-29 17:36
Moshe_Levi 
 
normalminoralways
closedfixed 
3.5.1 
+1 
0001636: pfsetvlan coredump when stoping packetfence service
I am using centos 6.3 with coredump enabled
every time I stop the packetfence I see coredump fromm pfsetvlan
the reason is because it send signal 6 in the end
END {
    if ( ( !$man ) && ( !$help ) ) {
        $logger->info("stopping pfsetvlan");
        deletepid();
        foreach my $t (@completeThreadList) {
            $t->detach;
        }
        kill 6, -$$;
    }
}

signal 6 is SIGABRT which by default action is to terminate the process and dump core
see http://linux.about.com/od/commands/l/blcmdl7_signal.htm [^]
I am not sure why pfsetvlan need to kill it self and it is not gracefully shutdown but if it is needed it is better to use SIGTERM to just terminate the process and not coredump
No tags attached.
Issue History
2013-04-25 08:12Moshe_LeviNew Issue
2013-04-29 17:36ludovicNote Added: 0003302
2013-04-29 17:36ludovicStatusnew => closed
2013-04-29 17:36ludovicResolutionopen => fixed
2013-04-29 17:36ludovicFixed in Version => +1

Notes
(0003302)
ludovic   
2013-04-29 17:36   
See: https://github.com/inverse-inc/packetfence/commit/ec2318a692bf2839ff59118e6c11fea1f22238e0 [^]

This will be part of v4.