[Bug-openmcl] Crash

Gary Byers gb at clozure.com
Sat Nov 29 17:19:06 MST 2003



On Sat, 29 Nov 2003, Alan Ruttenberg wrote:

>
> 014 branch of a couple of weeks ago.
> -Alan
>

Thanks.

I actually ran into this myself a couple of days ago; I don't think
that I've checked the fix into CVS yet, but will do so soon.

The short version: some data structures that the GC uses are resized
dynamically as the heap grows and shrinks.  The very short version
is that one of these data structures (used by the EGC) needs to be
made a bit bigger; it should be proportional to the size of "everything
except for the youngest generation", and that value can change even
if the overall "size of the heap" (what's currently mapped) remains
unchanged.  The EGC page map needs to be "as big as it can get before
more memory is mapped", not "as big as it needs to be at the moment".

Often, the difference between these values is very small; the data
structures are allocated by mapping a few pages; most of the time,
the right number of -pages- get allocated for this EGC table even
if the right number of -entries- is underestimated.  If too few pages
are allocated, the EGC will try to write to unmapped memory.  That
has something like a 1 in 2K chance of happening, and it seems to
have happened to both of us within the last few days.

I'll try to ensure that the fio is in CVS.  A crude, temporary
workaround is to turn the EGC off.

>
> Unhandled exception 11 at 0x0000a860, context->regs at #xf0134c88
> Continue/Debugger/eXit <enter>?
> d
> Bug() called
>
> [Process ID = 26227]
>
> (R)egisters, (L)isp registers (F)loating-point, (B)acktrace (K)ill, e(X)it
> ?B
>
>
> (#xF0135170) #xF0135644 : foreign code (unknown)
> (#xf01351d0) #x0000A924 : _make_page_node_map + 112
> (#xf0135220) #x0000ACEC : _tenure_to_area + 236
> (#xf0135280) #x0000DA6C : _gc + 1676
> (#xf0135320) #x0000FD80 : _gc_from_tcr + 44
> (#xf0135380) #x0000FD34 : _gc_like_from_xp + 196
> (#xf01353d0) #x0000F348 : _allocate_object + 104
> (#xf0135420) #x0000F508 : _handle_alloc_trap + 208
> (#xf0135470) #x00010650 : _PMCL_exception_handler + 68
> (#xf01354d0) #x000115A8 : _signal_handler + 68
> (#xf0135530) #x00015688 : _pseudo_sigreturn + 0
> (#xF0135AB0) #x010B4120 : #<Function VECTOR-SUBSEQ* #x0507e916> + 68
> (#xF0135AC0) #x0543C52C : #<Function RECORD-LINES-TO-NODE #x0543c6f6> + 248
> (#xF0135AD0) #x0543D1F8 : #<Function READ-PARIS-FLAT-FILE #x0543d26e> + 196
> (#xF0135AE0) #x0544B3A0 : #<Anonymous Function #x0544b3c6> + 28
> (#xF0135AF0) #x0104C82C : #<Anonymous Function #x0503379e> + 48
> (#xF0135B00) #x0104E314 : #<Function %FASLOAD #x05034c4e> + 816
> (#xF0135B10) #x0104E160 : #<Function %FASLOAD #x05034c4e> + 380
> (#xF0135B20) #x00004E5C : (subprimitive _ret1valn)
> (#xF0135B30) #x010FCAF8 : #<Function ATTEMPT-LOAD #x050e6b3e> + 44
> (#xF0135B40) #x010FCF2C : #<Function %LOAD #x050e6c36> + 944
> (#xF0135B50) #x010FCF54 : #<Function %LOAD #x050e6c36> + 984
> (#xF0135B60) #x00004E5C : (subprimitive _ret1valn)
> (#xF0135B70) #x010F1AB8 : #<Function LOAD #x050db1ce> + 636
> (#xF0135B80) #x010F1B14 : #<Function LOAD #x050db1ce> + 728
> (#xF0135B90) #x053390E4 : #<Method-Function (#<3-element vector subtag = 72
> @#x0532fa06>) #<CLASS-WRAPPER @#x05095b1e> (#<CLASS-WRAPPER @#x05095b1e> .
> #<header ? #x0000076a>) #x05339156> + 176
> (#xF0135BA0) #x00004E5C : (subprimitive _ret1valn)
> (#xF0135BB0) #x010BFE68 : #<Function
> %%BEFORE-AND-AFTER-COMBINED-METHOD-DCODE #x050878e6> + 588
> (#xF0135BC0) #x00004E5C : (subprimitive _ret1valn)
> (#xF0135BD0) #x010C0600 : #<Function %%STANDARD-COMBINED-METHOD-DCODE
> #x05087f56> + 148
> (#xF0135BE0) #x00007100 : (subprimitive _popj)
> (#xF0135BF0) #x00007100 : (subprimitive _popj)
> (#xF0135C00) #x0533A448 : #<Function OPERATE #x0533a636> + 788
> (#xF0135C10) #x0533A498 : #<Function OPERATE #x0533a636> + 868
> (#xF0135C20) #x00004E5C : (subprimitive _ret1valn)
> (#xF0135C30) #x0110EE0C : #<Function CALL-CHECK-REGS #x050fbce6> + 72
> (#xF0135C40) #x00004E5C : (subprimitive _ret1valn)
> (#xF0135C50) #x01114484 : #<Function TOPLEVEL-EVAL #x0510686e> + 128
> (#xF0135C60) #x0110E07C : #<Function READ-LOOP #x050fa88e> + 808
> (#xF0135C70) #x0110E098 : #<Function READ-LOOP #x050fa88e> + 836
> (#xF0135C80) #x0110E0C4 : #<Function READ-LOOP #x050fa88e> + 880
> (#xF0135C90) #x0110E0F0 : #<Function READ-LOOP #x050fa88e> + 924
> (#xF0135CA0) #x0110ED58 : #<Function TOPLEVEL-LOOP #x050fbab6> + 44
> (#xF0135CB0) #x0110ED60 : #<Function TOPLEVEL-LOOP #x050fbab6> + 52
> (#xF0135CC0) #x01110EBC : #<Anonymous Function #x050fde36> + 104
> (#xF0135CD0) #x00004E5C : (subprimitive _ret1valn)
> (#xF0135CE0) #x01123028 : #<Anonymous Function #x0511faee> + 500
> (#xF0135CF0) #x01122EA0 : #<Anonymous Function #x0511faee> + 108
> (#xF0135D00) #x010FE4A0 : #<Function RUN-PROCESS-INITIAL-FORM #x050e83fe> +
> 348
> (#xF0135D10) #x010FE4D8 : #<Function RUN-PROCESS-INITIAL-FORM #x050e83fe> +
> 404
> (#xF0135D20) #x010FE51C : #<Function RUN-PROCESS-INITIAL-FORM #x050e83fe> +
> 472
> (#xF0135D30) #x00004E5C : (subprimitive _ret1valn)
> (#xF0135D40) #x010FE694 : #<Anonymous Function #x050e8526> + 152
> (#xF0135D50) #x010FE67C : #<Anonymous Function #x050e8526> + 128
> (#xF0135D60) #x010FA6A8 : #<Anonymous Function #x050e42b6> + 172
> (#xF0135D70) #x000084C8 : (subprimitive toplevel_loop)
> (#xF0135D80) #x000084D4 : (subprimitive toplevel_loop)
> (#xf0135d90) #x000085A0 : _start_lisp + 180
> (#xf0135e50) #x00012B5C : _lisp_thread_entry + 152
> (#xf0135eb0) #x900247E8 : __pthread_body + 40
> (#xf0135f00) #x00000000 : (null) + 0
>
>
> cstack area #x00104720
>
>
> (#xF099AC90) #x010E4CEC : #<Function FD-INPUT-AVAILABLE-P #x050cb246> + 344
> (#xF099ACA0) #x010E51A4 : #<Function PROCESS-INPUT-WAIT #x050cb766> + 240
> (#xF099ACB0) #x011413F4 : #<Function SOCKET-ACCEPT #x05142a7e> + 104
> (#xF099ACC0) #x011411F8 : #<Function ACCEPT-SOCKET-CONNECTION #x0514289e> +
> 156
> (#xF099ACD0) #x0114119C : #<Function ACCEPT-SOCKET-CONNECTION #x0514289e> +
> 64
> (#xF099ACE0) #x05433758 : #<Function SERVER #x05433836> + 316
> (#xF099ACF0) #x054336B4 : #<Function SERVER #x05433836> + 152
> (#xF099AD00) #x010FE4A0 : #<Function RUN-PROCESS-INITIAL-FORM #x050e83fe> +
> 348
> (#xF099AD10) #x010FE4D8 : #<Function RUN-PROCESS-INITIAL-FORM #x050e83fe> +
> 404
> (#xF099AD20) #x010FE51C : #<Function RUN-PROCESS-INITIAL-FORM #x050e83fe> +
> 472
> (#xF099AD30) #x00004E5C : (subprimitive _ret1valn)
> (#xF099AD40) #x010FE694 : #<Anonymous Function #x050e8526> + 152
> (#xF099AD50) #x010FE67C : #<Anonymous Function #x050e8526> + 128
> (#xF099AD60) #x010FA6A8 : #<Anonymous Function #x050e42b6> + 172
> (#xF099AD70) #x000084C8 : (subprimitive toplevel_loop)
> (#xF099AD80) #x000084D4 : (subprimitive toplevel_loop)
> (#xf099ad90) #x000085A0 : _start_lisp + 180
> (#xf099ae50) #x00012B5C : _lisp_thread_entry + 152
> (#xf099aeb0) #x900247E8 : __pthread_body + 40
> (#xf099af00) #x00000000 : (null) + 0
>
>
> cstack area #x00104460
>
>
> (#xF0867C80) #x010E4CEC : #<Function FD-INPUT-AVAILABLE-P #x050cb246> + 344
> (#xF0867C90) #x010E51A4 : #<Function PROCESS-INPUT-WAIT #x050cb766> + 240
> (#xF0867CA0) #x011413F4 : #<Function SOCKET-ACCEPT #x05142a7e> + 104
> (#xF0867CB0) #x011411F8 : #<Function ACCEPT-SOCKET-CONNECTION #x0514289e> +
> 156
> (#xF0867CC0) #x0114119C : #<Function ACCEPT-SOCKET-CONNECTION #x0514289e> +
> 64
> (#xF0867CD0) #x0539C1A4 : #<Function HTTP-ACCEPT-THREAD #x0539c3be> + 520
> (#xF0867CE0) #x0539C358 : #<Function HTTP-ACCEPT-THREAD #x0539c3be> + 956
> (#xF0867CF0) #x0539BFF8 : #<Function HTTP-ACCEPT-THREAD #x0539c3be> + 92
> (#xF0867D00) #x010FE4A0 : #<Function RUN-PROCESS-INITIAL-FORM #x050e83fe> +
> 348
> (#xF0867D10) #x010FE4D8 : #<Function RUN-PROCESS-INITIAL-FORM #x050e83fe> +
> 404
> (#xF0867D20) #x010FE51C : #<Function RUN-PROCESS-INITIAL-FORM #x050e83fe> +
> 472
> (#xF0867D30) #x00004E5C : (subprimitive _ret1valn)
> (#xF0867D40) #x010FE694 : #<Anonymous Function #x050e8526> + 152
> (#xF0867D50) #x010FE67C : #<Anonymous Function #x050e8526> + 128
> (#xF0867D60) #x010FA6A8 : #<Anonymous Function #x050e42b6> + 172
> (#xF0867D70) #x000084C8 : (subprimitive toplevel_loop)
> (#xF0867D80) #x000084D4 : (subprimitive toplevel_loop)
> (#xf0867d90) #x000085A0 : _start_lisp + 180
> (#xf0867e50) #x00012B5C : _lisp_thread_entry + 152
> (#xf0867eb0) #x900247E8 : __pthread_body + 40
> (#xf0867f00) #x00000000 : (null) + 0
>
>
> cstack area #x001041a0
>
>
> (#xF0734CC0) #x010EB104 : #<Function %WAIT-ON-SEMAPHORE-PTR #x050d27b6> +
> 120
> (#xF0734CD0) #x010FD99C : #<Function PROCESS-WAIT #x050e77a6> + 216
> (#xF0734CE0) #x010FD934 : #<Function PROCESS-WAIT #x050e77a6> + 112
> (#xF0734CF0) #x0539C960 : #<Function HTTP-WORKER-THREAD #x0539cc76> + 196
> (#xF0734D00) #x010FE4A0 : #<Function RUN-PROCESS-INITIAL-FORM #x050e83fe> +
> 348
> (#xF0734D10) #x010FE4D8 : #<Function RUN-PROCESS-INITIAL-FORM #x050e83fe> +
> 404
> (#xF0734D20) #x010FE51C : #<Function RUN-PROCESS-INITIAL-FORM #x050e83fe> +
> 472
> (#xF0734D30) #x00004E5C : (subprimitive _ret1valn)
> (#xF0734D40) #x010FE694 : #<Anonymous Function #x050e8526> + 152
> (#xF0734D50) #x010FE67C : #<Anonymous Function #x050e8526> + 128
> (#xF0734D60) #x010FA6A8 : #<Anonymous Function #x050e42b6> + 172
> (#xF0734D70) #x000084C8 : (subprimitive toplevel_loop)
> (#xF0734D80) #x000084D4 : (subprimitive toplevel_loop)
> (#xf0734d90) #x000085A0 : _start_lisp + 180
> (#xf0734e50) #x00012B5C : _lisp_thread_entry + 152
> (#xf0734eb0) #x900247E8 : __pthread_body + 40
> (#xf0734f00) #x00000000 : (null) + 0
>
>
> cstack area #x00103ee0
>
>
> (#xF0601CC0) #x010EB104 : #<Function %WAIT-ON-SEMAPHORE-PTR #x050d27b6> +
> 120
> (#xF0601CD0) #x010FD99C : #<Function PROCESS-WAIT #x050e77a6> + 216
> (#xF0601CE0) #x010FD934 : #<Function PROCESS-WAIT #x050e77a6> + 112
> (#xF0601CF0) #x0539C960 : #<Function HTTP-WORKER-THREAD #x0539cc76> + 196
> (#xF0601D00) #x010FE4A0 : #<Function RUN-PROCESS-INITIAL-FORM #x050e83fe> +
> 348
> (#xF0601D10) #x010FE4D8 : #<Function RUN-PROCESS-INITIAL-FORM #x050e83fe> +
> 404
> (#xF0601D20) #x010FE51C : #<Function RUN-PROCESS-INITIAL-FORM #x050e83fe> +
> 472
> (#xF0601D30) #x00004E5C : (subprimitive _ret1valn)
> (#xF0601D40) #x010FE694 : #<Anonymous Function #x050e8526> + 152
> (#xF0601D50) #x010FE67C : #<Anonymous Function #x050e8526> + 128
> (#xF0601D60) #x010FA6A8 : #<Anonymous Function #x050e42b6> + 172
> (#xF0601D70) #x000084C8 : (subprimitive toplevel_loop)
> (#xF0601D80) #x000084D4 : (subprimitive toplevel_loop)
> (#xf0601d90) #x000085A0 : _start_lisp + 180
> (#xf0601e50) #x00012B5C : _lisp_thread_entry + 152
> (#xf0601eb0) #x900247E8 : __pthread_body + 40
> (#xf0601f00) #x00000000 : (null) + 0
>
>
> cstack area #x00103c20
>
>
> (#xF04CECC0) #x010EB104 : #<Function %WAIT-ON-SEMAPHORE-PTR #x050d27b6> +
> 120
> (#xF04CECD0) #x010FD99C : #<Function PROCESS-WAIT #x050e77a6> + 216
> (#xF04CECE0) #x010FD934 : #<Function PROCESS-WAIT #x050e77a6> + 112
> (#xF04CECF0) #x0539C960 : #<Function HTTP-WORKER-THREAD #x0539cc76> + 196
> (#xF04CED00) #x010FE4A0 : #<Function RUN-PROCESS-INITIAL-FORM #x050e83fe> +
> 348
> (#xF04CED10) #x010FE4D8 : #<Function RUN-PROCESS-INITIAL-FORM #x050e83fe> +
> 404
> (#xF04CED20) #x010FE51C : #<Function RUN-PROCESS-INITIAL-FORM #x050e83fe> +
> 472
> (#xF04CED30) #x00004E5C : (subprimitive _ret1valn)
> (#xF04CED40) #x010FE694 : #<Anonymous Function #x050e8526> + 152
> (#xF04CED50) #x010FE67C : #<Anonymous Function #x050e8526> + 128
> (#xF04CED60) #x010FA6A8 : #<Anonymous Function #x050e42b6> + 172
> (#xF04CED70) #x000084C8 : (subprimitive toplevel_loop)
> (#xF04CED80) #x000084D4 : (subprimitive toplevel_loop)
> (#xf04ced90) #x000085A0 : _start_lisp + 180
> (#xf04cee50) #x00012B5C : _lisp_thread_entry + 152
> (#xf04ceeb0) #x900247E8 : __pthread_body + 40
> (#xf04cef00) #x00000000 : (null) + 0
>
>
> cstack area #x00103960
>
>
> (#xF039BCC0) #x010EB104 : #<Function %WAIT-ON-SEMAPHORE-PTR #x050d27b6> +
> 120
> (#xF039BCD0) #x010FD99C : #<Function PROCESS-WAIT #x050e77a6> + 216
> (#xF039BCE0) #x010FD934 : #<Function PROCESS-WAIT #x050e77a6> + 112
> (#xF039BCF0) #x0539C960 : #<Function HTTP-WORKER-THREAD #x0539cc76> + 196
> (#xF039BD00) #x010FE4A0 : #<Function RUN-PROCESS-INITIAL-FORM #x050e83fe> +
> 348
> (#xF039BD10) #x010FE4D8 : #<Function RUN-PROCESS-INITIAL-FORM #x050e83fe> +
> 404
> (#xF039BD20) #x010FE51C : #<Function RUN-PROCESS-INITIAL-FORM #x050e83fe> +
> 472
> (#xF039BD30) #x00004E5C : (subprimitive _ret1valn)
> (#xF039BD40) #x010FE694 : #<Anonymous Function #x050e8526> + 152
> (#xF039BD50) #x010FE67C : #<Anonymous Function #x050e8526> + 128
> (#xF039BD60) #x010FA6A8 : #<Anonymous Function #x050e42b6> + 172
> (#xF039BD70) #x000084C8 : (subprimitive toplevel_loop)
> (#xF039BD80) #x000084D4 : (subprimitive toplevel_loop)
> (#xf039bd90) #x000085A0 : _start_lisp + 180
> (#xf039be50) #x00012B5C : _lisp_thread_entry + 152
> (#xf039beb0) #x900247E8 : __pthread_body + 40
> (#xf039bf00) #x00000000 : (null) + 0
>
>
> cstack area #x001036a0
>
>
> (#xF0268CC0) #x010EB104 : #<Function %WAIT-ON-SEMAPHORE-PTR #x050d27b6> +
> 120
> (#xF0268CD0) #x010FD99C : #<Function PROCESS-WAIT #x050e77a6> + 216
> (#xF0268CE0) #x010FD934 : #<Function PROCESS-WAIT #x050e77a6> + 112
> (#xF0268CF0) #x0539C960 : #<Function HTTP-WORKER-THREAD #x0539cc76> + 196
> (#xF0268D00) #x010FE4A0 : #<Function RUN-PROCESS-INITIAL-FORM #x050e83fe> +
> 348
> (#xF0268D10) #x010FE4D8 : #<Function RUN-PROCESS-INITIAL-FORM #x050e83fe> +
> 404
> (#xF0268D20) #x010FE51C : #<Function RUN-PROCESS-INITIAL-FORM #x050e83fe> +
> 472
> (#xF0268D30) #x00004E5C : (subprimitive _ret1valn)
> (#xF0268D40) #x010FE694 : #<Anonymous Function #x050e8526> + 152
> (#xF0268D50) #x010FE67C : #<Anonymous Function #x050e8526> + 128
> (#xF0268D60) #x010FA6A8 : #<Anonymous Function #x050e42b6> + 172
> (#xF0268D70) #x000084C8 : (subprimitive toplevel_loop)
> (#xF0268D80) #x000084D4 : (subprimitive toplevel_loop)
> (#xf0268d90) #x000085A0 : _start_lisp + 180
> (#xf0268e50) #x00012B5C : _lisp_thread_entry + 152
> (#xf0268eb0) #x900247E8 : __pthread_body + 40
> (#xf0268f00) #x00000000 : (null) + 0
>
>
> cstack area #x001005a0
>
>
> (#xBFFFFBF0) #x010FB490 : #<Function %NANOSLEEP #x050e527e> + 268
> (#xBFFFFC00) #x01110E38 : #<Anonymous Function #x050fdd86> + 52
> (#xBFFFFC10) #x000084C8 : (subprimitive toplevel_loop)
> (#xBFFFFC20) #x000084D4 : (subprimitive toplevel_loop)
> (#xbffffc30) #x000085A0 : _start_lisp + 180
>
> [Process ID = 26227]
>
> (R)egisters, (L)isp registers (F)loating-point, (B)acktrace (K)ill, e(X)it ?
>
>
>
>
> This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.
>
> _______________________________________________
> Bug-openmcl mailing list
> Bug-openmcl at clozure.com
> http://clozure.com/mailman/listinfo/bug-openmcl
>
>


More information about the Bug-openmcl mailing list