Opened 3 years ago

Closed 3 years ago

#5046 closed bug (fixed)

test derefnull fails on OS X

Reported by: gwright Owned by: igloo
Priority: normal Milestone:
Component: Test Suite Version: 7.0.2
Keywords: Cc:
Operating System: MacOS X Architecture: Unknown/Multiple
Type of failure: Other Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

On OS X, the derefnull test fails because the test driver expects an exit code of 138 (SIGBUS) but the program exits with 139 (SIGSEGV). This is probably some relic of the early days of OS X, when access to pagezero gave a bus error instead of a segfault.

The behavior is now consistent with linux. The attached patch changes all.T to reflect this.

With this change, running the derefnull test gives:

OVERALL SUMMARY for test run started at Thu Mar 24 16:34:38 EDT 2011
    2710 total tests, which gave rise to
   10140 test cases, of which
       0 caused framework failures
   10133 were skipped

       7 expected passes
       0 expected failures
       0 unexpected passes
       0 unexpected failures

Attachments (1)

all.T.dpatch (119.5 KB) - added by gwright 3 years ago.

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by gwright

comment:1 Changed 3 years ago by gwright

  • Status changed from new to patch

comment:2 Changed 3 years ago by igloo

  • Owner changed from gwright to igloo

Thanks, I'll check what happens on my Mac.

comment:3 Changed 3 years ago by igloo

  • Resolution set to fixed
  • Status changed from patch to closed

Turns out it behaves differently on x86_64 and x86; fixed by:

Fri Mar 25 15:26:41 PDT 2011  Ian Lynagh <igloo@earth.li>
  * Correct expected exit code on OS X 64; fixes #5046
Note: See TracTickets for help on using tickets.