[Ecls-list] debugging ecl?

Alessandro Serra gas.hale at gmail.com
Tue Jun 1 10:50:45 UTC 2010


Hi Pascal,
you can try:
(gdb) bt
It will show you the function call backtrace. Use it instead of quit.
Alessandro

On Tue, Jun 1, 2010 at 10:51 AM, Pascal J. Bourguignon
<pjb at informatimago.com> wrote:
>
> I'm trying to patch ecl (I'd want it to behave like clisp translating
> logical pathnames, downcasing the full uppercase names on unix
> systems).
>
> Unfortunately, it seems that I wrote bugs, since build/ecl_min breaks
> when I invoke the code I modified:
>
>
> [pjb at kuiper :0.0 ecl]$ build/ecl_min
> ;*** Lisp core booted ****
> ECL (Embeddable Common Lisp)
>
>> (setf (logical-pathname-translations "TEST") '(("TEST:**;*.*" "/tmp/**/*.*")))
>
> Internal or unrecoverable error in:
>
> Lisp initialization error.
>
>  [22: Invalid argument]
> Aborted
> [pjb at kuiper :0.0 ecl]$
>
>
>
> How should I proceed to debug ecl_min?
>
>
> I tried gdb on ecl_min, but it fails miserably:
>
> (gdb) handle SIGSEGV pass nostop
> Signal        Stop      Print   Pass to program Description
> SIGSEGV       No        Yes     Yes             Segmentation fault
> (gdb) run
> Starting program: /home/pjb/src/planner-ecl/ecl/build/ecl_min ./build/ecl_min
> [Thread debugging using libthread_db enabled]
> [New Thread 0x7f0a3e2436f0 (LWP 26772)]
> [New Thread 0x7f0a3cf6a910 (LWP 26775)]
> ;*** Lisp core booted ****
> ECL (Embeddable Common Lisp)
>
> Program received signal SIGSEGV, Segmentation fault.
>
> Program received signal SIGSEGV, Segmentation fault.
>
> Program terminated with signal SIGSEGV, Segmentation fault.
> The program no longer exists.
> (gdb) quit
>
>
> Is using printf the only way?
> --
> __Pascal Bourguignon__                     http://www.informatimago.com/
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Ecls-list mailing list
> Ecls-list at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ecls-list
>



-- 
The basic tool for the manipulation of reality is the manipulation of
words. If you can control the meaning of words, you can control the
people who must use the words.
                   How To Build A Universe That Doesn't Fall Apart Two
Days Later
                   Philip K. Dick




More information about the ecl-devel mailing list