This is the mail archive of the cygwin-apps@cygwin.com 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]

Re: get windows error message 0xc0000142 on starting cygwin app


Hi Chris,

I have found some more details on this bug.
I have tested with cygwin 1.3.3-2, cygwin 1.3.2-1 and the cygwin 1.3.2-1p1
(with socket patch from egor Duda applied by me) with the same result,
that means the error message occurs with all releases.

On difference is, that with cygwin 1.3.3 gdb could not start any app as already
noted in the cygwiwn mailing list. So the values printed below belongs to
cygwin 1.3.2-1p1.

I have started the app with bash and wait until the error message box occurs.
Then I have attached the process with gdb. GBD say that there are 4 threads.

Each thread seems to have a separate stack and as I looked at the regs and bt
I recognized some things I'm wonder about:

1. Thread 1 has entered main() and has done many application initialisations
and is short before entering the main loop. If I start the app with the
debugger,
main is never reached and there is only one thread in case of error.

(gdb) info thread
* 1 thread 1300.0x794  0x77fb00ac in ?? ()
(gdb) bt
#0  0x77fb00ac in ?? ()
#1  0x77f975ba in ?? ()

2. Thread 2 has entered cygwin as shown
#0  0x77f820f0 in _libkernel32_a_iname ()
#1  0x77e7366e in _libkernel32_a_iname ()
#2  0x77e760c6 in _libkernel32_a_iname ()
!#3  0x6100457a in _libkernel32_a_iname ()
#4  0x77e737cd in _libkernel32_a_iname ()

3. As I reflect on this facts, I imagined that perhaps because of the
lot of loaded dlls there are some rase conditions, which results in a
dead lock or so, but this in only an imagine, because I really don't
know what MS like to tell me with this error message :-)

4. Below there are some infos about the threads. Perhaps you can recognize
something significant. :-)

Regards

Ralf

---------------------------------------------------------------------------
/home/habacker/tmp/kde/anoncvs.kde.org/kdegames/kjezz/1364: No such file or
directory.
Attaching to program
`/home/habacker/tmp/kde/anoncvs.kde.org/kdegames/kjezz/./kjezz.exe', process
1364
[Switching to thread 1364.0x490]
(gdb) info thread
* 4 thread 1364.0x490  0x77f9eeaa in _libkernel32_a_iname ()
  3 thread 1364.0x698  0x77f82230 in _libkernel32_a_iname ()
  2 thread 1364.0x8b8  0x77f820f0 in _libkernel32_a_iname ()
  1 thread 1364.0x79c  0x77f820f0 in _libkernel32_a_iname ()

---------------------------------------------------------------------------
(gdb) info reg $esp
esp            0x70effa8        0x70effa8

(gdb) x/20x $esp
0x70effa8:      0x77e98983      0x02b5fcbc      0xffffffff      0x070effec
0x70effb8:      0x77e737cd      0x00000000      0x00000200      0x02b5fcbc
0x70effc8:      0x00000000      0x7ffdb000      0xffffffff      0x070effc0
0x70effd8:      0xffffffff      0xffffffff      0x77e8dcbe      0x77e78180
0x70effe8:      0x00000000      0x00000000      0x00000000      0x77e9895a

(gdb) bt
#0  0x77f9eeaa in _libkernel32_a_iname ()
#1  0x77e98983 in _libkernel32_a_iname ()
#2  0x77e737cd in _libkernel32_a_iname ()

---------------------------------------------------------------------------
(gdb) thread 3
[Switching to thread 3 (thread 1364.0x698)]#0  0x77f82230 in
_libkernel32_a_iname ()

(gdb) bt
#0  0x77f82230 in _libkernel32_a_iname ()
#1  0x77d4275f in _libkernel32_a_iname ()
#2  0x77d425d2 in _libkernel32_a_iname ()
#3  0x77d42bb9 in _libkernel32_a_iname ()
#4  0x77e737cd in _libkernel32_a_iname ()

(gdb) info reg $esp
esp            0x6effe28        0x6effe28

(gdb) x/20x $esp
0x6effe28:      0x77d4275f      0x000000dc      0x06efff54      0x00000000
0x6effe38:      0x02498e10      0x06efff58      0x02484dc8      0x0248cf10
0x6effe48:      0x0248d350      0x814f850c      0x0000014c      0x00000000
0x6effe58:      0x00000000      0x00000001      0x00000000      0x7ffde000
0x6effe68:      0xc03007fc      0xba92bc18      0x8044b368      0x7ffdd000

---------------------------------------------------------------------------
(gdb) thread 2
[Switching to thread 2 (thread 1364.0x8b8)]#0  0x77f820f0 in
_libkernel32_a_iname ()

(gdb) bt
(gdb) bt
#0  0x77f820f0 in _libkernel32_a_iname ()
#1  0x77e7366e in _libkernel32_a_iname ()
#2  0x77e760c6 in _libkernel32_a_iname ()
#3  0x6100457a in thread_stub (arg=0x61095538) at
../../../../src/winsup/cygwin/debug.cc:97
#4  0x77e737cd in _libkernel32_a_iname ()(gdb)

info reg $esp
esp            0x4abfea4        0x4abfea4

(gdb) x/20x $esp
0x4abfea4:      0x77e7366e      0x00000003      0x04abfec8      0x00000001
0x4abfeb4:      0x00000000      0x00000000      0x0247f760      0x6104ed9c
0x4abfec4:      0x02a90000      0x000000c8      0x000000c0      0x000000bc
0x4abfed4:      0x04abfef8      0x77e738eb      0x61095c3c      0x00000000
0x4abfee4:      0x00000000      0x00000000      0x6104ed9c      0x04abff68

----------------------------------------------
(gdb) thread 1
[Switching to thread 1 (thread 1364.0x79c)]#0  0x77f820f0 in
_libkernel32_a_iname ()

(gdb) bt
#0  0x77f820f0 in _libkernel32_a_iname ()
#1  0x77e7366e in _libkernel32_a_iname ()
#2  0x77e760c6 in _libkernel32_a_iname ()
#3  0x6105276a in _spawnve (hToken=0x0, mode=3, path=0xa019420 "./kjezz.exe",
    argv=0xa019430, envp=0xa016790)  at
../../../../src/winsup/cygwin/spawn.cc:880
#4  0x6100eded in _execve (path=0xa019420 "./kjezz.exe", argv=0xa019430,
    envp=0xa016790) at ../../../../src/winsup/cygwin/exec.cc:35
#5  0x6107a796 in execve (path=0xa019420 "./kjezz.exe", argv=0xa019430,
    envp=0xa016790) at ../../../../../src/newlib/libc/posix/execve.c:13
#6  0x004132f4 in QCanvasItem::setSelected () at newscoredialog.cpp:58
#7  0x004131e0 in QWidget::QWidget () at newscoredialog.cpp:58
#8  0x0041266d in _fu352___7QString$shared_null () at newscoredialog.cpp:50
#9  0x0040f90f in JezzGame::staticMetaObject () at game.moc:453
#10 0x00410961 in _fu288___7QString$shared_null ()
    at /usr/lib/qt2/include/qstring.h:648
#11 0x0040fb35 in JezzGame::staticMetaObject () at game.moc:476
#12 0x0040f21f in JezzView::tr (s=0x0, c=0x247fe74 "¤ūG\002*\031@")
    at game.moc:304
#13 0x004037a5 in _fu354___12KApplication$KApp () at kjezz.cpp:114
#14 0x0040192a in main () at main.cpp:57
#15 0x61003aca in dll_crt0_1 () at ../../../../src/winsup/cygwin/dcrt0.cc:859
#16 0x61003c9d in _dll_crt0 () at ../../../../src/winsup/cygwin/dcrt0.cc:925
#17 0x61003cdc in dll_crt0 (uptr=0x0)  at
../../../../src/winsup/cygwin/dcrt0.cc:937
#18 0x0046dc5b in ?? ()

(gdb) info reg $esp
esp            0x247ea84        0x247ea84

(gdb) x/20x $esp
0x247ea84:      0x77e7366e      0x00000003      0x0247eaa8      0x00000001
0x247ea94:      0x00000000      0x00000000      0x00000000      0x00000003
0x247eaa4:      0x0247f788      0x000000e0      0x00000124      0x000000b0
0x247eab4:      0x0a028380      0x0247ff08      0x77e8dcbe      0x77e8b720
0x247eac4:      0xffffffff      0x0247eae8      0x610291bc      0x0247fb58
(gdb)




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