{ "id": "62396", "key": "TIMOB-1764", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:57:06.000+0000", "created": "2011-04-15T03:01:35.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "4.1", "ios", "xcode" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:57:06.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

Encountered when launching the simulator or installing the app\nafter installing the xcode 4.1.

\n

output:

\n

Detected an attempt to call a symbol in system libraries that is\nnot present on the iPhone:

\n

munmap$UNIX2003 called from function\n_ZN2TI14ExecutablePool13systemReleaseERKNS0_10AllocationE in image\nKitchenSink.

\n

pthread_cond_init$UNIX2003 called from function\n_ZN3WTI17TCMalloc_PageHeap4initEv in image KitchenSink.

\n

Detected an attempt to call a symbol in system libraries that is\nnot present on the iPhone:

\n

pthread_cond_wait$UNIX2003 called from function\n_ZN3WTI17TCMalloc_PageHeap15scavengerThreadEv in image\nKitchenSink.

\n

Detected an attempt to call a symbol in system libraries that is\nnot present on the iPhone:

\n

mmap$UNIX2003 called from function _Z20TCMalloc_SystemAllocmPmm\nin image QAtests.

\n

Detected an attempt to call a symbol in system libraries that is\nnot present on the iPhone:

\n

pthread_cond_init$UNIX2003 called from function\n_ZN3WTI17TCMalloc_PageHeap4initEv in image QAtests.

\n

Detected an attempt to call a symbol in system libraries that is\nnot present on the iPhone:

\n

pthread_cond_wait$UNIX2003 called from function\n_ZN3WTI17TCMalloc_PageHeap15scavengerThreadEv in image QAtests.

\n

Detected an attempt to call a symbol in system libraries that is\nnot present on the iPhone:

\n

mprotect$UNIX2003 called from function\nZN2TI3JIT35privateCompileCTIMachineTrampolinesEPN3WTI6RefPtrINS_14ExecutablePoolEEEPNS_12TiGlobalDataEPNS_21MacroAssemblerCodePtrES9_S9_S9\nin image QAtests.

{html}", "attachment": [], "flagged": false, "summary": "xcode 4.1 and Ti - unexpected debug output", "creator": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "126577", "author": { "name": "robby", "key": "robby", "displayName": "Robby", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Getting this same problem (as are others on the Q&A pages).\nI'm wondering if this will prevent apps that are built up against\n4.1 from being approved in the app store, as Apple's static\nanalysis tools may see these calls out to 'undefined' system\nfunctions as a violation of some sort?

{html}", "updateAuthor": { "name": "robby", "key": "robby", "displayName": "Robby", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:01:35.000+0000", "updated": "2011-04-15T03:01:35.000+0000" }, { "id": "126578", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Note to self WRT what's going on here.

\n

The methods are in TiJSCore, the webkit javascript engine we\nuse. mmap$UNIX2003 is a call to mmap compiled with the default\nsettings (IE, since 2003, the API supports POSIX calls). The odd\nbit is that this header file is the same in 4.1, and the copyrights\ndate back to 2009. Trying to recreate on my end to see if it's some\nfluke.

\n

In the mean time, considering that these are well-documented\nposix, Apple shouldn't be giving any problem, especially since it\ndoesn't look like there's any related crashes.

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:01:35.000+0000", "updated": "2011-04-15T03:01:35.000+0000" }, { "id": "126579", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Indeed, this is due to Apple tweaking things, but shouldn't be a\nworry.

\n

Detailed reason:
\nThe reason that the method was called \"mmap$UNIX2003\" was for\nbackwards compatibility-- So Apple could have two versions of mmap\ndue to behavior changes. These changes don't really matter for us,\nso we used the default. Both versions are present in iOS, but\ndefault chosen for us by Apple changed between 4.0 and 4.1, with\nthe intent that the older version will be phaseed out (thus the\nwarning). It was 'fixed' by recompiling libTiCore to 4.1 with nary\na code change.

\n

Cut to the chase:
\nThis won't be problem, has been fixed, and works fine with\n3.1.3-4.1 with no complaints, sim or device.

\n

For those of you playing the home game:
\nThis will be in the next release, but if you truly need to get the\nnewer libTiCore, it'll be at \nhttp://timobile.appcelerator.com.s3.amazonaws.com/libTiCore-8.a.gz\n.

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:01:35.000+0000", "updated": "2011-04-15T03:01:35.000+0000" }, { "id": "126580", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

back to you Blain. The fix was removed from 1.4.2 as it was\ncreating the crash on launch issue.

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:01:36.000+0000", "updated": "2011-04-15T03:01:36.000+0000" }, { "id": "126581", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

The trick was pulling the jit. \nhttps://github.com/appcelerator/titanium_mobile/commit/b09e53c04e8b...

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:01:36.000+0000", "updated": "2011-04-15T03:01:36.000+0000" }, { "id": "126582", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

1.5.0.3ee6a97

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:01:36.000+0000", "updated": "2011-04-15T03:01:36.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }