Menu

#21 solaris problem with shared libs

minor
open-accepted
3
2001-03-01
2000-11-05
No

Doesn't run properly when built with shared libraries on Solaris/Sparc. Must build with static libraries.

Discussion

  • Stig E Sandø

    Stig E Sandø - 2000-12-18
    • labels: 101610 --> building sds
     
  • Stig E Sandø

    Stig E Sandø - 2001-03-01

    Logged In: YES
    user_id=9857

    Assigned to karltk to allow him to explore the joy of
    using slowaris.

    The configure-line used when compiling static on HA:
    ./configure --prefix=/Home/stud/stig/tmp
    --with-cmucl=/Home/stud/stig/bin/solaris/cmulisp
    --with-java-prefix=/usr/java/bin --disable-shared

    The problem is still there for all c/c++ code that is
    dynamically linked it seems. A report:

    stig@korkeik(23:37)260> gdb ~/tmp/bin/cxx2csf
    GNU gdb 5.0
    Copyright 2000 Free Software Foundation, Inc.
    GDB is free software, covered by the GNU General Public
    License, and you are
    welcome to change it and/or distribute copies of it under
    certain conditions.
    Type "show copying" to see the conditions.
    There is absolutely no warranty for GDB. Type "show
    warranty" for details.
    This GDB was configured as "sparc-sun-solaris2.6"...
    (gdb) set args --csf-dump frob.xml cpp-example.cpp
    (gdb) run
    Starting program: /Home/stud/stig/tmp/bin/cxx2csf --csf-dump
    frob.xml cpp-example.cpp

    Program received signal SIGSEGV, Segmentation fault.
    0x99df8 in GC_find_limit () at csfapi.cpp:45
    45 return new CSF_Toplevel(*this);
    (gdb) bt
    #0 0x99df8 in GC_find_limit () at csfapi.cpp:45
    #1 0x99e48 in GC_get_stack_base () at csfapi.cpp:45
    #2 0x996b0 in GC_init_inner () at csfapi.cpp:45
    #3 0x9df10 in GC_generic_malloc_inner () at csfapi.cpp:45
    #4 0x9e0b8 in GC_generic_malloc () at csfapi.cpp:45
    #5 0x9e198 in GC_malloc () at csfapi.cpp:45
    #6 0xb10bc in gc::operator new (size=16) at gc/gc_cpp.h:211
    #7 0x759c8 in __static_initialization_and_destruction_0
    (__initialize_p=1, __priority=65535)
    at mop.cpp:30
    #8 0x76478 in global constructors keyed to
    Class::class_list () at mop.cpp:1157
    #9 0xaf874 in __do_global_ctors_aux () at include/new:39
    #10 0xaf8ac in _init () at include/new:39
    (gdb) set args
    (gdb) run
    The program being debugged has been started already.
    Start it from the beginning? (y or n) y
    Starting program: /Home/stud/stig/tmp/bin/cxx2csf

    Program received signal SIGSEGV, Segmentation fault.
    0x99df8 in GC_find_limit () at csfapi.cpp:45
    45 return new CSF_Toplevel(*this);
    (gdb) quit
    The program is running. Exit anyway? (y or n) y

     
  • Stig E Sandø

    Stig E Sandø - 2001-03-01
    • assigned_to: nobody --> karltk
    • status: open --> open-accepted
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.