Opened 7 years ago

Closed 7 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 Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


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 7 years ago.

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by gwright

Attachment: all.T.dpatch added

comment:1 Changed 7 years ago by gwright

Status: newpatch

comment:2 Changed 7 years ago by igloo

Owner: changed from gwright to igloo

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

comment:3 Changed 7 years ago by igloo

Resolution: fixed
Status: patchclosed

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

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