stl string and Solaris 9 - Unix

This is a discussion on stl string and Solaris 9 - Unix ; Hi Friends, I am using stl string in my program. But my program badly fails saying SIGBUS error. My solaris machine is sparc. Stack: [0xf0700000,0xf07fc000), sp=0xf07fb8c0, free space=1006k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C allocate__t24__default_alloc_template2b1i0Ui+0xb0 ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: stl string and Solaris 9

  1. stl string and Solaris 9

    Hi Friends,
    I am using stl string in my program. But my program badly fails
    saying SIGBUS error. My solaris machine is sparc.


    Stack: [0xf0700000,0xf07fc000), sp=0xf07fb8c0, free space=1006k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code,
    C=native code)
    C allocate__t24__default_alloc_template2b1i0Ui+0xb0
    C allocate__t12simple_alloc2ZcZt24__default_alloc_te mplate2b1i0Ui
    +0x20
    C _M_allocate__t18_String_alloc_base3ZcZt9allocator1 Zcb1Ui+0x18
    C _M_allocate_block__t12_String_base2ZcZt9allocator1 ZcUi+0x34
    C
    _M_range_initialize__H1ZPCc_t12basic_string3ZcZt11 char_traits1ZcZt9allocator1ZcX00X00G20forward_iter ator_tag_v
    +0x44
    C
    _M_range_initialize__H1ZPCc_t12basic_string3ZcZt11 char_traits1ZcZt9allocator1ZcX00X00_v
    +0x34
    C
    __t12basic_string3ZcZt11char_traits1ZcZt9allocator 1ZcPCcRCt9allocator1Zc
    +0x40
    C GetData__13CExternalDataQ213CExternalData8MAPPINGS +0x2d8

    Any Idea what is happening?


  2. Re: stl string and Solaris 9

    "Neo" writes:

    > I am using stl string in my program. But my program badly fails
    > saying SIGBUS error. My solaris machine is sparc.
    >
    > Stack: [0xf0700000,0xf07fc000), sp=0xf07fb8c0, free space=1006k
    > Native frames: (J=compiled Java code, j=interpreted, Vv=VM code,
    > C=native code)
    > C allocate__t24__default_alloc_template2b1i0Ui+0xb0
    > C allocate__t12simple_alloc2ZcZt24__default_alloc_te mplate2b1i0Ui+0x20
    > C _M_allocate__t18_String_alloc_base3ZcZt9allocator1 Zcb1Ui+0x18
    > C _M_allocate_block__t12_String_base2ZcZt9allocator1 ZcUi+0x34


    Most likely you compiled your JNI library with g++ incorrectly and
    ended up using thread-unsafe allocator.

    Rebuild it with '-pthreads' flag.

    Cheers,
    --
    In order to understand recursion you must first understand recursion.
    Remove /-nsp/ for email.

+ Reply to Thread