Posts: 504 from 2003/2/24
From: finland, the l...
Im trying the new GDB with a simple example but I only get this error:
../../gdb-8.3/gdb/common/pathstuff.c:132: internal-error: gdb::unique_xmalloc_ptr<char> gdb_abspath(const char*): Assertion `path != NULL && path != '\0'' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n)
Well, running GDB with no parameters also show that error. No matter if I press Y or N.
It appears gdb 8.3 has a bug in it. It will throw an assert() if the user has empty $HOME variable. Also due to 2nd bug, it will in this case also jump to address 0.
Also linux gdb 8.3 is affected (it's in Debian unstable for example):
$ HOME= gdb
Anyway, a workaround is simple: set HOME env variable to some sensible value (your home directory). We'll also provide a fix in the next SDK that avoids the buggy assert in the first place.