#30854: nedit on lion is aborted ----------------------------------+----------------------------------------- Reporter: linkofhyrule@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: | Keywords: lion Port: nedit | ----------------------------------+----------------------------------------- Comment(by econoplas@…): This looks like a bug in nedit... not a problem with MacPorts per se. Below is the unified diff of the one-liner fix. Problem was call to memset with len=256 on 255-char long array. Makes memset_chk grumpy. Bummer. I built nedit-5.5-src.tar.gz source tarball on lion (10.7.2) with OpenMotif 2.1.32 and Xcode 4.2.1 and it seems to be running just fine so far. No more abort trap: 6 at startup. {{{ --- nedit-5.5/source/regularExp.c 2004-08-20 10:37:30.000000000 -0600 +++ nedit-5.5-macosx-lion-built/source/regularExp.c 2012-01-12 18:04:36.000000000 -0700 @@ -2645,7 +2645,7 @@ /* Default table for determining whether a character is a word delimiter. */ -static unsigned char Default_Delimiters [UCHAR_MAX] = {0}; +static unsigned char Default_Delimiters [UCHAR_MAX+1] = {0}; static unsigned char *Current_Delimiters; /* Current delimiter table */ }}} -- Ticket URL: <https://trac.macports.org/ticket/30854#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS