Problem with streams with CC12.0, Please help

Hi All,
We have been facing some issue with the streams(ostringstream, stringstream etc.,) while using them with CC12.0 compiler.
We are using the ostringstreams as:
if (log.isBeingLogged(QbLogEntry::OUTPUT_DOC_DATA))
// log the retrieved data:
std::ostringstream oss;
oss << result;
log.logDebugInfo(..., oss.str());
if (log.isBeingLogged(QbLogEntry::BILLING_DATA))
std::ostringstream oss;
oss << "Billing string: " << attrs.getBillInfo();
log.logDebugInfo(..., oss.str());
When the server is compiled using the CC12.0 compiler and we run the test case the server cores. The stack trace looks like:
t@19 terminated by signal SEGV, bad address: 0xffffffffffffffff
'where' revealed the following stack trace (abbreviated for clarity):
[3] free
[4] operator delete
[5] std::ios_base::~ios_base
[6] QbLogEntry::logUlongParm(this = 0xf7b4f4ac, parmName = 0x2fe378 "transactionAttributes", parmValue = 10U), line 221 in "QbLogEntry.C"
This code works fine with Sun Studio 10.0 but we started facing issues with streams once we migrated to sun studio 12.0
How can we resolve the issue please help.

I see two problems with the command line.
-R/l-n/app/colr/lib/infra/SunOS5.9/WS12.0
Is this the directory where the compiler is installed? If so, remove this option. You should not use -I, -L, or -R options that point into the compiler installation area. The CC driver will add such options as needed.
-D_RWSTD_SOLARIS_THREADS
This macro definition is likely to cause program crashes. We do not support user modification of any of the library configuration macros (those starting with _RWSTD). The runtime library is built with a set of configuration macros. If you compile your program with a different set, the object code generated by your application will not be compatible with the runtime library.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • A small confusion with Streams... Please help

    I am working with j2ssh. I have OutputStream at hand and if i direct to System.out, or direct to file, it works fine. But I need to read the output line by line and check a string find in the that line, if not available print it. I think i need to connect outputstream to input stream. But i dont know how to do it. Please help me if any possibility.
    OutputStream out=session.getOutputStream();
    InputStream in = session.getInputStream();
    OutputStream fos=new FileOutputStream ("c:\\aaa.txt");
    DataOutputStream dos = new DataOutputStream (fos);
    IOStreamConnector input=new IOStreamConnector(System.in,out);
    IOStreamConnector output=new IOStreamConnector(in,fos);Here session is ssh session.
    Thanks,
    Uma

    I guess you want to analyze the input stream ?!?
    The input stream is whatever comes into your program from a source - for example an HTTP Stream, or a file.
    On the other hand, the output stream totally depends on the data you put into it.
    For reading String lines from the input stream, use a reader such as the BufferedReader:
    http://java.sun.com/j2se/1.5.0/docs/api/java/io/BufferedReader.html
    Now you can manipulate your data, rebuild it and move it into the output stream via a BufferedWriter
    http://java.sun.com/j2se/1.5.0/docs/api/java/io/BufferedWriter.html

  • Hi, iam facing proble in synchronizing 4 ni 4472 cards input with pxi -6052e analog output. please help me out to sort out this problem

    hi, iam facing problem in synchronizing 4 ni 4472 cards input with pxi -6052e analog output. please help me out to sort out this problem

    Hi achyuth,
    Thank you for posting on the National Instruments forum.
    I am not sure what you are trying to do.  Are you trying to input and output at the
    same time?  Are you just trying to
    synchronize all of your inputs?  Do you
    want them to run off the same clock?  If
    you could, give me some more information so I can understand your problem
    better.
    In the meantime, this might help you:
    PXI Timing,
    Triggering, and Synchronization Capabilities of E-Series Multifunction Data
    Acquisition ...
    PXI Timing and Synchronization
    Thank You,
    Nick F.
    Applications Engineer

  • I have problem when transferring book (PDF/Epub) from Computer to iPad with the new iTune? Please Help....

    I have problem when transferring book (PDF/Epub) from Computer to iPad with the new iTune? Please Help....

    With iTunes 11 you can enable the left-hand sidebar via control-S on a PC, option-command-S on a Mac. If you are trying to get it to the iBooks app then with the sidebar enabled the process should be similar to how it was on previous versions of iTunes e.g. add it to your iTunes library via File > Add To Library, connect the iPad and select it on the left-hand sidebar, and then use the Books tab on the right-hand side to select and sync it to the iBooks app.

  • Problem when streaming with the CLI flash media encoder 2.5

    I have a problem when streaming with Flash Media Encoder 2.5. When I run the GUI, everything works, but when I use the commandline with the same profile I have created using the GUI, it says it can't connect to the server.
    I have to use this version of the encoder, because the other is not working with the server, and I have to create a program to remotely control the flash media encoder, so I have to use the CLI. What can i do to go over this problem?
    Any help would be really appreciated. Thankyou.

    First of all, thankyou.
    There is no authentication needed. I can't use Flash Live Media Encoder 3 because it is not supported by the people which manages the server i have to connect to.
    In fact, I don't know why they dont support it, but that is the way it is.
    Through the GUI, i connect directly and without problems, without user/pass.
    Thankyou again.

  • Unable to sync iMac address book with iPad. Can you please help?

    Unable to sync iMac address book with iPad. Can you please help?

    I have the same problem as Sheilaza but haven't been able to solve it using the advice offered.  The same problem applies to my Calendars. When I look at my iPad settings in iTunes, it says:
    Sync Contacts
    Your contacts are being synced with your iPad over the air from iCloud.
    Over-the-air sync settings can be changed on your iPad.
    and the same for Calendars.
    On the iPad, in iCloud settings, I have checked 'Contacts' and 'Calendars' as 'ON' but the Calendar remains blank and the Contacts are a very old version that was somehow created when I set up the iPad initially.
    Any ideas?
    Thanks.

  • HT204269 itunes showing 'backup is corrupt or not compatible with the firmware you restored'.Please help.

    itunes showing 'backup is corrupt or not compatible with the firmware you restored'.Please help.

    Hi Ckuan,
    Thanks a lot for your advice.    
    Deleting the correupted back up means to delete the information of one month since the last back up I made is one month ago.....right? 
    This back up I made right before I restored my iphone.  During the restore however my OS was upgraded to 5.1.1. and reading the comments on the internet it seems I am not the only one whom experience this problem. 
    Can it be that if I downgrade my OS back to 5.1. the back up will not be considered as corrupted?  If so, how do I downgrade the iphone?
    Thanks in advance.

  • Cannot install windows 7 on brand new mac mini with 256 g sdd? Please help.

    Cannot install windows 7 on brand new mac mini with 256 g sdd? Please help.
    Have tried all tricks found on the net and followed every advice from apple support.
    Still black screen with blinking curser when mini is rebooting following partitioning via bootcamp.
    Very nice and fast mashine, wouldnt like to return it.
    thanks allan

    Is that an Apple SSD?
    what model is it?
    Is there a firmware update if non Apple?
    Lion is not server version.
    Windows is ? ISO or retail?
    Google macmini Windows 7 SSD Apple Boot Camp

  • HT2953 i-tunes could not be used because the original file could not be found.could not locate.this error occurs on most of my songs in my library and will not play even though they are in my i-pod and play with no trouble.can  anyone please help?

    i-tunes could not be used because the original file could not be found.could not locate.this error occurs on most of my songs in my library and will not play even though they are in my i-pod and play with no trouble.can  anyone please help?

    I was not complete clear.
    Since you never changed the settings in the advanced section of iTunes preferecnes, you have to chech that your music is really in the location setted in the folders reported in the advanced section.  If not you have 2 ways: reset the position of this folders or in the actual disk organisation or in the pointing on the preferences.
    If you press the reset button you just give to itunes its default setting as for the position of the music files: probably this will be a good choice if you have never changed any default preference.
    But before I would check the folders and see if the songs are really there
    In my iTune I have this, and I believe it is the default.
    Users/YOURHOMEFOLDERNAME/Music/iTunes/iTunes Music

  • Hi, All. Iam using Adobe Document Cloud. After saving a pdf document to this cloud, I am able to see my PC folders . How to disable this? Does my PC folders are also available across other PC's to access them with my Adobe ID? Please help me. Thanks

    Hi, All. Iam using Adobe Document Cloud. After saving a pdf document to this cloud, I am able to see my PC folders as well with a browsing option  . How to disable this? Does my PC folders will  also available across other PC's to access them with my Adobe ID? Please help me. Thanks in advance.

    Hi indi68632954,
    I can understand your concern & you need to worry about this, as your PC folders won't be available on other PC's as this option is just to browse through the files of the specific system on which you are working as shown in the screenshot below.
    Only the files uploaded on the Document cloud will be available over Internet using Adobe Document Cloud service upon the authentication of your Adobe ID & password.
    I hope this will answer your query.
    In case if you have any further query please let us know, we will be happy to assist you.
    Regards,
    Aadesh

  • My iPad 2 won't receive text messages and is not sharing any data with my iPhone 4. Please help!

    My iPad 2 won't receive text messages and is not sharing any data with my iPhone 4. Please help!

    The iPad receives Text Messages through Apple's iMessage feature. Make sure this is turned on on your phone. Also, text messages received at your phone number are not shared with the iPad. Make sure that iMessage texts are being sent to your EMAIL ADDRESS

  • TS1424 err = 3150 - this issue has started recently and continues to persist with all of my downloads - please help

    err = 3150 - this issue has started recently and continues to persist with all of my downloads - please help

    Is it error 3150 or -3150 ? If -3150 then have you tried the troubleshooting for that error number on this page : http://support.apple.com/kb/TS3297 ?
    "Error -3150"
    This alert is often related to a lost connection to the iTunes Store.
    If you encounter this alert and you have verified you have a connection to the Internet using Wi-Fi, please review AirPort and Bluetooth: Potential sources of wireless interference.
    If the issue persists, and you're using iTunes for Windows, you may need to flush your DNS and remove pop-up or ad-blockers.
    Finally, this can occur due to timeouts caused by security software.

  • HT4882 hi apple it's kian ! i have mac book air with 10.7.2 version may keyboard light does'nt work with f5 and f6 ! please help me !

    hi apple it's kian ! i have mac book air with 10.7.2 version may keyboard light does'nt work with f5 and f6 ! please help me !

    Hello Kian,
    This may sound silly but if you put your hand over the isight camera, do the lights change on the keyboard?
    Ryan

  • I can't see the animations on the website or access most of the options when I log in.Works perfect with Internet explorer though! Please help

    I can't see the animations on this page (looks like a very small image) and when I log in can't access/see some of the options in the website . The page however works perfect with Internet explorer though! Please help identify the kind of plugin/add-on needed to make it work.

    If you're using it in bright light, you may be getting sunlight through the back of the machine which can wash out the display.  The Apple logo on the back of the lid is actually a cut-out that uses the systems back light to make it glow.  Bright light (especially sunlight) can actually shine through the back.  As the users in the login are typically in the middle of the display, this is the area most likely to be washed out as that is where the Apple logo is.  You can try just putting your hand over the Apple logo on the back to block the sunlight when trying to log in.

  • How can i download old settings with firefox sync ? i formatted my computer thinking that the data will be restore on login , but it's only letting my sync firefox with mobile device , can someonr please help my ?

    how can i download old settings with firefox sync ? i formatted my computer thinking that the data will be restore on login , but it's only letting my sync firefox with mobile device , can someonr please help my ?

    '''Did you backup whatever bookmarks you did have on the computer ? '''
    Remember any restoring of bookmarks overwrites whatever he current set is, and you may not want to loose them.
    Even if up until now you have not made any backups of Desktop bookmarks Firefox will have backed up some of them into sets of daily bookmark backups. Once you have backed up your current set you could look at what it has by restoring those bookmarks, you may find one of those sets is fairly complete.
    By the way if you look at the profile files and folders that you should now have on the desktop you should see it contains a bookmarks backup folder, the size of the files within should indicate whether they contain anything.
    You need to go into the bookmarks library and try the restore option. Backup each set that you look at if it has anything of use in it, before trying the next set. With look one of those will be a fairly complete set of bookmarks.
    * USE '''Show All Bookmarks -> Import and Backup -> Restore '''
    ** see [[Restore bookmarks from backup or move them to another computer#w_restoring-from-backups]]_restoring-from-backups
    I do not use Firefox on mobiles, but before you try anything further you do need to backup the desktop bookmarks and learn what existing backups you have. Unless you master that you are in continual danger of overwriting and loosing bookmarks.
    Presumably you have already found this listing of help articles for mobiles
    * [/products/mobile/bookmarks]

  • HT4972 i have updated my itunes but when im restoring my iphone 5 phone it keeps coming up with 'unknown error occurred (3) please help as i cannot even turn my phone on now

    i have updated my itunes but when im restoring my iphone 5 phone it keeps coming up with 'unknown error occurred (3) please help as i cannot even turn my phone on now

    Hello there, BundyA.
    Error 3 is usually associated to security software settings. The following Knowledge Base article provides some great information and links for troubleshooting the issue:
    Resolve specific iTunes update and restore errors
    http://support.apple.com/kb/ts3694
    This section should prove useful:
    Configure your security software
    Check your security software and settings, which can block ports and prevent connection to Apple servers during update and restore.
    Common errors: 2, 4, 6, 9, 1000, 1611, 9006, 9807, 9844. Sometimes as a result of this issue, a device might stop responding during the restore process.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

Maybe you are looking for