Segfault / Invalid RPython instruction when importing code with native libraries under ulimit
Created originally on Bitbucket by david_maciver_ (David MacIver)
I get a segfault when doing the following:
- Set a ulimit with "ulimit -v 150000 -v 150000"
- Run py.test on a file containing just the following two lines:
#!python import sqlite3 import json
On both a nightly build and the 2.5.0 release this segfaults. On a nightly with the binaries replaced with ones with assertions enabled I get "Invalid RPython operation (NULL ptr or bad array index)"