Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
Closed as not planned
Closed as not planned
Description
Bug report
Bug description:
> uname -aLinux hostname 6.1.124-rt16+g539895156e09 #1 SMP PREEMPT_RT Thu Feb 13 11:58:52 UTC 2025 aarch64 GNU/Linux> cat /tmp/test.pyimport loggingimport logging.handlersSYSLOG_SOCK = "/run/systemd/journal/syslog"handler = logging.handlers.SysLogHandler(SYSLOG_SOCK)logger = logging.getLogger()logger.addHandler(handler)logger.error("FIXME")> python3 /tmp/test.py> tail -n1 /var/log/syslog 2025-03-13T15:37:18.047355+00:00 FIXME> systemctl stop rsyslog syslog.socket> strace python3 /tmp/test.py...socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 3connect(3, {sa_family=AF_UNIX, sun_path="/run/systemd/journal/syslog"}, 30) = -1 ECONNREFUSED (Connection refused)close(3) = 0socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC, 0) = 3connect(3, {sa_family=AF_UNIX, sun_path="/run/systemd/journal/syslog"}, 30) = -1 ECONNREFUSED (Connection refused)close(3) = 0getpid() = 9214sendto(-1, "<11>FIXME\0", 10, 0, NULL, 0
^ At this point output stops, because the linux kernel crashes
I have reproduced this with both 3.10.15 and 3.12.3 versions of python.
CPython versions tested on:
3.12
Operating systems tested on:
Linux
Metadata
Metadata
Assignees
Labels
Projects
Status
Done