{"record":{"id":"3e1557602abb5208","repo":"Hmbown/CodeWhale","slug":"no-proc-self-maps-row-contains-the-updater-marker","errorCode":null,"errorMessage":"no /proc/self/maps row contains the updater marker","messagePattern":"no /proc/self/maps row contains the updater marker","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/cli/src/update.rs","lineNumber":414,"sourceCode":"            .context(\"loaded-image mapping has an invalid device minor number\")?;\n        if path.is_empty() {\n            bail!(\"loaded-image mapping for updater marker has no pathname\");\n        }\n\n        let mapping = AndroidImageMapping {\n            start,\n            end,\n            device_major,\n            device_minor,\n            inode,\n            path: PathBuf::from(path),\n        };\n        if matching.replace(mapping).is_some() {\n            bail!(\"multiple /proc/self/maps rows contain the updater marker\");\n        }\n    }\n\n    matching.ok_or_else(|| anyhow!(\"no /proc/self/maps row contains the updater marker\"))\n}\n\n#[cfg(all(test, unix))]\nfn resolve_android_loaded_executable_report(\n    maps: &str,\n    marker: u64,\n    dladdr_path: &Path,\n) -> Result<PathBuf> {\n    Ok(android_loaded_executable_proof_report(maps, marker, dladdr_path)?.path)\n}\n\n#[cfg(any(target_os = \"android\", all(test, unix)))]\nfn android_loaded_executable_proof_report(\n    maps: &str,\n    marker: u64,\n    dladdr_path: &Path,\n) -> Result<AndroidExecutableProof> {\n    let mapping = parse_android_image_mapping(maps, marker)?;","sourceCodeStart":396,"sourceCodeEnd":432,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/73e0f67d83c59909b571efdfc88c4bc28c309cb1/crates/cli/src/update.rs#L396-L432","documentation":"parse_android_image_mapping scans /proc/self/maps text for the row containing a known updater marker address to prove which executable image is loaded on Android. If no row matches the marker, this error is thrown — the loaded image does not correspond to the updater that wrote the marker. It is used by android_loaded_executable_proof_report.","triggerScenarios":"The marker address does not fall inside any mapped memory region in /proc/self/maps: the updater binary was not actually loaded, the process was re-exec'd into a different image, or the maps content was read from the wrong process.","commonSituations":"Running on a non-Android or hardened Android environment where the updater path is missing; SELinux/registry restrictions altering mappings; a self-update flow where the old binary was replaced and re-exec skipped.","solutions":["Verify the updater was actually executed and re-exec'd into the current process (check the update flow logs).","Dump /proc/self/maps manually and confirm the expected binary path appears.","Re-run the update to regenerate the marker and mapping.","If the platform legitimately cannot expose the mapping, treat the proof report as unavailable rather than forcing it."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":"// pre-check that the marker address maps into some region\nconst mapped = maps.split('\\n').some(row => {\n  const [range] = row.split(' ');\n  const [lo, hi] = range.split('-').map(x => parseInt(x, 16));\n  return marker >= lo && marker < hi;\n});","typeGuard":null,"tryCatchPattern":"match parse_android_image_mapping(maps, marker) {\n  Ok(report) => report,\n  Err(e) if e.to_string().contains(\"no /proc/self/maps row\") => {\n    // treat as proof-unavailable, log and continue\n  }\n  Err(e) => return Err(e),\n}","preventionTips":["Confirm the updater actually re-exec'd into the expected binary.","Capture /proc/self/maps close in time to the check.","Handle Android SELinux restrictions that can alter mappings.","Treat the proof report as best-effort on hardened platforms."],"tags":["android","proc-maps","update","verification"],"backgroundTag":"resource-not-found","analyzedSha":"73e0f67d83c59909b571efdfc88c4bc28c309cb1","analyzedAt":"2026-09-22T01:30:00.501Z","contentChangedAt":"2026-09-22T01:30:00.501Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}