This is the mail archive of the cygwin@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: Perl 5.7.2 (GDB breaks in 1.3.3-2 on certain Win2000 machines )


On Wed, Oct 10, 2001 at 01:17:00PM -0700, Kris Erickson wrote:
>Ok, compiled it from the complete 1.3.4 version in CVS...
>
>It is on the second call to NetUserGetInfo that the signal fails...
>
>(gdb) break uinfo.cc:85
>Breakpoint 1 at 0x61067786: file ../../../../src/winsup/cygwin/uinfo.cc,
>line 85.
>(gdb) run
>The program being debugged has been started already.
>Start it from the beginning? (y or n) y
>Starting program: /mnt/c/cygdeb/test.exe
>
>Breakpoint 1, internal_getlogin (user=@0x61510094)
>    at ../../../../src/winsup/cygwin/uinfo.cc:85
>85            sys_mbstowcs (wuser, user.name (), UNLEN + 1);
>Current language:  auto; currently c++
>(gdb) n
>114       const char *name () const { return pname; }
>(gdb)
>85            sys_mbstowcs (wuser, user.name (), UNLEN + 1);
>(gdb)
>86            if (NetUserGetInfo (NULL, wuser, 3, (LPBYTE *) &ui) &&
>user.logsrv ())
>(gdb)
>117       const char *logsrv () const { return plogsrv; }
>(gdb)
>86            if (NetUserGetInfo (NULL, wuser, 3, (LPBYTE *) &ui) &&
>user.logsrv ())
>(gdb)
>88                strcat (strcpy (buf, "\\\\"), user.logsrv ());
>(gdb)
>89                sys_mbstowcs (wlogsrv, buf,
>INTERNET_MAX_HOST_NAME_LENGTH + 3);
>(gdb)
>88                strcat (strcpy (buf, "\\\\"), user.logsrv ());
>(gdb)
>89                sys_mbstowcs (wlogsrv, buf,
>INTERNET_MAX_HOST_NAME_LENGTH + 3);
>(gdb)
>90                ui = NULL;
>(gdb)
>91                if (NetUserGetInfo (wlogsrv, wuser, 3,(LPBYTE *) &ui))
>(gdb)
>gdb: unknown target exception 0x000006d1 at 0x77e87e08
>
>Program received signal ?, Unknown signal.
>0x77e87e08 in _system_dlls__ ()
>(gdb) bt
>#0  0x77e87e08 in _system_dlls__ ()
>#1  0x0022f3e8 in ?? ()
>#2  0x77d5895a in _system_dlls__ ()
>#3  0x751511cb in _system_dlls__ ()
>#4  0x751aa114 in _system_dlls__ ()
>#5  0x751a8755 in _system_dlls__ ()
>#6  0x6106785e in internal_getlogin (user=@0x61510094)
>    at ../../../../src/winsup/cygwin/uinfo.cc:91
>#7  0x61067dc6 in uinfo_init () at
>../../../../src/winsup/cygwin/uinfo.cc:224
>#8  0x61003c73 in dll_crt0_1 () at
>../../../../src/winsup/cygwin/dcrt0.cc:682
>#9  0x61004159 in _dll_crt0 () at
>../../../../src/winsup/cygwin/dcrt0.cc:849
>#10 0x61004198 in dll_crt0 (uptr=0x0)
>    at ../../../../src/winsup/cygwin/dcrt0.cc:861
>#11 0x004010bf in cygwin_crt0 ()
>    at
>/cygnus/netrel/src/cygwin-1.3.3-2/winsup/cygwin/lib/cygwin_crt0.c:33
>(gdb)
>
>Going to do some more poking around after lunch...  Sorry about the 
>previous post/confusion...

So now we know that it is dying in the second call to NetUserGetInfo.
Can you do a:

(gdb) x/20c wlogsrv
(gdb) x/20c wuser

just before it makes that call and see what shows up?

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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]