[Openmcl-devel] Crash on allocating new pointer
Andrew P. Lentvorski, Jr.
bsder at mail.allcaps.org
Thu Jul 1 17:22:08 PDT 2004
Okay, after digging way down and finding %new-ptr, malloc, and free, I
attempted to use %new-ptr to give me a cleared block of memory so that
I could at least guarantee that the int I was passing was a zero.
However, it tosses an illegal instruction exception.
What did I do wrong this time?
-a
Welcome to OpenMCL Version (Beta: Darwin) 0.14.2-p1!
? (setq mp (ccl::%new-ptr 8 t))
Unhandled exception 4 at 0x02029dc4, context->regs at #xf01356d8
Illegal instruction (0x00000000) at 0x02029dc4 In foreign code at
address 0x02029dc4
? for help
[13337] OpenMCL kernel debugger: b
(#xf0135bc0) #x00000000 : (null) + 0
(#xF0135C00) #x02029D7C : #<Function %NEW-PTR #x06019be6> + 184
(#xF0135C10) #x00004D7C : (subprimitive _ret1valn)
(#xF0135C20) #x0210F994 : #<Function CALL-CHECK-REGS #x06117e0e> + 72
(#xF0135C30) #x02106328 : #<Function CHEAP-EVAL-IN-ENVIRONMENT
#x0610bc5e> + 1084
(#xF0135C40) #x00004D7C : (subprimitive _ret1valn)
(#xF0135C50) #x0210E554 : #<Function TOPLEVEL-EVAL #x06116246> + 152
(#xF0135C60) #x0210EB10 : #<Function READ-LOOP #x06116846> + 844
(#xF0135C70) #x0210EB48 : #<Function READ-LOOP #x06116846> + 900
(#xF0135C80) #x0210EB74 : #<Function READ-LOOP #x06116846> + 944
(#xF0135C90) #x0210EBA0 : #<Function READ-LOOP #x06116846> + 988
(#xF0135CA0) #x0210F8E0 : #<Function TOPLEVEL-LOOP #x06117bde> + 44
(#xF0135CB0) #x0210F8E8 : #<Function TOPLEVEL-LOOP #x06117bde> + 52
(#xF0135CC0) #x020F8720 : #<Anonymous Function #x060f8b36> + 68
(#xF0135CD0) #x00004D7C : (subprimitive _ret1valn)
(#xF0135CE0) #x021223EC : #<Anonymous Function #x0613f64e> + 592
(#xF0135CF0) #x021221EC : #<Anonymous Function #x0613f64e> + 80
(#xF0135D00) #x020FD044 : #<Function RUN-PROCESS-INITIAL-FORM
#x06101c0e> + 400
(#xF0135D10) #x020FD080 : #<Function RUN-PROCESS-INITIAL-FORM
#x06101c0e> + 460
(#xF0135D20) #x020FD194 : #<Function RUN-PROCESS-INITIAL-FORM
#x06101c0e> + 736
(#xF0135D30) #x00004D7C : (subprimitive _ret1valn)
(#xF0135D40) #x020FD314 : #<Anonymous Function #x06101d3e> + 152
(#xF0135D50) #x020FD2FC : #<Anonymous Function #x06101d3e> + 128
(#xF0135D60) #x020F5450 : #<Anonymous Function #x060f491e> + 172
(#xF0135D70) #x0000881C : (subprimitive toplevel_loop)
(#xF0135D80) #x00008828 : (subprimitive toplevel_loop)
(#xf0135d90) #x000088F4 : _start_lisp + 180
(#xf0135e50) #x00012CAC : _lisp_thread_entry + 152
(#xf0135eb0) #x900246E8 : __pthread_body + 40
(#xf0135f00) #x00000000 : (null) + 0
cstack area #x001005b0
(#xBFFFFA30) #x020F6248 : #<Function %NANOSLEEP #x060f5946> + 268
(#xBFFFFA40) #x020F8588 : #<Anonymous Function #x060f8a5e> + 300
(#xBFFFFA50) #x020F85AC : #<Anonymous Function #x060f8a5e> + 336
(#xBFFFFA60) #x020F85B4 : #<Anonymous Function #x060f8a5e> + 344
(#xBFFFFA70) #x020F85E8 : #<Anonymous Function #x060f8a5e> + 396
(#xBFFFFA80) #x0000881C : (subprimitive toplevel_loop)
(#xBFFFFA90) #x00008828 : (subprimitive toplevel_loop)
(#xbffffaa0) #x000088F4 : _start_lisp + 180
[13337] OpenMCL kernel debugger:
More information about the Openmcl-devel
mailing list