Menu

CLIPS 6.30 cores under Solaris 10

Help
2009-01-14
2012-11-23
  • Rob Moolhuijsen

    Rob Moolhuijsen - 2009-01-14

    I downloaded the CLIPS_6.30_Beta_Windows_Application_Installer_R3.msi package and compiled it under Solaris 10 (SunOS 5.10) and cores when defining a "defclass".

    Details:
    uname -a
    SunOS sol10test 5.10 Generic_137111-03 sun4v sparc SUNW,SPARC-Enterprise-T5120

    Compiler:
    gcc --version
    gcc (GCC) 3.4.6
    Copyright (C) 2006 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    Compiled everything under the "Projects/Source/CLIPS" directory.

    Execution:
    ./clipstest
             CLIPS (Quicksilver Beta 3/26/08)
    CLIPS> (defclass A (is-a USER)
      (role concrete)
      (slot x)
    )
    Segmentation Fault(coredump)

    gdb clipstest core
    GNU gdb 6.8
    Copyright (C) 2008 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "sparc-sun-solaris2.10"...
    /export/home/robm/.gdbinit:4: Error in sourced command file:
    No symbol table is loaded.  Use the "file" command.
    Reading symbols from /lib/libm.so.2...done.
    Loaded symbols for /lib/libm.so.2
    Reading symbols from /lib/libc.so.1...done.
    Loaded symbols for /lib/libc.so.1
    Reading symbols from /platform/sun4v/lib/libc_psr.so.1...done.
    Loaded symbols for /platform/SUNW,SPARC-Enterprise-T5120/lib/libc_psr.so.1
    Reading symbols from /lib/ld.so.1...done.
    Loaded symbols for /lib/ld.so.1
    Core was generated by `./clipstest'.
    Program terminated with signal 11, Segmentation fault.
    [New process 78608    ]
    #0  AddClassLink (theEnv=0xf4068, src=0x30, cls=0x1cea68, posn=-1)
        at classfun.c:387
    387       NAME         : AddClassLink
    (gdb) bt
    #0  AddClassLink (theEnv=0xf4068, src=0x30, cls=0x1cea68, posn=-1)
        at classfun.c:387
    #1  0x000311d0 in ParseDefclass (theEnv=0xf4068, readSource=0xf6618 "")
        at classpsr.c:641
    #2  0x0003a96c in ParseConstruct (theEnv=0xf4068, name=0x1bf608 "",
        logicalName=0xd5ea8 "command") at cstrcpsr.c:381
    #3  0x0003368c in RouteCommand (theEnv=0xf4068, command=0xd5ea8 "command",
        printResult=1) at commline.c:810
    #4  0x00033890 in ExecuteIfCommandComplete (theEnv=0xf4068) at commline.c:643
    #5  0x00033c7c in CommandLoop (theEnv=0xf4068) at commline.c:525
    #6  0x0008175c in main (argc=1, argv=0xffbff984) at main.c:64

    Any help would be appreciated.

    Rob

     
    • Rob Moolhuijsen

      Rob Moolhuijsen - 2009-01-15

      Found the solution myself.

      The flag "-O3" with tghe gcc compiler seems to cause the problem. Compiling with the "-O" works fine.

       
    • Gary Riley

      Gary Riley - 2009-01-15

      Try compiling with -O3, but use the -fno-strict-aliasing option. This is from section 2 of the Advanced Programming Guide

       
    • Rob Moolhuijsen

      Rob Moolhuijsen - 2009-01-16

      Thanks this works perfectly.

       

Log in to post a comment.