Re: macOS status

Kirill A. Korinsky <[email protected]>
Newsgroups gmane.lisp.gcl.devel
Message-ID <[email protected]>
Greetings,

On Tue, 30 Jan 2024 16:17:43 +0100,
Camm Maguire wrote:
>
> Greetings!  Unexpected.  At this point please do
>
> cd unixport
> make raw_gcl_gcl
> gdb raw_pcl_gcl
> (gdb) r ./ <foo
> (gdb) bt
>

You'll love it!

  sh-3.2$ make raw_pcl_gcl
  ls: gcl_recompile?*.o: No such file or directory
  grep: raw_pcl_gcl: No such file or directory
  touch raw_pcl_gcl_map
  /usr/bin/clang -L/opt/local/lib -Wl,-headerpad_max_install_names -fno-pie -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch x86_64 -Wl,-no_pie -m64 -Wl,-headerpad,72 -o raw_pcl_gcl   -L.   -lpcl_gcl `echo -lm  -lgmp -lreadline | sed -e 's/-lncurses/ /'` -lc -lgclp
  ld: warning: -no_pie is deprecated when targeting new OS versions
  sh-3.2$ sudo lldb raw_pcl_gcl
  (lldb) target create "raw_pcl_gcl"
  Current executable set to '/Users/catap/src/gcl/gcl/unixport/raw_pcl_gcl' (x86_64).
  (lldb) settings set target.input-path /Users/catap/src/gcl/gcl/unixport/foo
  (lldb) r
  Process 57033 launched: '/Users/catap/src/gcl/gcl/unixport/raw_pcl_gcl' (x86_64)
  GCL (GNU Common Lisp)  April 1994  9455617 pages
  Building symbol table for /Users/catap/src/gcl/gcl/unixport/raw_pcl_gcl ..
  loading /Users/catap/src/gcl/gcl/unixport/../lsp/gcl_export.lsp
  loading /Users/catap/src/gcl/gcl/unixport/../lsp/gcl_defmacro.lsp
  loading /Users/catap/src/gcl/gcl/unixport/../lsp/gcl_evalmacros.lsp
  loading /Users/catap/src/gcl/gcl/unixport/../lsp/gcl_top.lsp
  loading /Users/catap/src/gcl/gcl/unixport/../lsp/gcl_autoload.lsp

  >
  MAKE-PACKAGE

  >
  #<"S" package>

  >
  #<"COMPILER" package>

  >
  #<"SLOOP" package>

  >
  #<"ANSI-LOOP" package>

  >
  #<"DEFPACKAGE" package>

  >
  #<"TK" package>

  >
  #<"FPE" package>

  >
  #<"CLTL1-COMPAT" package>

  >
  #<"SYSTEM" package>

  SYSTEM>
  T

  SYSTEM>
  T

  SYSTEM>
  (:RAW-IMAGE
   :DYNAMIC-EXTENT :INTDIV :64BIT :C99 :UNEXEC :NATIVE-RELOC :READLINE
   :TRUNCATE_USE_C :CLX-LITTLE-ENDIAN :BSD :DARWIN :X86_64
   :IEEE-FLOATING-POINT :DARWIN :UNIX :GMP :GCL :AKCL :COMMON :KCL)

  SYSTEM>The assertion pid==waitpid(pid,&s,0) on line 76 of unixsys.c in function vsystem failed: Interrupted system callEmergency reset complete

  >UNDEFINED-FUNCTION NIL SETQ   NAME REMOVE
  Lisp initialization failed.
  Process 57033 exited with status = 0 (0x00000000)
  (lldb)

Under lldb it doesn't lead to

  Segmentation violation: c stack ok:signalling errorERROR NIL LET   FORMAT-CONTROL Caught fatal error [memory may be damaged]: ~aFORMAT-ARGUMENTS(Segmentation violation.)

but this change might be introduced by LLDB

--
wbr, Kirill
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.