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] | |
Op Wed, 30 Nov 2005 18:11:37 +0100 schreef Corinna Vinschen
in <20051130171137.GE2999<at>calimero.vinschen.de>:
[Test the 20051130 snapshot]
: Please report back in this thread when you encounter a problem, which
: you can't reproduce with 1.5.18. We're interested in regressions in
: the first place.
On my (w95) machine gethostbyname is failing with the snapshot.
[...]
: Keep in mind that we can easier find problems if you attach a brief,
: concise, selfcontained testcase, if possible in plain C, which allows
: easy reproducing.
[...]
You'll find one in the following transcript.
Start transcript>>>
$ uname -vr
1.5.19s(0.145/4/2) 20051130 13:17:51
$ cat tghbn.c
#include <stdio.h>
#include <netdb.h>
#include <errno.h>
int
main (int argc, char **argv)
{
if (gethostbyname ("localhost"))
puts ("Could get host by name (localhost)");
else
perror ("Could NOT get host by name (localhost)");
}
$ make tghbn
gcc tghbn.c -o tghbn
$ ./tghbn
Could NOT get host by name (localhost): Operation not permitted
$ strace -o tghbn.strace0 -m all ./tghbn
Could get host by name (localhost)
$ strace -o tghbn.strace -m all sh -c ./tghbn
Could NOT get host by name (localhost): Operation not permitted
<<<End transcript.
The bit of the strace leading upto the error in tghbn.strace:
2103 218163 [main] TGHBN 758909 pinfo_init: pid 758909, pgid 765225
4853 223016 [sig] TGHBN 758909 wait_sig: myself->dwProcessId 4294282123
-977 222039 [main] TGHBN 758909 sigproc_init: process/signal handling enabled, state 0xC1
2918 224957 [main] tghbn 758909 dll_crt0_1: user_data->main 0x401050
-888 224069 [sig] TGHBN 758909 wait_sig: entering ReadFile loop, readsig 0xD4, myself->sendsig 0xD8
1767 225836 [main] tghbn 758909 __set_errno: void dll_crt0_1(char*):896 val 0
1537 227373 [main] tghbn 758909 wait_for_sigthread: wait_sig_inited 0xC8
374106 601479 [main] tghbn 758909 wsock_init: res 0
15488 616967 [main] tghbn 758909 wsock_init: wVersion 514
1502 618469 [main] tghbn 758909 wsock_init: wHighVersion 514
1916 620385 [main] tghbn 758909 wsock_init: szDescription WinSock 2.0
7935 628320 [main] tghbn 758909 wsock_init: szSystemStatus Running
10963 639283 [main] tghbn 758909 wsock_init: iMaxSockets 0
2118 641401 [main] tghbn 758909 wsock_init: iMaxUdpDg 0
1584 642985 [main] tghbn 758909 wsock_init: lpVendorInfo 0
1191806 1834791 [main] tghbn 758909 __set_errno: void __set_winsock_errno(const char*, int):278 val 1
997 1835788 [main] tghbn 758909 __set_winsock_errno: __dup_ent:378 - winsock error 11001 -> errno 1
799 1836587 [main] tghbn 758909 cygwin_gethostbyname: dup_ent returned NULL for name localhost, h 0x0
This is/was working in 1.5.18.
Attached is cygcheck -svr output. with a self built cygwin1.dll from
Mon Nov 28 16:30:21 2005, which is the last version I have, which
doesn't show the failure. CVS-checkout for that build can't have been
much more than 24 hours earlier, probably less.
If there is other info I can provide, please let me know.
L8r,
Buzz.
--
) | | ---/ ---/ Yes, this | This message consists of true | I do not
-- | | / / really is | and false bits entirely. | mail for
) | | / / a 72 by 4 +-------------------------------+ any1 but
-- \--| /--- /--- .sigfile. | |perl -pe "s.u(z)\1.as." | me. 4^re
Attachment:
cygcheck-bbox
Description: Text document
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |