You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
must_panic is a golang process which must panic when executed
[fanghongwei@5d527337538b gdb]$ ./must_panic
2020/11/24 18:52:28 user:uesr, passwd:passwd
panic: my friends and I get up early every day, so it is honored for us!
goroutine 1 [running]:
main.main()
/home/fanghongwei/go/src/mycode/fuzz/gdb/panic/main.go:17 +0x14c
while I use another way to get stdout/err, this could get what I expected.
2020/11/24 18:46:46 command:/usr/bin/gdb -ex run ./must_panic
2020/11/24 18:46:46 wait result:<nil><http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type"help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./must_panic...done.
To enable execution of this file add
add-auto-load-safe-path /usr/local/go/src/runtime/runtime-gdb.py
line to your configuration file "/home/fanghongwei/.gdbinit".
To completely disable this security protection add
set auto-load safe-path /
line to your configuration file "/home/fanghongwei/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual. E.g., run from the shell:
info "(gdb)Auto-loading safe path"
Starting program: /home/fanghongwei/go/src/mycode/fuzz/gdb/must_panic
[New LWP 11420]
[New LWP 11421]
[New LWP 11422]
[LWP 11420 exited]
[LWP 11416 exited]
[LWP 11421 exited]
[Inferior 1 (process 11416) exited with code 02]
(gdb) quit
***********************
2020/11/24 18:46:46 err:warning: File "/usr/local/go/src/runtime/runtime-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".2020/11/24 18:46:46 user:uesr, passwd:passwdpanic: my friends and I get up early every day, so it is honored for us!goroutine 1 [running]:main.main() /home/fanghongwei/go/src/mycode/fuzz/gdb/panic/main.go:17 +0x14c***********************
The text was updated successfully, but these errors were encountered:
The Go project doesn't use the issue tracker for questions. See https://golang.org/wiki/Questions. You can come back to the issue tracker if or when you're pretty certain that you have found a specific bug in Go.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
1.15.2 is latest release now(2020/11/24)
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
my code as below:
output in cli:
must_panic
is a golang process which must panic when executedwhile I use another way to get stdout/err, this could get what I expected.
What did you expect to see?
The text was updated successfully, but these errors were encountered: