[vtkusers] Problems on AIX

William A. Hoffman billlist at nycap.rr.com
Wed Mar 20 12:13:36 EST 2002


You might want to try gcc 3.0 with threads enabled:


./configure --enable-threads --enable-thread-safe --prefix=/usr/local/gcc-3.0.4

-Bill



At 05:52 PM 3/20/2002 +0100, Alexander Trum wrote:
>Hello
>
>Of course it is not a problem of VTK. VTK works fine.
>I have another library working with C++ strings.
>For example
>static const std::string names[10] = { "name1", "name2", ... };
>
>When I'am using above line my program crashes in bastring.h in line 75.
>When I'am change std::string to char* my program works but crashes at
>the next place where std::string is used.
>
>I have found a similar bug report under:
>http://sources.redhat.com/ml/bug-glibc/2001-02/msg00003.html
>
>So I'm assuming that this is a problem of gcc's libstdc++
>
>So I will try to switch to a native compiler first because i don't need
>a shared library now.
>
>Bye,
>  Alex
>
>"William A. Hoffman" schrieb:
>> 
>> FWI,
>> I know shared libraries will not work with the native AIX compiler.
>> There are other folks running AIX with gcc 2.95 and VTK.
>> 
>> How did you find this out?  I did a google search and saw nothing of
>> the bug.
>> 
>> -Bill
>> 
>> At 05:11 PM 3/20/2002 +0100, you wrote:
>> >Hello
>> >
>> >Thanks a lot for your tips.
>> >I found out that this is a bug in gcc's bastring.h on AIX, but a fix for
>> >gcc 2.95.x is not available.
>> >So I try to switch to a native compiler.
>> >
>> >Thanks a lot,
>> >  Alex
>> >
>> >"William A. Hoffman" schrieb:
>> >>
>> >> You could type where and see what the call stack was.
>> >> Also, you may want to try removing the -O2 and rebuilding
>> >> everything.   -O2 has caused problems on some machines.
>> >>
>> >> -Bill
>> >>
>> >> At 04:15 PM 3/19/2002 +0100, Alexander Trum wrote:
>> >> >Hello
>> >> >
>> >> >CMAKE_CXX_FLAGS are set to -O2 -g.
>> >> >I have debugged my program with gdb 5.0.
>> >> >Gdb produces following output:
>> >> >
>> >> >Program received signal SIGSEGV, Segmentation fault.
>> >> >0xd0b479d4 in __static_initialization_and_destruction_0
>> >> >(__initialize_p=1, __priority=65535)
>> >> >    at
>> >> >/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/../../../../include/g++-3/std/bastring.h:75
>> >> >75          charT* grab () { if (selfish) return clone (); ++ref; return
>> >> >data (); }
>> >> >(gdb)
>> >> >
>> >> >It seems that this is a problem of g++ related libs and includes.
>> >> >Is there anybody who have had a similar problem?
>> >> >Perhaps should i use another compiler?
>> >> >
>> >> >Thanks in advance,
>> >> >  Alex
>> >> >
>> >> >"William A. Hoffman" schrieb:
>> >> >>
>> >> >> If you are compiling with gcc, then you should try gdb and not dbx, you
>> >> >> might get more information.  Also, when you run ccmake or cmake, you should
>> >> >> make sure the CMAKE_CXX_FLAGS is set to -g so you have debug information.
>> >> >>
>> >> >> -Bill
>> >> >>
>> >> >> At 01:12 PM 3/19/2002 +0100, Alexander Trum wrote:
>> >> >> >Hello
>> >> >> >
>> >> >> >I'm using VTK 4.0 on a power pc with aix 4.3.3.0.
>> >> >> >I have compiled VTK with gnu as 2.9 and gcc 2.95.3 without any problems.
>> >> >> >But when i call my executable it immediately core dumps with a
>> >> >> >segmentation fault.
>> >> >> >When i try to debug it, dbx prints out following errors:
>> >> >> >
>> >> >> >reading symbolic information ...internal error: unexpected value 58 at
>> >> >> >line 3935 in file stabstring.c
>> >> >> >internal error: expected char ',', found
>> >> >> >'17=#14,18=&14,19=*14,20=&14,-11;:__as__3._0RC3._0;2A.;._0::21=#14,19,19,20,-11;:__3._0RC3._0;2A.22=#14,19,19,-11;:__3._0;2A.;;'
>> >> >> >internal error: expected char ',', found
>> >> >> >'=#14,18=&14,19=*14,20=&14,-11;:__as__3._0RC3._0;2A.;._0::21=#14,19,19,20,-11;:__3._0RC3._0;2A.22=#14,19,19,-11;:__3._0;2A.;;'
>> >> >> >internal error: expected char ';', found
>> >> >> >'#14,18=&14,19=*14,20=&14,-11;:__as__3._0RC3._0;2A.;._0::21=#14,19,19,20,-11;:__3._0RC3._0;2A.22=#14,19,19,-11;:__3._0;2A.;;'
>> >> >> >internal error: unexpected value 95 at line 3935 in file stabstring.c
>> >> >> >internal error: expected char ',', found
>> >> >> >'_as__3._0RC3._0;2A.;._0::21=#14,19,19,20,-11;:__3._0RC3._0;2A.22=#14,19,19,-11;:__3._0;2A.;;'
>> >> >> >internal error: expected char ',', found
>> >> >> >'as__3._0RC3._0;2A.;._0::21=#14,19,19,20,-11;:__3._0RC3._0;2A.22=#14,19,19,-11;:__3._0;2A.;;'
>> >> >> >internal error: expected char ';', found
>> >> >> >'s__3._0RC3._0;2A.;._0::21=#14,19,19,20,-11;:__3._0RC3._0;2A.22=#14,19,19,-11;:__3._0;2A.;;'
>> >> >> >internal error: unexpected value 58 at line 3935 in file stabstring.c
>> >> >> >
>> >> >> >It seems to me that this is a compiler problem.
>> >> >> >Has anybody an idea how to solve this problem?
>> >> >> >
>> >> >> >Thanks in advance,
>> >> >> >  AlexContent-Type: text/x-vcard; charset=iso-8859-2;
>> >> >> > name="a.trum.vcf"
>> >> >> >Content-Description: Karte für Alexander Trum
>> >> >> >Content-Disposition: attachment;
>> >> >> > filename="a.trum.vcf"
>> >> >> >X-MIME-Autoconverted: from 8bit to quoted-printable by nymx01.mgw.rr.com id g2JCEvP17485Content-Type: text/x-vcard; charset=iso-8859-2;
>> >> > name="a.trum.vcf"
>> >> >Content-Description: Karte für Alexander Trum
>> >> >Content-Disposition: attachment;
>> >> > filename="a.trum.vcf"
>> >> >X-MIME-Autoconverted: from 8bit to quoted-printable by nymx01.mgw.rr.com id g2JFHOP00229
>> >>
>> >> _______________________________________________
>> >> This is the private VTK discussion list.
>> >> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>> >> Follow this link to subscribe/unsubscribe:
>> >> http://public.kitware.com/mailman/listinfo/vtkusersContent-Type: text/x-vcard; charset=iso-8859-2;
>> > name="a.trum.vcf"
>> >Content-Description: Karte für Alexander Trum
>> >Content-Disposition: attachment;
>> > filename="a.trum.vcf"
>> >X-MIME-Autoconverted: from 8bit to quoted-printable by nymx01.mgw.rr.com id g2KGDZP22005Content-Type: text/x-vcard; charset=iso-8859-2;
> name="a.trum.vcf"
>Content-Description: Karte für Alexander Trum
>Content-Disposition: attachment;
> filename="a.trum.vcf"
>X-MIME-Autoconverted: from 8bit to quoted-printable by nymx01.mgw.rr.com id g2KGscP19197




More information about the vtkusers mailing list