On 22/05/2025 19:55, Brian Inglis via Cygwin wrote:
On 2025-05-22 10:07, ASSI via Cygwin wrote:
Gary Liddle via Cygwin writes:
Thanks for the link, but all the .dbg programmes segfault in:-
ie bash.exe.dbg
mainCRTStartup () at /usr/src/debug/cygwin-3.4.10-1/winsup/
cygwin/crt0.c:16
for all versions (which might be a clue?).
Did you actually close all Cygwin programs and stopped all services
before the update? It seems that you are still using an old Cygwin DLL,
which isn't going to work with programs linked to a newer version.
To check no Cygwin programs are running, start TaskMgr, view Details
tab, select column Image Path Name, and check nothing is running under
your Root path.
Download the latest Cygwin Setup from https://cygwin.com/setup-
x86_64.exe, run it and allow it to apply upgrades to anything installed,
then allow all Cygwin Setup Postinstall scripts to run to completion,
checking in Taskmgr as above.
Check /var/log/setup.log.full for any errors and report them here if
uncertain.
Rerun Cygwin Setup if necessary, without making any selections, to
ensure all Postinstall scripts are run to completion, as some are
critical to getting a working install.
Guys, context is important.
$ gdb /usr/lib/debug/bin/bash.exe.dbg
GNU gdb (GDB) (Cygwin 15.2-1) 15.2
[...]
Reading symbols from /usr/lib/debug/bin/bash.exe.dbg...
(gdb) r
Starting program: /usr/lib/debug/usr/bin/bash.exe.dbg
Program received signal SIGSEGV, Segmentation fault.
mainCRTStartup () at /usr/src/debug/cygwin-3.4.10-1/winsup/cygwin/crt0.c:16
warning: 16 /usr/src/debug/cygwin-3.4.10-1/winsup/cygwin/crt0.c: No such
file or directory
Gary,
You are not supposed to try to run the .dbg files.
They only contain the debug information stripped from the executable
before it is packaged.
gdb is capable of following a reference added to the executable to read
that debug information automatically (when it is present). (See the
objcopy flag '--add-gnu-debuglink' for more details). Note the final
line below:
$ gdb bash
GNU gdb (GDB) (Cygwin 15.2-1) 15.2
[...]
Reading symbols from bash...
Reading symbols from /usr/lib/debug//usr/bin/bash.exe.dbg...
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation: https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple