Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Feb 2017 15:53:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 212607] devel/gdb: debugging threaded process broken
Message-ID:  <bug-212607-13-evQvUIhXY5@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-212607-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-212607-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212607

--- Comment #12 from commit-hook@freebsd.org ---
A commit references this bug:

Author: badger
Date: Mon Feb 20 15:53:17 UTC 2017
New revision: 313992
URL: https://svnweb.freebsd.org/changeset/base/313992

Log:
  Defer ptracestop() signals that cannot be delivered immediately

  When a thread is stopped in ptracestop(), the ptrace(2) user may request
  a signal be delivered upon resumption of the thread. Heretofore, those
signals
  were discarded unless ptracestop()'s caller was issignal(). Fix this by
  modifying ptracestop() to queue up signals requested by the ptrace user t=
hat
  will be delivered when possible. Take special care when the signal is SIG=
KILL
  (usually generated from a PT_KILL request); no new stop events should be
  triggered after a PT_KILL.

  Add a number of tests for the new functionality. Several tests were autho=
red
  by jhb.

  PR:           212607
  Reviewed by:  kib
  Approved by:  kib (mentor)
  MFC after:    2 weeks
  Sponsored by: Dell EMC
  In collaboration with:        jhb
  Differential Revision:        https://reviews.freebsd.org/D9260

Changes:
  head/sys/kern/kern_fork.c
  head/sys/kern/kern_sig.c
  head/sys/kern/kern_thr.c
  head/sys/kern/subr_syscall.c
  head/sys/kern/sys_process.c
  head/sys/sys/signalvar.h
  head/tests/sys/kern/Makefile
  head/tests/sys/kern/ptrace_test.c

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-212607-13-evQvUIhXY5>