Re: [ANNOUNCE] NSPR 4.7.2 Release

Wan-Teh Chang <[email protected]> Tue, 4 Nov 2008 06:58:22 -0800
Newsgroups gmane.comp.mozilla.devel.nspr
Message-ID <[email protected]>
On Tue, Nov 4, 2008 at 2:26 AM, Joachim Ziegler <[email protected]> wrote:
> Wan-Teh Chang wrote:
>> Are you using GCC or MinGW to compile?
>
> I use the gcc as supplied by a Cygwin shell. For example, the build system
> issues:
>
> sh ../../../mozilla/nsprpub/build/cygwin-wrapper gcc -mno-cygwin stdio.o
>  -L../
> ../dist/lib -lplc4 -L../../dist/lib -lnspr4 -lwsock32 -o stdio.exe

OK.  I'm not familiar with GCC on  Windows.  I believe this
is equivalent to the so-called MinGW because of the -mno-cygwin
flag.


> gdb gives me the following backtrace:
>
> $ gdb stdio
[...]
> Program received signal SIGTRAP, Trace/breakpoint trap.
> 0x7c901231 in ntdll!DbgUiConnectToDbg ()
>   from /cygdrive/c/WINDOWS/system32/ntdll.dll
> (gdb) bt
> #0  0x7c901231 in ntdll!DbgUiConnectToDbg ()
>   from /cygdrive/c/WINDOWS/system32/ntdll.dll
> #1  0x10008261 in PR_Assert (s=0x100411d4 "!(me->flags & _PR_IDLE_THREAD)",
>    file=0x10041174
> "../../../../../mozilla/nsprpub/pr/src/threads/combined/prul
> ock.c", ln=234) at ../../../../mozilla/nsprpub/pr/src/io/prlog.c:544
> #2  0x100261a3 in PR_Lock (lock=0x3d4680)
>    at ../../../../../mozilla/nsprpub/pr/src/threads/combined/prulock.c:234
> #3  0x10028db9 in _PR_NativeCreateThread (type=PR_SYSTEM_THREAD,
>    start=0x10034fbe <ContinuationThread>, arg=0x0,
>    priority=PR_PRIORITY_URGENT, scope=PR_GLOBAL_THREAD,
>    state=PR_JOINABLE_THREAD, stackSize=0, flags=128)
>    at ../../../../../mozilla/nsprpub/pr/src/threads/combined/pruthr.c:1059
> #4  0x100291b6 in _PR_CreateThread (type=PR_SYSTEM_THREAD,
>    start=0x10034fbe <ContinuationThread>, arg=0x0,
>    priority=PR_PRIORITY_URGENT, scope=PR_GLOBAL_THREAD,
>    state=PR_JOINABLE_THREAD, stackSize=0, flags=128)
>    at ../../../../../mozilla/nsprpub/pr/src/threads/combined/pruthr.c:1211
> #5  0x10029907 in PR_CreateThread (type=PR_SYSTEM_THREAD,
>    start=0x10034fbe <ContinuationThread>, arg=0x0,
>    priority=PR_PRIORITY_URGENT, scope=PR_GLOBAL_THREAD,
>    state=PR_JOINABLE_THREAD, stackSize=0)
>    at ../../../../../mozilla/nsprpub/pr/src/threads/combined/pruthr.c:1431
> #6  0x1002e104 in _PR_MD_INIT_IO ()
>    at ../../../../../mozilla/nsprpub/pr/src/md/windows/ntio.c:928
> #7  0x1001f593 in _PR_InitIO ()
>    at ../../../../mozilla/nsprpub/pr/src/io/prio.c:78
> #8  0x10013175 in _PR_InitStuff ()
>    at ../../../../mozilla/nsprpub/pr/src/misc/prinit.c:234
> #9  0x100131af in _PR_ImplicitInitialization ()
>    at ../../../../mozilla/nsprpub/pr/src/misc/prinit.c:251
> #10 0x100131ff in PR_Initialize (prmain=0x4012e0 <stdio>, argc=1,
>    argv=0x3d3fc0, maxPTDs=0)
>    at ../../../../mozilla/nsprpub/pr/src/misc/prinit.c:313
> #11 0x004013e5 in main (argc=1, argv=0x3d3fc0)
>    at ../../../mozilla/nsprpub/pr/tests/stdio.c:79

This crash is an assertion failure.  Note that there are two build
configurations on Windows, and you're building the "WINNT"
configuration (the default).  Please try the "WIN95" configuration
by passing the --enable-win32-target=WIN95 option to NSPR's
configure script.  All the people who build NSPR with MinGW
build the "WIN95" configuration, which is used by the Mozilla
clients.

Wan-Teh