ish-app / ish-app/ish

Reinstalling man-pages crashes iSH

Open
#1,734 4 comments 0 reactions 0 assignees View on GitHub
unconfirmed
Dominant language
C
Stars
20.5k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

I don’t even know with this one…

1. Install `man-pages`
`apk add man-pages`
2. Reinstall `man-pages`
`apk fix man-pages`
3. Observe iSH hard-crashing

```
{"app_name":"iSH","timestamp":"2022-02-24 22:44:44.00 -0800","app_version":"1.2.3","slice_uuid":"5f72cbc8-f1ca-34a3-8882-bf0a879afe83","adam_id":"1436902243","build_version":"298","platform":2,"bundleID":"app.ish.iSH","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"iPhone OS 15.3.1 (19D52)","incident_id":"5428668D-2F68-4328-8860-9FAA228A8A29","name":"iSH"}
{
"uptime" : 230000,
"procLaunch" : "2022-02-24 22:43:58.1765 -0800",
"procRole" : "Foreground",
"version" : 2,
"userID" : 501,
"deployVersion" : 210,
"modelCode" : "iPhone14,5",
"procStartAbsTime" : 5699508568330,
"coalitionID" : 568,
"osVersion" : {
"isEmbedded" : true,
"train" : "iPhone OS 15.3.1",
"releaseType" : "User",
"build" : "19D52"
},
"captureTime" : "2022-02-24 22:44:44.1914 -0800",
"incident" : "5428668D-2F68-4328-8860-9FAA228A8A29",
"bug_type" : "309",
"pid" : 3023,
"procExitAbsTime" : 5700612728078,
"cpuType" : "ARM-64",
"procName" : "iSH",
"procPath" : "\/private\/var\/containers\/Bundle\/Application\/EC5BB5DF-9A58-47C2-B9B9-D5DA2011D316\/iSH.app\/iSH",
"bundleInfo" : {"CFBundleShortVersionString":"1.2.3","CFBundleVersion":"298","CFBundleIdentifier":"app.ish.iSH","DTAppStoreToolsBuild":"13C90b"},
"storeInfo" : {"storeCohortMetadata":"10|date=1643574600000&sf=143455&prpg=Genre_179183&ctxt=Search&lngid=6","itemID":"1436902243","deviceIdentifierForVendor":"8E1BF830-E52E-4255-A6C3-2D6710C273FD","softwareVersionExternalIdentifier":"846044774","thirdParty":true,"applicationVariant":"1:iPhone14,5:15"},
"parentProc" : "launchd",
"parentPid" : 1,
"coalitionName" : "app.ish.iSH",
"crashReporterKey" : "969e42616d0b9772dfd83be243d9a5a61b412821",
"basebandVersion" : "1.41.06",
"isCorpse" : 1,
"exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
"asi" : {"libsystem_c.dylib":["abort() called"]},
"faultingThread" : 14,
"threads" : [{"id":1498940,"name":"login-7","queue":"com.apple.main-thread","frames":[{"imageOffset":5380,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":7068,"symbol":"mach_msg","symbolLocation":76,"imageIndex":0},{"imageOffset":30520,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":372,"imageIndex":1},{"imageOffset":47660,"symbol":"__CFRunLoopRun","symbolLocation":1212,"imageIndex":1},{"imageOffset":128104,"symbol":"CFRunLoopRunSpecific","symbolLocation":600,"imageIndex":1},{"imageOffset":5004,"symbol":"GSEventRunModal","symbolLocation":164,"imageIndex":2},{"imageOffset":5346768,"symbol":"-[UIApplication _run]","symbolLocation":1100,"imageIndex":3},{"imageOffset":2719604,"symbol":"UIApplicationMain","symbolLocation":364,"imageIndex":3},{"imageOffset":43176,"imageIndex":4},{"imageOffset":105124,"symbol":"start","symbolLocation":520,"imageIndex":5}]},{"id":1498943,"frames":[{"imageOffset":3724,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":6}]},{"id":1498946,"name":"com.apple.uikit.eventfetch-thread","frames":[{"imageOffset":5380,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":7068,"symbol":"mach_msg","symbolLocation":76,"imageIndex":0},{"imageOffset":30520,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":372,"imageIndex":1},{"imageOffset":47660,"symbol":"__CFRunLoopRun","symbolLocation":1212,"imageIndex":1},{"imageOffset":128104,"symbol":"CFRunLoopRunSpecific","symbolLocation":600,"imageIndex":1},{"imageOffset":101508,"symbol":"-[NSRunLoop(NSRunLoop) runMode:beforeDate:]","symbolLocation":236,"imageIndex":7},{"imageOffset":368056,"symbol":"-[NSRunLoop(NSRunLoop) runUntilDate:]","symbolLocation":92,"imageIndex":7},{"imageOffset":4794188,"symbol":"-[UIEventFetcher threadMain]","symbolLocation":524,"imageIndex":3},{"imageOffset":427004,"symbol":"__NSThread__start__","symbolLocation":808,"imageIndex":7},{"imageOffset":6564,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":3744,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"id":1498948,"name":"JavaScriptCore bmalloc scavenger","frames":[{"imageOffset":8080,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":33364,"symbol":"_pthread_cond_wait","symbolLocation":1228,"imageIndex":6},{"imageOffset":40412,"symbol":"std::__1::condition_variable::wait(std::__1::unique_lock&)","symbolLocation":28,"imageIndex":8},{"imageOffset":18747764,"symbol":"void std::__1::condition_variable_any::wait >(std::__1::unique_lock&)","symbolLocation":108,"imageIndex":9},{"imageOffset":18766148,"symbol":"bmalloc::Scavenger::threadRunLoop()","symbolLocation":340,"imageIndex":9},{"imageOffset":18765028,"symbol":"bmalloc::Scavenger::threadEntryPoint(bmalloc::Scavenger*)","symbolLocation":16,"imageIndex":9},{"imageOffset":18770336,"symbol":"void* std::__1::__thread_proxy >, void (*)(bmalloc::Scavenger*), bmalloc::Scavenger*> >(void*)","symbolLocation":48,"imageIndex":9},{"imageOffset":6564,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":3744,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"id":1498953,"name":"init-1","frames":[{"imageOffset":8080,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":33364,"symbol":"_pthread_cond_wait","symbolLocation":1228,"imageIndex":6},{"imageOffset":263696,"imageIndex":4},{"imageOffset":263412,"imageIndex":4},{"imageOffset":177856,"imageIndex":4},{"imageOffset":142384,"imageIndex":4},{"imageOffset":146088,"imageIndex":4},{"imageOffset":146320,"imageIndex":4},{"imageOffset":6564,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":3744,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"id":1498964,"name":"getty-5","frames":[{"imageOffset":8080,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":33364,"symbol":"_pthread_cond_wait","symbolLocation":1228,"imageIndex":6},{"imageOffset":263696,"imageIndex":4},{"imageOffset":263412,"imageIndex":4},{"imageOffset":244796,"imageIndex":4},{"imageOffset":188536,"imageIndex":4},{"imageOffset":142384,"imageIndex":4},{"imageOffset":146088,"imageIndex":4},{"imageOffset":146320,"imageIndex":4},{"imageOffset":6564,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":3744,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"id":1498965,"name":"getty-6","frames":[{"imageOffset":8080,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":33364,"symbol":"_pthread_cond_wait","symbolLocation":1228,"imageIndex":6},{"imageOffset":263696,"imageIndex":4},{"imageOffset":263412,"imageIndex":4},{"imageOffset":244796,"imageIndex":4},{"imageOffset":188536,"imageIndex":4},{"imageOffset":142384,"imageIndex":4},{"imageOffset":146088,"imageIndex":4},{"imageOffset":146320,"imageIndex":4},{"imageOffset":6564,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":3744,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"id":1498968,"name":"login-7","frames":[{"imageOffset":8080,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":33364,"symbol":"_pthread_cond_wait","symbolLocation":1228,"imageIndex":6},{"imageOffset":263696,"imageIndex":4},{"imageOffset":263412,"imageIndex":4},{"imageOffset":158200,"imageIndex":4},{"imageOffset":159140,"imageIndex":4},{"imageOffset":142384,"imageIndex":4},{"imageOffset":146088,"imageIndex":4},{"imageOffset":146320,"imageIndex":4},{"imageOffset":6564,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":3744,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"id":1498972,"name":"ash-8","frames":[{"imageOffset":8080,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":33364,"symbol":"_pthread_cond_wait","symbolLocation":1228,"imageIndex":6},{"imageOffset":263696,"imageIndex":4},{"imageOffset":263412,"imageIndex":4},{"imageOffset":158200,"imageIndex":4},{"imageOffset":159140,"imageIndex":4},{"imageOffset":142384,"imageIndex":4},{"imageOffset":146088,"imageIndex":4},{"imageOffset":146320,"imageIndex":4},{"imageOffset":6564,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":3744,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"id":1498987,"name":"getty-11","frames":[{"imageOffset":8080,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":33364,"symbol":"_pthread_cond_wait","symbolLocation":1228,"imageIndex":6},{"imageOffset":263696,"imageIndex":4},{"imageOffset":263412,"imageIndex":4},{"imageOffset":244796,"imageIndex":4},{"imageOffset":188536,"imageIndex":4},{"imageOffset":142384,"imageIndex":4},{"imageOffset":146088,"imageIndex":4},{"imageOffset":146320,"imageIndex":4},{"imageOffset":6564,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":3744,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"id":1498999,"name":"getty-12","frames":[{"imageOffset":8080,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":33364,"symbol":"_pthread_cond_wait","symbolLocation":1228,"imageIndex":6},{"imageOffset":263696,"imageIndex":4},{"imageOffset":263412,"imageIndex":4},{"imageOffset":244796,"imageIndex":4},{"imageOffset":188536,"imageIndex":4},{"imageOffset":142384,"imageIndex":4},{"imageOffset":146088,"imageIndex":4},{"imageOffset":146320,"imageIndex":4},{"imageOffset":6564,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":3744,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"id":1499013,"frames":[{"imageOffset":3724,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":6}]},{"id":1499014,"name":"getty-13","frames":[{"imageOffset":8080,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":33364,"symbol":"_pthread_cond_wait","symbolLocation":1228,"imageIndex":6},{"imageOffset":263696,"imageIndex":4},{"imageOffset":263412,"imageIndex":4},{"imageOffset":244796,"imageIndex":4},{"imageOffset":188536,"imageIndex":4},{"imageOffset":142384,"imageIndex":4},{"imageOffset":146088,"imageIndex":4},{"imageOffset":146320,"imageIndex":4},{"imageOffset":6564,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":3744,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"id":1499021,"name":"getty-14","frames":[{"imageOffset":8080,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":33364,"symbol":"_pthread_cond_wait","symbolLocation":1228,"imageIndex":6},{"imageOffset":263696,"imageIndex":4},{"imageOffset":263412,"imageIndex":4},{"imageOffset":244796,"imageIndex":4},{"imageOffset":188536,"imageIndex":4},{"imageOffset":142384,"imageIndex":4},{"imageOffset":146088,"imageIndex":4},{"imageOffset":146320,"imageIndex":4},{"imageOffset":6564,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":3744,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"triggered":true,"id":1499442,"name":"apk-15","threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":0},{"value":10795844033},{"value":117},{"value":2560},{"value":0},{"value":11502111476347231804},{"value":11502111478951390780},{"value":12884903820},{"value":35747327864278528},{"value":85},{"value":5822026560},{"value":16383},{"value":7965787152,"symbolLocation":0,"symbol":"OBJC_CLASS_$___NSCFString"},{"value":328},{"value":6162083840},{"value":0},{"value":6},{"value":44567},{"value":6162084064},{"value":5771419648},{"value":4306125680},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":8355844984},"cpsr":{"value":1073745920},"fp":{"value":6162054512},"sp":{"value":6162054480},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":7386151268,"matchesCrashFrame":1},"far":{"value":6639875704}},"frames":[{"imageOffset":31076,"symbol":"__pthread_kill","symbolLocation":8,"imageIndex":0},{"imageOffset":29560,"symbol":"pthread_kill","symbolLocation":268,"imageIndex":6},{"imageOffset":130896,"symbol":"abort","symbolLocation":164,"imageIndex":10},{"imageOffset":148928,"imageIndex":4},{"imageOffset":136184,"imageIndex":4},{"imageOffset":217128,"imageIndex":4},{"imageOffset":207648,"imageIndex":4},{"imageOffset":187008,"imageIndex":4},{"imageOffset":142384,"imageIndex":4},{"imageOffset":146088,"imageIndex":4},{"imageOffset":146320,"imageIndex":4},{"imageOffset":6564,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":3744,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]}],
"usedImages" : [
{
"source" : "P",
"arch" : "arm64e",
"base" : 7386120192,
"size" : 212992,
"uuid" : "ff3ee512-a0bc-3123-b983-d365a71fb06a",
"path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
"name" : "libsystem_kernel.dylib"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 6455689216,
"size" : 4538368,
"uuid" : "e2f84645-2905-31ef-8ec7-3cc19c3cddb3",
"path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/CoreFoundation",
"name" : "CoreFoundation"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 6921003008,
"size" : 36864,
"uuid" : "b40e3b17-90c7-3ebc-b6bc-8c7b605f47a9",
"path" : "\/System\/Library\/PrivateFrameworks\/GraphicsServices.framework\/GraphicsServices",
"name" : "GraphicsServices"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 6494130176,
"size" : 25739264,
"uuid" : "920a0ee6-d266-3058-8144-27a27b23ad62",
"path" : "\/System\/Library\/PrivateFrameworks\/UIKitCore.framework\/UIKitCore",
"name" : "UIKitCore"
},
{
"source" : "P",
"arch" : "arm64",
"base" : 4305354752,
"size" : 671744,
"uuid" : "5f72cbc8-f1ca-34a3-8882-bf0a879afe83",
"path" : "\/private\/var\/containers\/Bundle\/Application\/EC5BB5DF-9A58-47C2-B9B9-D5DA2011D316\/iSH.app\/iSH",
"name" : "iSH"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 4310466560,
"size" : 360448,
"uuid" : "780553c7-d39f-322a-8cb9-f4f6de52610d",
"path" : "\/usr\/lib\/dyld",
"name" : "dyld"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 8355815424,
"size" : 49152,
"uuid" : "a17d07cf-e86a-3923-87c4-921045898a8a",
"path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
"name" : "libsystem_pthread.dylib"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 6481006592,
"size" : 3174400,
"uuid" : "925a43cd-eaf2-3161-9378-3ed87468301d",
"path" : "\/System\/Library\/Frameworks\/Foundation.framework\/Foundation",
"name" : "Foundation"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 6868279296,
"size" : 409600,
"uuid" : "346a1fc1-f0b3-37db-b102-09951bb9aa78",
"path" : "\/usr\/lib\/libc++.1.dylib",
"name" : "libc++.1.dylib"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 6640353280,
"size" : 19861504,
"uuid" : "8882e299-ecd2-36a1-839b-41ee2ca83aa6",
"path" : "\/System\/Library\/Frameworks\/JavaScriptCore.framework\/JavaScriptCore",
"name" : "JavaScriptCore"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 6639472640,
"size" : 520192,
"uuid" : "9b299ee5-b379-3856-848b-524d82640dbc",
"path" : "\/usr\/lib\/system\/libsystem_c.dylib",
"name" : "libsystem_c.dylib"
}
],
"sharedCache" : {
"base" : 6452248576,
"size" : 2515517440,
"uuid" : "a2d995b8-2459-39e3-9035-04cf974f8d50"
},
"vmSummary" : "ReadOnly portion of Libraries: Total=650.4M resident=0K(0%) swapped_out_or_unallocated=650.4M(100%)\nWritable regions: Total=641.3M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=641.3M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nActivity Tracing 256K 1 \nCG raster data 1264K 17 \nColorSync 32K 2 \nCoreAnimation 224K 12 \nFoundation 16K 1 \nKernel Alloc Once 32K 1 \nMALLOC 594.6M 138 \nMALLOC guard page 128K 8 \nSQLite page cache 640K 10 \nSTACK GUARD 240K 15 \nStack 8624K 15 \nVM_ALLOCATE 25.2M 1152 \nVM_ALLOCATE (reserved) 320K 19 reserved VM address space (unallocated)\nWebKit Malloc 9472K 17 \n__AUTH 3262K 348 \n__AUTH_CONST 17.8M 476 \n__DATA 14.5M 466 \n__DATA_CONST 18.3M 481 \n__DATA_DIRTY 1500K 399 \n__FONT_DATA 4K 1 \n__LINKEDIT 188.1M 5 \n__OBJC_CONST 4306K 324 \n__OBJC_RO 91.2M 1 \n__OBJC_RW 3488K 1 \n__TEXT 462.3M 492 \n__UNICODE 588K 1 \ndyld private memory 1024K 1 \nmapped file 193.7M 124 \nshared memory 48K 3 \n=========== ======= ======= \nTOTAL 1.6G 4531 \nTOTAL, minus reserved VM space 1.6G 4531 \n",
"legacyInfo" : {
"threadTriggered" : {
"name" : "apk-15"
}
},
"trialInfo" : {
"rollouts" : [
{
"rolloutId" : "60da5e84ab0ca017dace9abf",
"factorPackIds" : {

},
"deploymentId" : 240000008
},
{
"rolloutId" : "607844aa04477260f58a8077",
"factorPackIds" : {
"SIRI_MORPHUN_ASSETS" : "6103050cbfe6dc472e1c982a"
},
"deploymentId" : 240000066
},
{
"rolloutId" : "602ad4dac86151000cf27e46",
"factorPackIds" : {
"SIRI_DICTATION_ASSETS" : "61fb0e59c773c43cde3bb80d"
},
"deploymentId" : 240000305
},
{
"rolloutId" : "60509d56f2766876dee21c11",
"factorPackIds" : {
"SIRI_UNDERSTANDING_ASR_ASSISTANT" : "61fb11b9c773c43cde3bb81d",
"SIRI_UNDERSTANDING_NL" : "61de1d0db1ed363a74899508",
"SIRI_UNDERSTANDING_MORPHUN" : "610072c2f6774779a7ced014",
"SIRI_EXPERIENCE_CAM" : "619444cf2171a2330e561f60"
},
"deploymentId" : 240000605
},
{
"rolloutId" : "601d9415f79519000ccd4b69",
"factorPackIds" : {
"SIRI_TEXT_TO_SPEECH" : "620161cb295c182621eced20"
},
"deploymentId" : 240000392
},
{
"rolloutId" : "5fc94383418129005b4e9ae0",
"factorPackIds" : {
"SIRI_UNDERSTANDING_ASR_HAMMER" : "621522708f87212159690464"
},
"deploymentId" : 240000249
},
{
"rolloutId" : "602c34a3046661000c9ebdde",
"factorPackIds" : {
"SIRI_UNDERSTANDING_NL_OVERRIDES" : "62151dde53dd55727da80161"
},
"deploymentId" : 240000616
},
{
"rolloutId" : "5ffde50ce2aacd000d47a95f",
"factorPackIds" : {

},
"deploymentId" : 240000111
}
],
"experiments" : [

]
}
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure with `apk add man-pages` followed by `apk fix man-pages`, then inspect the supplied iSH crash log, especially the `apk-15` faulting thread. Trace the package-reinstall path from that entry point; done means reinstalling `man-pages` no longer hard-crashes iSH.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.