Opened 5 years ago

Last modified 4 years ago

#3510 new defect

MemorySegmentLocal.TestTooMuchMemory failure on multiple systems

Reported by: jreed Owned by:
Priority: low Milestone: Outstanding Tasks
Component: libutil Version: git
Keywords: Cc:
CVSS Scoring: Parent Tickets:
Sensitive: no Defect Severity: N/A
Sub-Project: Core Feature Depending on Ticket:
Estimated Difficulty: 0 Add Hours to Ticket: 0
Total Hours: 0 Internal?: no

Description

I guess this was introduced by b22d5d37ee0a82063d664006c849402253c0bbfb for #3461.

Multiple build systems unittests are failing, like:

[ RUN      ] MemorySegmentLocal.TestTooMuchMemory
memory_segment_local_unittest.cc:67: Failure
Expected: segment->allocate(0x7fffffffL) throws an exception of type bad_alloc.
  Actual: it throws nothing.
[  FAILED  ] MemorySegmentLocal.TestTooMuchMemory (20260 ms)

See
http://git.kea.isc.org/~tester/builder/KEA/20140811135447-FreeBSD10-x86/logs/unittests.out
http://git.kea.isc.org/~tester/builder/KEA/20140811135503-MacOSX10.6-x86_64-Clang-Static/logs/unittests.out
http://git.kea.isc.org/~tester/builder/KEA/20140808071115-NetBSD6-i386-GCC/logs/unittests.out

Subtickets

Change History (6)

comment:1 Changed 5 years ago by jreed

diff --git a/src/lib/util/tests/memory_segment_local_unittest.cc b/src/lib/util/
index 2f14011..fdc2d9b 100644
--- a/src/lib/util/tests/memory_segment_local_unittest.cc
+++ b/src/lib/util/tests/memory_segment_local_unittest.cc
@@ -56,7 +56,8 @@ TEST(MemorySegmentLocal, TestLocal) {
     EXPECT_TRUE(segment->allMemoryDeallocated());
 }
 
-TEST(MemorySegmentLocal, TestTooMuchMemory) {
+/// @todo: disabled, see ticket #3510
+TEST(MemorySegmentLocal, DISABLED_TestTooMuchMemory) {
     auto_ptr<MemorySegment> segment(new MemorySegmentLocal());

comment:2 Changed 5 years ago by jreed

I committed patch with fdb05b7a7139db9801329807e3e83db84f2ee136
Keeping this ticket open since maybe test will be removed or conditionalized or improved.

comment:3 Changed 5 years ago by tomek

  • Milestone changed from Kea-proposed to Kea1.0
  • Priority changed from medium to low
  • Version set to git

comment:4 Changed 5 years ago by tomek

  • Component changed from Unclassified to libutil

comment:5 Changed 4 years ago by marcin

  • Milestone changed from Kea1.0 to DHCP Outstanding Tasks

Move to "outstanding" as per Kea 1.0 tickets scrub on 07/31/2015

comment:6 Changed 4 years ago by tomek

  • Milestone changed from DHCP Outstanding Tasks to Outstanding Tasks

Milestone renamed

Note: See TracTickets for help on using tickets.