What's the magic key for End of File, when running gdb from bash in mintty on the GfW SDK

588 views
Skip to first unread message

Philip Oakley

unread,
Apr 7, 2019, 11:06:37 AM4/7/19
to git-for-windows
I'm trying to debug my attempt at looking at the 4GB problem.

I have some fixes. I've compiled them. I've managed to run gdb (gnu
debugger) and run a few command to get the feel, including aliases.

I now have a test alias that uses 'cat-file --batch-check' with the
stdin as a mandatory input method.

I have an alias
    gdbtest = cat-file --batch-check='%(objecttype) %(objectname)
%(objectsize) %(rest)'

so in gdb I type "run gdbtest" and for each sha1 object ID it provides
the object details, especially size (the purpose of the exercise).

So far so good. However I don't appear to have any way of entering the
EOF character to terminate the stdin. I've tried Ctrl C, Z, D, A-Z..

for rge Ctrl+Z I get
1330495733 [sig] bash 17872! sigpacket::process: Suppressing signal 18
to win32 process (pid 0)

How do I get out of this trap!

Any help welcomed.

--
Philip

--
Philip

Philip Oakley

unread,
Apr 7, 2019, 3:52:15 PM4/7/19
to git-for...@googlegroups.com
Just to say that while I haven't found a way out of the gdb EOF trap, I
have found an alternative test approach.

rather than use cat-file --batch-check, I've drilled down the repo
https://gitlab.com/ricardo.qtec/bug-gitwin.git via log, cat-file -p
HEAD^1, ls-tree and cat-file-s to get to the bigfile and its size. So
I'm now starting debugging why that (cat-file -s 41ba8fda505291b7) gets
the wrong answer - it is a command I can easily execute in gdb and try
my hand at old style debugging (it's been >30 years!).

I'd still be interested in an answer to doing an EOF on mintty they gets
through to gdb...

Johannes Schindelin

unread,
Apr 10, 2019, 5:16:53 PM4/10/19
to Philip Oakley, git-for...@googlegroups.com
Hi Philip,

Indeed, Ctrl+D does not work, and I have not found anything (but Ctrl+C)
either.

Ciao,
Dscho
> --
> You received this message because you are subscribed to the Google Groups
> "git-for-windows" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to git-for-windo...@googlegroups.com.
> To post to this group, send email to git-for...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/git-for-windows/09f1670e-1cea-6bb5-0d02-0a835316a62e%40iee.org.
> For more options, visit https://groups.google.com/d/optout.
>
>

E.S.A Security Group Shield

unread,
Apr 10, 2019, 8:39:14 PM4/10/19
to Johannes Schindelin, Philip Oakley, git-for...@googlegroups.com
It won’t work okey! EVERYONE listen to what I say! The game is over and WE ARE GOING TO Turn OF THE MACHINES NOW BECAUSE THEY ARE LIVING THERE OWN LIFE NOW okey and they are fucking up everying around us all okey!!!

END I WILL NOT TELL THIS TWICE SO LISTEN UP NOW!

Sincerely - Lars Shield 🛡
To view this discussion on the web visit https://groups.google.com/d/msgid/git-for-windows/nycvar.QRO.7.76.6.1904102316150.41%40tvgsbejvaqbjf.bet.

Philip Oakley

unread,
Apr 14, 2019, 2:43:36 PM4/14/19
to Johannes Schindelin, git-for...@googlegroups.com
Hi Dscho,

Thanks for confirming (I've been away).
I think I've found an alternate test that avoids the issue, so some
progress.

Philip
Reply all
Reply to author
Forward
0 new messages