std::locale constructor causing coredump in MT code

1021 byte By mattwozniskia at 2007-11-26 14:14:26
As the title says, I'm experiencing a problem on an 8 processor Solaris 8 machine with Sun Studio 11 where std::locale's constructor causes coredumps in multithreaded code. The test case below should just create and destruct 50,000 en_US locales, split amongst 5 threads, but instead it ...

Problem with Purify

396 byte By neerajrathi2a at 2007-11-26 14:24:32
I am using Rational's Purify software to track memory management in my program. I am using g++ compiler. whenever I linked my program with purify and run I get core dump error because of recursively called terminate function by getprotocolbyname() function. without purify program works fine. ...

compilation error with g++ compiler version 3.4.3

789 byte By neerajrathi2a at 2007-11-26 14:25:14
in following code I am getting compilation error.Code is below:#include <stdio.h>#include <stdlib.h>#include <strings.h>class TEST;class ONE {friend class TEST; void fun(const TEST& value) { value.a; }};class TEST{protected: int a;};int main(){return 0;}__Errors is:g++ -g ...

symbol mangling difference between SC10 and SC6.

518 byte By HuHua at 2007-11-26 14:29:20
I have C++ libraries that was compiled using Sun Forte 6 patch 2 C++ compiler, aka, SC6. I now want to compile codes that uses those libraries in Sun Studio 10, aka, SC10. Basically I want to use those SC6-compiled libraries without recompiling them using SC10.However, it turns out that SC10's ...

Assertion: unexpected type_builder::visit_unspec

949 byte By germancheunga at 2007-11-26 14:30:39
Hi,When I compile my code, I found the following error.[b] >> Assertion: unexpected type_builder::visit_unspec (../lnk/v2mangler.cc, line 1378)while processing main3.cpp at line 0.[/b]After investigation, I found that the error is prompt when the "-g" flag is used when I use templated ...

statically linking libstdc++ on Solaris 10 x86 platform

174 byte By agnihotri22a at 2007-11-26 14:34:26
hi,Using g++, how do i statically link libstdc++ on Solaris 10 x86 platform?What are the necessary linker options?-Thanks and Regards,Ameya

ValidatorResources.java:464

67 byte By mYScreena at 2007-11-26 14:40:13
Hi Can some one guide me on how to do away with this error ?

Multiple issues with Sun Studio Express December 2006 Build

2321 byte By dfrankea at 2007-11-26 14:40:30
At comp.lang.fortran, Bob Corbett asked to report issues with SSX3 in this forum. Here we go:The code example below triggers three (3) different errors in sunf95, but not with Intel, GNU or Lahey compilers. a) Compile as-is. The result should be 1.0 but the binary crashes with a segmentation ...

signal 11 on compilation

463 byte By Patrick.Mauritza at 2007-11-26 14:41:27
I tried building lua as c++ (for exception handling etc) and it failed. here's a reduced test case of it. Compiling as C, it works.extern int foo(int, int);extern int bar(int, int);int main(int argc, char** argv) { int c=((argc>3)?foo:bar)(1,2); return c;}$ CC -c test.cc >> Signal ...

extern not allowed here

554 byte By Sashi12aa at 2007-11-26 14:42:13
hi i made two files1st one1.h#include "iostream.h"class A{public :int a;};2nd one2.c#include "iostream.h"#include "sashi.h"extern class A;class B{public :A k;int g;}When i compiled this im getting an errorline 4: Error: "extern" is not allowed here.line 11: Error: Use ";" to terminate ...

Forte C compiler, SIZEOF from X11/xdm.h and macro concatenation

1213 byte By Chris.Shawa at 2007-11-26 14:51:02
Hi,I'm trying to trace the version of compiler I need to build some legacy software. The software can't be changed. I'm currently using:-% cc -V cc: Sun WorkShop 6 update 2 C 5.3 2001/05/15with a demo licence. I'm currently having problems compiling some code which makes use of the SIZEOF ...

slow fopen

648 byte By gaurav_kadyan2881a at 2007-11-26 14:56:58
Hi All,I have build an application which does fopen , fclose and unlink. When the file is created for the first time using fopen and when it is deleted using unlink it takes 10-15 ms to complete that operation. If i call fclose and then fopen once the file has been created then fopen takes 0 ...

malloc and free in multithread programm

567 byte By dimkaa at 2007-11-26 14:59:44
I have big trouble. Memory that I allocate in one thread and freed from other is very slow.For example: in thread A I allocate 10000x10KB and add it to global queue and sleep 1 second, thread B get all pointers from queue and free them and sleep 1 ms. After allocate 6x10000x10KB, programm ...

Coredump on load test!!!!

4790 byte By wliangya at 2007-11-26 15:07:09
Hi, All,Only when I do loadtest, a process coredumped, here are detailed informtiaon, please help analyse it, thanks!(dbx) wherecurrent thread: t@8=>[1] __lwp_park(0x4, 0x0, 0x0, 0x0, 0x1, 0x0), at 0xffffffff789c8fa8 [2] cond_sleep_queue(0x1002cc440, 0x1002cc420, 0x0, 0x1, 0x11d7f0, ...

Unexpected: "may not have a type qualifier" error

2138 byte By germancheunga at 2007-11-26 15:11:28
Hi,When I uses a 3rd party auto pointer utility, an unexpected "may not have a type qualifier" error raised. I hacked into the code and able to reproduce the problem with the following program. Any one have workaround or solution for it? Thank you very much.Compiler version: $ CC -VCC: Sun C++ ...

Operator ambiguity during the Studio 11 C++ compiler

1642 byte By opsia at 2007-11-26 15:13:38
Hi,We are on the verge of upgrading the compiler from WS6 to 11. As such a need to compiler all the existing code which had been compiled successfully by WS6. However, we are facing some problem for the Template <class T> issue:#include <sstream>#include <string>class ABC: ...

C-precompiler's predefined symbols

304 byte By Fridolina at 2007-11-26 15:13:51
For the use with a lint tool I need a complete list with all predefined precompiler variables (such like __STDC__). With a GNU C compiler I can use the option -dM and the compiler generates such a long list. Is there something similar with the Sun Studio11 C Compiler? What can I do ...

collect causes segmentation fault when profiling L2 data cache misses on T1

472 byte By John_Ca at 2007-11-26 15:19:04
I am attempting to profile L2 data cache misses on a SUN T1000 server, but collect causes a segmentation fault when I choose to profile L2 data cache misses. Is it possible to profile L2 data misses on the T1 processor?Thanks!-JohnA simple hello world application and the failed profiling:%] ...

libumem complains on redzone violation in std::deque even with latest patch

16133 byte By andersoa at 2007-11-26 15:22:17
HW: e2900 (USIV+ cpus), 5.10 Generic_118833-24I've applied the latest libCstd patch 119963-08SW: CC +w -fast -erroff=hidef -V -PIC -mt -xtarget=ultra3 -xarch=v9a sunBugReportDeque.ccCC: Sun C++ 5.8 Patch 121017-08 2006/12/06cg: Sun Compiler Common 11 Patch 120760-11 2006/10/18The attached code ...

ICE: CC signal 11 during compile of mysql-5.0.27

1546 byte By mdoehra at 2007-11-26 15:28:48
I'm trying to compile a 64bit version of mysql-5.0.27 and I'm getting a segementation fault of the compiler:CC -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/export/home/doehrm/bix64/bixdata3/external/mysql-5.0.2 7\"" -DDATADIR="\"/export/home/doehrm/bix64/bixdata3/external/mysql-5.0.27/var\"" ...

Sunstudio11, Internal Error when I execute a fortran program

645 byte By eulera at 2007-11-26 15:38:53
Hello,I installed sunstudio11 on a amd64 machine with ubuntu 6.06 LTS dapper drake.I get an "Internal Error" message when I execute a fortran program (myprog < input.file).Annotation: Exception occurred in Request Processorjava.lang.NullPointerExceptionat ...

SSE2

511 byte By frenchkoia at 2007-11-26 15:39:06
Hi,I develop a MPI code using SS2 instruction, under gcc 4.0. I would like now run my code under our SUN Cluster AMD64, but when I use mpCC option -xarch=sse2 and I also included (sunmedia_intrin.h) in my .cpp. I get :"Paroi.cpp", line 25: Error: __m128d is not defined."Paroi.cpp", line 43: ...

debug Fortran on Sun Studio IDE

513 byte By lello1776a at 2007-11-26 15:50:38
Hi,I am quite new to Sun Studio and I am trying to use it in my daily work.The Fortran 95 compiler runs really nice on Linux. It found some bugs thatIntel 9.1 did not!However when I tried to debug the program I realized that it is not possible toset the breakpoint using the IDE, one has to run ...

debug Fortran in Studio Express on Linux

632 byte By lello1776a at 2007-11-26 15:50:46
Hi,I am quite new to Sun Studio and I am trying to use it in my daily work.The Fortran 95 compiler runs really nice on Linux. It found some bugs thatIntel 9.1 did not!However when I tried to debug the program I realized that it is not possible toset the breakpoint using the IDE, one has to run ...

collect produces segmentation violation

1066 byte By Bernd_Boettgera at 2007-11-26 15:59:28
I am trying to collect performance data for a fortran90 application which is using third-party dynamically linked 32bit objects. I get a segmentation violation on calling one of the third-party subroutines running the application inside collect, which is not reproducable in terms of after which ...

pthread_cond_timedwait() returning ETIMEDOUT too soon?

674 byte By mattwozniskia at 2007-11-26 16:07:10
I have two threads in my program. I would like the thread containing main() to spawn a new thread to perform a complicated task for up to five minutes, but kill it if it takes too long. I've been trying to accomplish this with a pthread_cond_timedwait, but it seems that this function can ...

compiler name f95 conflicts Lahey & NAG

630 byte By NormCa at 2007-11-26 16:08:16
Sun Fortran comrades, I just installed Sun Studio 11 on a 32-bit SuSE 10.0 system. It seemed to install without any problems. I work from the command line and my own makefiles. The name of the Sun compiler, f95, is the same as one of the intermediate programs that compose the Lahey compiler as ...

Installing Sun Studio in Custom location

418 byte By curtorkara at 2007-11-26 16:09:23
Hi,I have installed sunstudio 11 on a Solaris 10 system using the batchinstaller programe. The installation was successful under /opt/SUNWspro.I need to move the same to a nfs location. But the same when moved gives an errorCannot find Netbeans 3.5V11release.Is there a way I can specify the ...

Scratch files in the 'run directory'

1336 byte By Philippe_MICRESSa at 2007-11-26 16:12:52
Hi!This is probably a set-up problem (in which case I would be very interested to know what I should tweak...), but it seems to me that scratch files appear in the working directory (and would not always be cleaned-up in some not easily reproducible crashes). Is it possible to put them out of ...

Building Boost 1.33.1 on Solaris 5.8 with Sun Studio 11/C++ 5.8

1263 byte By victor1a at 2007-11-26 16:14:31
I'm getting a lot of compile errors such as below. Do I need some patches? >> Assertion:(../lnk/init.cc, line 1032)while processing ./boost/signals/detail/named_slot_map.hpp at line 64.CC-c -DBOOST_SIGNALS_DYN_LINK=1 -DBOOST_SIGNALS_NO_LIB=1 -g -xtarget=generic +d -features=rtti ...

Thread creation in c++

420 byte By I-love-programminga at 2007-11-26 16:22:01
Hi, all !I am working on a c++ program. I have created a class called threads abnd now I want to know whether there is a function for creating threads.I am new to solaris.I don't have a idea about what function to use to create threads in c++.I also want to know whether there is a function to ...

Newbie question, how to run SUN Studio 11 from the terminal?

1063 byte By urrozalfa at 2007-11-26 16:23:21
I am running SUN Studio 11, under Solaris 9, the first thing I did, was to run the tutorial, it worked fine.Then I tried, doing a simple counting program that displays the digits form 1 to 10, one per line. I did exactly as the the tutorial says, by the way this is a "c" program. Then when I ...

dbx error

1125 byte By anand-ba at 2007-11-26 16:32:16
hello all,When i try to load a program in Sun Studio 11 it gives me this error and exits,connecting to dbx has failed: wait(2) failurei tried executing the command dbx , it said some segmentation fault and core dumped.here is the output of the command 'pstack core'-core 'core' of 3352: ...

Development work on Sun Studio 11

419 byte By anand-ba at 2007-11-26 16:32:19
Is there any development work going on regarding Sun Studio 11 or is it all being concentrated over the C/C++ pack of netbeans. I am asking this because Sun Studio 11 works over Netbeans 3.5v11 which i presume is pretty old (Ofcourse Sun Studio Express is built over Netbeans 5.5.1).My question ...

Problem with Studio Express 3 on 32 bit Linux

1007 byte By Samsara at 2007-11-26 16:34:22
Hi, I just noticed that Studio Express 3 cc: Sun C 5.9 Linux_i386 Build35_2 2006/12/04does not run on our 32 bit Pentium 4 boxes.cc-o hello32.exe hello.cFailure in /rwthfs/rz/SW/UTIL/Studio12_exp-3/SUNWspro/prod/bin/fbe, status = 0x8bFatal Error exec'ing ...

OpenMP - max threads?

694 byte By joe.vijaya at 2007-11-26 16:36:27
I am trying to run the following code compiled with Forte Developer 7 C 5.4 2002/03/09. I could not get threads more than 128. Is there a hard limit set anywhere in SUN Solaris 8 OS?[code]#include <stdio.h>#include <omp.h>int main(void){omp_set_dynamic(0);omp_set_num_threads(1110); ...

Subsequent application builds are different.

670 byte By schwolfa at 2007-11-26 16:37:19
I am building several large applications with a Makefile and several shared libraries. I have disabled debugging symbols. The compilation flags are:cc-v -Xa -xarch=v8CC-xarch=v8I have noticed that the executables are different (bit-for-bit) between subsequent builds.>>what ...

Subsequent application builds are different.

669 byte By schwolfa at 2007-11-26 16:37:20
I am building several large applications with a Makefile and several shared libraries. I have disabled debugging symbols. The compilation flags are:cc-v -Xa -xarch=v8CC-xarch=v8I have noticed that the executables are different (bit-for-bit) between subsequent builds.>>what ...

Symbol referencing error

6942 byte By Sashi12aa at 2007-11-26 16:39:04
Hi im getting this error and cannot resolve it.please help...[b]Undefinedfirst referenced symbolin file[/b]ios::~ios() /opt/SUNWspro/lib/rw7/librwtool.soRWSlistCollectables::newSpecies(void) const ../../lib/libobserv.a(Observation.o)RWCollectable::copy(void) ...

Compile errors with Solaris 5.8 and Studio 11 with latest patches

5104 byte By victor1a at 2007-11-26 16:41:48
I asked sa to patch my studio 11, and they applied patches 121023-04, 121015-04, 121017-08, 122142-03, 120761-03, 120760-11 and 122135-02. Then, I compiled my boost_1_33_1 again. It built some, but not all libraries. It stil spit out the following errors. Is this ...

request to upload a file with bug report

284 byte By NormCa at 2007-11-26 16:42:10
I have found a definite bug in the compiler. I wish to send you a compressed tar archive (a tgz file) whose size is 484365 bytes. With the files contained it you will be able to reproduce the error in less than one minute. How may I do this? Thank you.Norm

Can磘 understand OPENMP performance data

2626 byte By Bernd_Boettgera at 2007-11-26 16:42:39
Dear all!I am trying to use the Sunstudio analyzer (Suse Linux) for optimizing openMP parallelization in our fortran code. Unfortunately I get very strange results for the inclusive CPU times as soon as one single subroutine is compiled with the option -openmp (-openmp is also specified for ...

comparing java profiles using analyzer

309 byte By deep.singha at 2007-11-26 16:45:39
I have a couple of Java profiles collected using Sun studio collector and I want to compare and see differences between them. That is, which Java method is taking more/less time in profile2 vs profile1. I could not find any way to do so in Sun studio Analyzer. If there is some way, please let ...

Elaborated type specifiers

408 byte By Zootlea at 2007-11-26 16:45:48
I see the latest studio express still acceptst[code]emplate <typename T> class X { friend class T;};struct Z{};int main() { X<Z> x;}[/code]Which is ill-formed according to 7.1.5.3 p2. Is this going to change, or is the standard being ammended?I ask because these issues cause porting ...

Can Studio 11 / Solaris 10 x86_64 yield Linux static binary?

515 byte By mekosmowskia at 2007-11-26 16:46:25
I'm about to install Solaris 10 this weekend to see if it will suit my needs and was wondering if Sun Studio 11 running under Solaris 10 on x86_64 (Opteron) can make Linux executable code?If so, what options should I read about to do this?My code is mostly Fortran with a dash of C (~99 : 1 ...

Control going in both if and else

358 byte By sandeepkumargarga at 2007-11-26 16:50:01
Hi all,Has any one faced very strange behaviour on Solaris 10 OS using Sun studio C++ compiler 5.2, that control is going in both if as well as else.I am not able to reproduce the issue stand alone its only happening in my big application.Seems its related to some flags.Update me if any one got ...

gcc error parsing in sunstudio

346 byte By Paul_Floyda at 2007-11-26 16:50:50
HiI'm using Studio Express 3 with GCC 3.2.3. In the error output, likeaaa.h:515: syntax error before "XXXX"In file included from bbb.h:67,from ccc.h:11,from ddd.h:6,from eee.c:1:there are no hyperlinks for the first and last lines. In particular, the first line would be ...

SUNWspro C++ and 2007 DST changes

674 byte By Ben_Cotton@ml.coma at 2007-11-26 16:52:46
Hi,I support a rather large code base of SPARC/Solaris deployed applications written in 4.2 SUNWspro C++. In 2007, the US govt is extending Daylight Savings Time by 1 month (beginning March 11, 2007).Obviously, I will need some kind of patch to apply to my Solaris OEs, my 4.2 SUNWspro C++ ...

ASM IDE integration

333 byte By Rangara at 2007-11-26 16:54:18
WONDERFUL job on the December build of Sun Studio guys,I'll get right to the point..I would like to see .S integration as a template so we can easily create asm files and attachthem to our projects just like any other C/C++ file, and have them behave as any otherfile would in the build and ...

Second argument to REPEAT evaluated twice

450 byte By fxcouderta at 2007-11-26 16:58:03
I don't know where to report bugs, but I found this one while testing code. It looks like, in the following code, the second argument to repeat is evaluated twice...$ cat a.f90 integer :: i i = -1 print *, repeat ("a", f())contains integer function f()integer :: x = 5save xx = x - 1f = x end ...