Skip to content

[linux] Missing signal-death job notifications on stderr (Terminated/Killed/Hangup, 'line N: PID Killed cmd') #229

Closed

Description

@caomengxuan666

Linux build (wt4/linuxrun), GNU 5.3.0 baseline, script-file probes.

Repro (target/wslrun/p0_status.sh / probe_details.sh [I]):

/bin/sh -c 'kill -TERM $$'; echo rc=$?
sleep 5 & c=$!; kill -TERM $c; wait $c; echo killed_rc=$?

Expected (GNU): besides identical stdout statuses, stderr carries the job notification lines:

Terminated                 /bin/sh -c 'kill -TERM $$'
script.sh: line 27: 16921 Killed                     sleep 5
User defined signal 1      ( /bin/sh -c 'kill -USR1 $$' )

Actual (rubash): stderr empty - all notifications absent. (Exit statuses themselves decode correctly: 143/137/138 match.)

GNU anchor: jobs.c waitchld/job notification path - when a foreground/background job dies by signal (other than SIGINT/SIGPIPE cases per execute_cmd.c), bash prints the <signal desc>[ cmd] notice (jobs.c print_dotted_line/pretty_print_job variants feeding the "Terminated" messages; exact function to pin: jobs.c wait_for->describe_child / job_exit_status notice path). Verified shapes: bare Terminated <cmd> for foreground simple pipelines, script: line N: PID Killed <cmd> for background waited jobs, Signal desc ( cmd ) for pipeline components.

Artifacts: target/wslrun/results/p0_status.err.diff, p0_signal.err.diff (6-8 lines each, all missing-notice lines).

Activity

  1. added
    bug
    gnu-baseline
    on Sep 27, 2026
  2. caomengxuan666 commented on Sep 27, 2026

    @caomengxuan666
    MemberAuthor

    已修复并合入 master(commit b2e41b4e,lane wt4/linuxfix;GNU 引用与验证见提交信息:Linux 真机 WSL 双壳验证、24 套件平价 17→19)。感谢报告!

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

    buggnu-baseline

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions