This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

printf + pthreads+gdb+mintty = hang?


Hi all,

Running the attached STC inside gdb hangs (zero CPU util, have to kill gdb from Task Manager, killing a.exe doesn't cut it).

Compile line used: g++ -Wall -g -mthreads -DBUG bug.cpp

I currently have the following package versions:
cygwin-1.7.18(0.263/5/3) 2013-04-19
mintty-1.1.3-1
gdb-7.6.50-1
gcc-4.5.3-3

The problem seems to be related to threads calling fprintf inside gdb, it runs fine from the command line, or with printf instead; both fprintf and printf sometimes trigger "warning: SuspendThread failed. (winerr 6)" (not sure if that matters).

Known issue? Easy workaround? New bug?

Thanks,
Ryan

Attachment: bug.cpp
Description: Text document

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]