Skip to content

Extra blank line in pystack output #290

@godlygeek

Description

@godlygeek

PyStack's output sometimes contains an extra blank line. For instance:

(venv) root@6cf9d18a89ec:/tmp# python -m http.server &
[1] 2940
(venv) root@6cf9d18a89ec:/tmp# Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...

(venv) root@6cf9d18a89ec:/tmp# kill -ABRT 2940
(venv) root@6cf9d18a89ec:/tmp# jobs
[1]+  Aborted                    (core dumped) python -m http.server
(venv) root@6cf9d18a89ec:/tmp# pystack core core
Using executable found in the core file: /tmp/venv/bin/python

Core file information:
state: R zombie: True niceness: 0
pid: 2940 ppid: 1 sid: 1
uid: 0 gid: 0 pgrp: 2940
executable: python arguments: python -m http.server

The process died due receiving signal SIGABRT sent by pid 1
Traceback for thread 2940 [] (most recent call last):
    (Python) File "<frozen runpy>", line 198, in _run_module_as_main
    (Python) File "<frozen runpy>", line 88, in _run_code
    (Python) File "/usr/lib/python3.14/http/server.py", line 1432, in <module>
        test(

    (Python) File "/usr/lib/python3.14/http/server.py", line 1359, in test
        httpd.serve_forever()
    (Python) File "/usr/lib/python3.14/socketserver.py", line 235, in serve_forever
        ready = selector.select(poll_interval)
    (Python) File "/usr/lib/python3.14/selectors.py", line 398, in select
        fd_event_list = self._selector.poll(timeout)

Identify why the extra blank line is showing up and fix it.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions