GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Odd handling of signal raised if an illegal syscall is attempted on Android · Issue #91028 · python/cpython

Odd handling of signal raised if an illegal syscall is attempted on Android #91028

New issue
Copy link
New issue
Copy link
Closed
#116426
Closed
Odd handling of signal raised if an illegal syscall is attempted on Android#91028
#116426
Copy link
Labels
OS-androidtopic-C-APItype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

mr-nfamous
mannequin
opened on Feb 27, 2022
Issue body actions
BPO 46872
Nosy @mr-nfamous

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2022-02-27.11:26:00.251>
labels = ['expert-C-API', 'type-bug']
title = 'Odd handling of signal raised if an illegal syscall is attempted on Android'
updated_at = <Date 2022-02-27.11:26:00.251>
user = 'https://github.com/mr-nfamous'

bugs.python.org fields:

activity = <Date 2022-02-27.11:26:00.251>
actor = 'bup'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['C API']
creation = <Date 2022-02-27.11:26:00.251>
creator = 'bup'
dependencies = []
files = []
hgrepos = []
issue_num = 46872
keywords = []
message_count = 1.0
messages = ['414148']
nosy_count = 1.0
nosy_names = ['bup']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue46872'
versions = []

Activity

  1. mr-nfamous commented on Feb 27, 2022

    @mr-nfamous
    mr-nfamousmannequin
    on Feb 27, 2022
    MannequinAuthor
    More actions

    On Android, the following calls generate a SIGSYS signal that is neither blocked by pthread_sigmask(SIG_BLOCK, {SIGSYS}) nor ignored after its handler is set to SIG_IGN:

    (os.chroot(path))
    os.setgid(rgid)
    os.setuid(ruid) 
    (os.setegid(gid))
    os.setregid(rgid, egid)
    os.setreuid(ruid, euid)
    os.setresgid(rgid, egid, sgid)
    time.clock_settime(clock, time)
    time.clock_settime_ns(clock, time)
    (socket.sethostname(name))
    

    On the other hand, signal(SIGSYS, lambda s, p: None) will catch the signal, but based on frame it receives (None), I suspect this is a coincidence. Also, the functions with parenthesized names in that list raise the equivalent of OSError(0, "Error", "%s"%args[0]).

  2. mr-nfamous
    added
    topic-C-API
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Feb 27, 2022
  3. ezio-melotti
    transferred this issue fromon Apr 10, 2022
  4. encukou
    added this to Unsupported platformson Feb 1, 2024
  5. mhsmith commented on Mar 6, 2024

    @mhsmith
    mhsmith
    on Mar 6, 2024
    Member
    More actions

    Most of these functions have now been disabled at build time by #115955. The only missing one is socket.sethostname, which I didn't notice because it isn't available until API level 23, and we're building against level 21. I'll fix that in #116426.

  6. encukou
    added
    OS-android
    on Mar 20, 2024
  7. encukou
    removed this from Unsupported platformson Mar 20, 2024
  8. erlend-aasland
    closed this as completedin #116426on Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-androidtopic-C-APItype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.