[Openmcl-devel] segfault on open-shared-library libobjc.so on gentoo 64-bit with ccl-1.8

Pascal J. Bourguignon pjb at informatimago.com
Tue Jun 5 07:08:19 PDT 2012



When I try to load libobjc.so on gentoo 64-bit with ccl-1.8, it
sigsegfauls.  What can I do to debug that?


cl-user> (ccl:open-shared-library "libobjc.so")


[pjb at kuiper :0 tmp]$ ls -l /usr/lib/libobjc.so
lrwxrwxrwx 1 root root 12 Apr 16 13:07 /usr/lib/libobjc.so -> libobjc.so.4*
[pjb at kuiper :0 tmp]$ file /usr/lib/libobjc.so.4
/usr/lib/libobjc.so.4: symbolic link to `libobjc.so.4.6.0'
[pjb at kuiper :0 tmp]$ file /usr/lib/libobjc.so.4.6.0 
/usr/lib/libobjc.so.4.6.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped


------*inferior-lisp*---------------------------------------------------
(progn (load "/home/pjb/quicklisp/dists/quicklisp/software/slime-20120407-cvs/swank-loader.lisp" :verbose t) (funcall (read-from-string "swank-loader:init")) (funcall (read-from-string "swank:start-server") "/tmp/slime.13770"))

To load "alexandria":
  Load 1 ASDF system:
    alexandria
; Loading "alexandria"

To load "com.informatimago.common-lisp":
  Load 1 ASDF system:
    com.informatimago.common-lisp
; Loading "com.informatimago.common-lisp"
.
To load "com.informatimago.clmisc":
  Load 1 ASDF system:
    com.informatimago.clmisc
; Loading "com.informatimago.clmisc"

Welcome to Clozure Common Lisp Version 1.8-r15286M  (LinuxX8664)!
? ;Loading #P"/home/pjb/quicklisp/dists/quicklisp/software/slime-20120407-cvs/swank-loader.lisp"...
;Loading #P"/home/pjb/.slime/fasl/2012-04-07/clozure-version_1.8-r15286m__(linuxx8664)-linux-x86-64/swank-backend.lx64fsl"...
;Loading #P"/home/pjb/.slime/fasl/2012-04-07/clozure-version_1.8-r15286m__(linuxx8664)-linux-x86-64/metering.lx64fsl"...
;Loading #P"/home/pjb/.slime/fasl/2012-04-07/clozure-version_1.8-r15286m__(linuxx8664)-linux-x86-64/swank-ccl.lx64fsl"...
;Loading #P"/home/pjb/.slime/fasl/2012-04-07/clozure-version_1.8-r15286m__(linuxx8664)-linux-x86-64/swank-gray.lx64fsl"...
;Loading #P"/home/pjb/.slime/fasl/2012-04-07/clozure-version_1.8-r15286m__(linuxx8664)-linux-x86-64/swank-match.lx64fsl"...
;Loading #P"/home/pjb/.slime/fasl/2012-04-07/clozure-version_1.8-r15286m__(linuxx8664)-linux-x86-64/swank-rpc.lx64fsl"...
;Loading #P"/home/pjb/.slime/fasl/2012-04-07/clozure-version_1.8-r15286m__(linuxx8664)-linux-x86-64/swank.lx64fsl"...
; Warning: These Swank interfaces are unimplemented:
;           (ACTIVATE-STEPPING ADD-FD-HANDLER ADD-SIGIO-HANDLER
;            BACKGROUND-SAVE-IMAGE DUP EXEC-IMAGE MAKE-FD-STREAM
;            REMOVE-FD-HANDLERS REMOVE-SIGIO-HANDLERS SLDB-BREAK-AT-START
;            SLDB-BREAK-ON-RETURN SLDB-STEP-INTO SLDB-STEP-NEXT SLDB-STEP-OUT
;            WAIT-FOR-INPUT)
; While executing: SWANK-BACKEND::WARN-UNIMPLEMENTED-INTERFACES, in process listener(1).
;; Swank started at port: 39958.
39958
? 
; Warning: Test failed: (&key #'#'+) => "(&key (function (function +)))"
;            Expected: "(&key (function #'+))"
; While executing: (:internal test test-print-arglist), in process worker(8).
Unhandled exception 11 at 0x7f48b1de3649, context->regs at #x7f48b1742e08
Exception occurred while executing foreign code
 at GC_push_all_eager + 73
received signal 11; faulting address: 0x7f48b1ce7000
address not mapped to object
? for help
[21283] Clozure CL kernel debugger: B
current thread: tcr = 0x7f48b1744570, native thread ID = 0x5332, interrupts enabled


(#x00007F48B14DF610) #x00003000000949EC : #<Function OPEN-SHARED-LIBRARY-INTERNAL #x00003000000948CF> + 285
(#x00007F48B14DF638) #x0000300000097D1C : #<Function OPEN-SHARED-LIBRARY #x0000300000097C3F> + 221
(#x00007F48B14DF670) #x00003000005144FC : #<Function CALL-CHECK-REGS #x000030000051441F> + 221
(#x00007F48B14DF6A8) #x0000300000518064 : #<Function CHEAP-EVAL #x0000300000517FFF> + 101
(#x00007F48B14DF6E0) #x0000302001982924 : #<Function EVAL-REGION #x000030200198274F> + 469
(#x00007F48B14DF768) #x0000302001B6791C : #<Function (:INTERNAL REPL-EVAL) #x0000302001B678DF> + 61
(#x00007F48B14DF788) #x0000302001B66CA4 : #<Function TRACK-PACKAGE #x0000302001B66B1F> + 389
(#x00007F48B14DF7E0) #x0000302001B67C9C : #<Function (:INTERNAL REPL-EVAL) #x0000302001B67BDF> + 189
(#x00007F48B14DF800) #x00003020019558DC : #<Function CALL-WITH-RETRY-RESTART #x000030200195571F> + 445
(#x00007F48B14DF858) #x0000302001B67DBC : #<Function (:INTERNAL REPL-EVAL) #x0000302001B67CFF> + 189
(#x00007F48B14DF878) #x00003020017A0504 : #<Anonymous Function #x00003020017A04BF> + 69
(#x00007F48B14DF898) #x00003020017A0844 : #<Function CALL-WITH-SYNTAX-HOOKS #x00003020017A078F> + 181
(#x00007F48B14DF8C0) #x000030200198FBB4 : #<Function CALL-WITH-BUFFER-SYNTAX #x000030200198FAAF> + 261
(#x00007F48B14DF908) #x0000302001B67EE4 : #<Function REPL-EVAL #x0000302001B67E1F> + 197
(#x00007F48B14DF920) #x0000302001B6843C : #<Function LISTENER-EVAL #x0000302001B683CF> + 109
(#x00007F48B14DF948) #x00003000005144FC : #<Function CALL-CHECK-REGS #x000030000051441F> + 221
(#x00007F48B14DF980) #x0000300000518064 : #<Function CHEAP-EVAL #x0000300000517FFF> + 101
(#x00007F48B14DF9B8) #x0000302001986014 : #<Function EVAL-FOR-EMACS #x0000302001985A4F> + 1477
(#x00007F48B14DFAC8) #x000030200197A4F4 : #<Function PROCESS-REQUESTS #x000030200197A38F> + 357
(#x00007F48B14DFB10) #x000030200197BDCC : #<Function (:INTERNAL HANDLE-REQUESTS) #x000030200197BC5F> + 365
(#x00007F48B14DFB88) #x000030200197C2AC : #<Function (:INTERNAL HANDLE-REQUESTS) #x000030200197C0BF> + 493
(#x00007F48B14DFBC0) #x00003020018EBA94 : #<Function CALL-WITH-DEBUGGER-HOOK #x00003020018EB9DF> + 181
(#x00007F48B14DFC48) #x00003020017B9494 : #<Function CALL-WITH-DEBUGGER-HOOK #x00003020017B93DF> + 181
(#x00007F48B14DFC78) #x000030200197AEBC : #<Function (:INTERNAL HANDLE-REQUESTS) #x000030200197AE5F> + 93
(#x00007F48B14DFC98) #x00003020019294F4 : #<Function CALL-WITH-BINDINGS #x000030200192932F> + 453
(#x00007F48B14DFCD8) #x000030200197CBF4 : #<Function HANDLE-REQUESTS #x000030200197C7EF> + 1029
(#x00007F48B14DFDD0) #x0000302001B6AAB4 : #<Function REPL-LOOP #x0000302001B6AA7F> + 53
(#x00007F48B14DFDF0) #x0000302001B6AED4 : #<Function (:INTERNAL SPAWN-REPL-THREAD) #x0000302001B6AE9F> + 53
(#x00007F48B14DFE10) #x00003020019294F4 : #<Function CALL-WITH-BINDINGS #x000030200192932F> + 453
(#x00007F48B14DFE50) #x0000302001B6B004 : #<Function (:INTERNAL SPAWN-REPL-THREAD) #x0000302001B6AF2F> + 213
(#x00007F48B14DFE70) #x000030000048191C : #<Function RUN-PROCESS-INITIAL-FORM #x000030000048164F> + 717
(#x00007F48B14DFF08) #x0000300000482384 : #<Function (:INTERNAL (%PROCESS-PRESET-INTERNAL (PROCESS))) #x000030000048215F> + 549
(#x00007F48B14DFF98) #x000030000046730C : #<Function (:INTERNAL THREAD-MAKE-STARTUP-FUNCTION) #x00003000004671DF> + 301
[21283] Clozure CL kernel debugger: ?
(G)  Set specified GPR to new value
(R)  Show raw GPR/SPR register values
(L)  Show Lisp values of tagged registers
(F)  Show FPU registers
(S)  Find and describe symbol matching specified name
(B)  Show backtrace
(T)  Show info about current thread
(M)  Show memory areas
(X)  Exit from this debugger, asserting that any exception was handled
(K)  Kill Clozure CL process
(V)  Show Subversion revision information
(?)  Show this help
[21283] Clozure CL kernel debugger: R
%rax = 0x00007f48b1ff4a40      %r8  = 0x0000000000000000
%rcx = 0x00007f48b45c18e1      %r9  = 0x0000000000000000
%rdx = 0x00007f48b1ff53c0      %r10 = 0x0000000000000008
%rbx = 0x00007f48b1ce7000      %r11 = 0x0000000000000246
%rsp = 0x00007f48b1743490      %r12 = 0x00000000026dfa0a
%rbp = 0x00007fffa57e35a8      %r13 = 0x00000000006cdff8
%rsi = 0x00007fffa57e35b0      %r14 = 0x00007f48b2024020
%rdi = 0x0000000000000000      %r15 = 0x0000000000000001
%rip = 0x00007f48b1de3649   %rflags = 0x00010202
[21283] Clozure CL kernel debugger: L
[21283] Clozure CL kernel debugger: F
f00: 0x00000000 (0.000000e+00), 0x0000000000000000 (0.000000e+00)
f01: 0x702f0072 (2.166417e+29), 0x2f636f72702f0072 (2.048912e-80)
f02: 0x00000100 (3.587324e-43), 0x0000000000000100 (1.264808e-321)
f03: 0x00000000 (0.000000e+00), 0x0000000000000000 (0.000000e+00)
f04: 0x706f7270 (2.964211e+29), 0x69747265706f7270 (9.781912e+199)
f05: 0x00000000 (0.000000e+00), 0x0000000000000000 (0.000000e+00)
f06: 0x00000000 (0.000000e+00), 0x0000000000000000 (0.000000e+00)
f07: 0x00000000 (0.000000e+00), 0x0000000000000000 (0.000000e+00)
f08: 0x00000000 (0.000000e+00), 0x0000000000000000 (0.000000e+00)
f09: 0x00000000 (0.000000e+00), 0x0000000000000000 (0.000000e+00)
f10: 0x00000000 (0.000000e+00), 0x0000000000000000 (0.000000e+00)
f11: 0x00000000 (0.000000e+00), 0x0000000000000000 (0.000000e+00)
f12: 0x00000000 (0.000000e+00), 0x0000000000000000 (0.000000e+00)
f13: 0x00000000 (0.000000e+00), 0x0000000000000000 (0.000000e+00)
f14: 0x00000000 (0.000000e+00), 0x0000000000000000 (0.000000e+00)
f15: 0x00000000 (0.000000e+00), 0x0000000000000000 (0.000000e+00)
mxcsr = 0x00001920
[21283] Clozure CL kernel debugger: T
Current Thread Context Record (tcr) = 0x7f48b1744570
Control (C) stack area:  low = 0x7f48b14f1000, high = 0x7f48b1745000
Value (lisp) stack area: low = 0x7f48b12c6000, high = 0x7f48b14e0000
Exception stack pointer = 0x7f48b1743490
[21283] Clozure CL kernel debugger: M
Lisp memory areas:
                code                  low                 high
         dynamic (9)       0x302001bf0640       0x3020026c0000
         dynamic (9)       0x302001b950e0       0x302001bf0640
         dynamic (9)       0x302001630390       0x302001b950e0
         dynamic (9)       0x302000000000       0x302001630390
          static (8)              0x12000              0x14000
  managed static (7)       0x300040000000       0x300040515000
        readonly (4)       0x300000000000       0x300040000000
          tstack (3)       0x7f48b11a3000       0x7f48b12c5000
          tstack (3)       0x7f48b1745000       0x7f48b1867000
          tstack (3)       0x7f48b282b000       0x7f48b294d000
          tstack (3)       0x7f48b336f000       0x7f48b3491000
          tstack (3)       0x7f48b2dcd000       0x7f48b2eef000
          tstack (3)       0x7f48b3911000       0x7f48b3a33000
          tstack (3)       0x7f48b5044000       0x7f48b5166000
          tstack (3)       0x7f48b5168000       0x7f48b51ca000
          vstack (2)       0x7f48b12c6000       0x7f48b14e0000
          vstack (2)       0x7f48b1868000       0x7f48b1a82000
          vstack (2)       0x7f48b294e000       0x7f48b2b68000
          vstack (2)       0x7f48b3492000       0x7f48b36ac000
          vstack (2)       0x7f48b2ef0000       0x7f48b310a000
          vstack (2)       0x7f48b3a34000       0x7f48b3c4e000
          vstack (2)       0x7f48b3eb3000       0x7f48b40cd000
          vstack (2)       0x7f48b4332000       0x7f48b457e000
          cstack (1)       0x7f48b14f1000       0x7f48b1745000
          cstack (1)       0x7f48b1a93000       0x7f48b1ce7000
          cstack (1)       0x7f48b2b79000       0x7f48b2dcd000
          cstack (1)       0x7f48b36bd000       0x7f48b3911000
          cstack (1)       0x7f48b311b000       0x7f48b336f000
          cstack (1)       0x7f48b3c5f000       0x7f48b3eb3000
          cstack (1)       0x7f48b40de000       0x7f48b4332000
          cstack (1)       0x7fffa5592000       0x7fffa57e34a0
[21283] Clozure CL kernel debugger: 
------------------------------------------------------------------------

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
A bad day in () is better than a good day in {}.




More information about the Openmcl-devel mailing list