Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 927063

Summary: dev-debug/gdb 14.1-r1 error internal-error find_inferior_pid: Assertion pid != 0 failed.
Product: Gentoo Linux Reporter: Aivan <biv888iii888>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: UNCONFIRMED ---    
Severity: critical CC: csfore
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Aivan 2024-03-15 11:02:37 UTC
dev-debug/gdb 14.1-r1 with flags "nls python3_11 server xml"
cpu: CPU: Intel i7-4770

i want to restore full record:
1) code (c): 
#include <stdio.h>
int num() {return 2;}
void bar(int i){printf("i = %d\n", i);}
int main(){bar(num());return 0;}

2) gcc -ggdb3 main.c -o main

3) gdb main
b main
b num
r
record full
c
record save
stop
record full restore gdb_record
c

4) error:
inferior.c:394: internal-error: find_inferior_pid: Assertion `pid != 0' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n)
This is a bug, please report it.
Comment 1 Christopher Fore 2024-03-16 01:22:12 UTC
could you post your emerge --info and which version of gcc you used to build gdb?