Stlport4 cout.setf(ios::fixed, ios::floatfield) causes SEGV on big values

We are trying to compile & run the following simple program with Studio 11 using the stlport4 libraries. It works without the stlport4 libraries but we have performance problems with the other libraries.
The compiler patches 120760-01 and 121017-01 have been applied.
The Solaris 10 version is 01/06. All the free patches are applied to Solaris 10.
CC -library=stlport4 -obug bug.cc
#include <iostream>
#include <values.h>
using namespace std;
int
main(int argc, char **argv)
        cout.setf(ios::fixed, ios::floatfield);
        cout << MAXDOUBLE << endl;
The problem also occurred on Solaris 9 with Studio 10.
$ ./bug
Segmentation Fault - core dumped
$ mdb bug core
Loading modules: [ libc.so.1 ld.so.1 ]
$Cffbff828 libstlport.so.1`__1cDstdU__format_float_fixed6Fpcpkciibiib_v_+0xd8(c7cdcfc9, ffbff9b3, 35383633, 38323037, 31, 1048)
ffbff890 libstlport.so.1`__1cDstdO__format_float4Cd_6FpcpkciiTAiib_v_+0xec(ffbffa60, ffbff990, 35383633, 35383935, 7fefffff, 38323037)
ffbff908 libstlport.so.1`__1cDstdN__write_float6Fpciid_1_+0x170(ffbffa60, 1048,6, 7fefffff, ffffffff, 0)
ffbff9f0 libstlport.so.1`__1cDstdP_M_do_put_float4Ccn0ATostreambuf_iterator4Ccn0ALchar_traits4Cc____Cd_6FTBrn0AIios_base_TATC_1_+0x18(36383839, 34363431, 38323736,38343637, 35343637, 30333533)

And here are the results with Sun Studio 9
CC: Sun C++ 5.6 Patch 117549-04 2005/10/11
./bugg
Segmentation Fault(coredump)
Actually doing this gives coredump ...
cout << ( 99999999999999999999999999999999999999999999999999999999999999
999999999999999999999.0 ) << endl;And this gives a negative output
cout << ( 99999999999999999999999999999999999999999999999999999999999999
99999999999999999999.0 ) << endl;-9999999999999999634067965630886574200000000000000000000000000000000000000000000000.000000
/Lars

Similar Messages

  • Download of 8.2 ios on iPhone 5s caused phone to lock up with iTunes icon and cable icon on screen .Will not reboot. What is fix.

    Download of 8.2 ios on iPhone 5s caused phone to lock up
    with iTunes icon and cable icon on screen .Will not reboot. How to fix?

    Hello jh901,
    After reviewing your post, it sounds like you have not been able to update the iPhone. I would recommend that you read this article, it may be able to help the issue.
    If you can't update or restore your iPhone, iPad, or iPod touch - Apple Support
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • Ive got this problem with itouch 4th gen when im trying to upgrade my ios to ios 6.1.3 when it is verifying it suddenly shutdown and it keeos on blinking with the logo and i cannot open it...what is the main cause of thst..tnx

    ive got this problem with itouch 4th gen when im trying to upgrade my ios to ios 6.1.3 when it is verifying it suddenly shutdown and it keeos on blinking with the logo and i cannot open it...what is the main cause of thst..tnx

    - Reboot the computer
    - Try DFU mode and then restore/update
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - Delete the update file so that new one has to be download.
    IPSW file location for Mac and Windows
    - Try on another computer to help determine if you have an iPod or computer problem.

  • Apple, can you say why do you like to "kill" old iPhones??? i'am dissapointed. Please, fix IOS 8 on iPhone 4s and provide ability to have IOS 6 on iPhone 4. IOS 7 and 8 are awful laggy IOS versions on this devices.

    Apple, can you say why do you like to "kill" old iPhones??? i'am dissapointed. Please, fix IOS 8 on iPhone 4s and provide ability to have IOS 6 on iPhone 4. IOS 7 and 8 are awful laggy IOS versions on this devices.

    This is a user-to-user support forum. We are other Apple users. You can provide feedback to Apple at https://www.apple.com/feedback/iphone.html

  • HT201393 how can I fix IOS 10.6.8. if vulnerable ?

    How can I fix IOS 10.6.8. if vulnerable to shellshock ?

    Further to the above, there is a possible fix posted on Macintouch: go to
    http://www.macintouch.com/readerreports/security/index.html#d01oct2014
    and scroll up to the last post on 30 September, from Jim Weisbin. See also the posts at the bottom of the page he links to,
    http://apple.stackexchange.com/questions/146849/how-do-i-recompile-bash-to-avoid -shellshock-the-remote-exploit-cve-2014-6271-an/146851
    Disclaimer: all this is outside my technical knowledge and I pass this on for information only. I can't offer any comment on its suitability; use at your own risk.

  • My iphone wont download the bug fix ios 8.0.2

    my iphone wont allow me to download bug fix ios 8.0.2 update

    What happened when you try?
    If you want to update directly from your iPhone, you need to plug into the power supply. and iPhone connected to the Internet using Wi-Fi.

  • TS3694 I could not upadate ipad 4 to ios 6.1.3 cause error occurred 3194.Please help me.Thanks

    I could not upadate ipad 4 to ios 6.1.3 cause error occurred 3194.Please help me.Thanks

    The article you attached above addresses what you should do:
    Error 1004, 1013, 1638, 3014, 3194: These errors may be the result of the connection to gs.apple.com being redirected or blocked. Follow these steps to resolve these errors:
    Install the latest version of iTunes.
    Check security software. Ensure that communication to gs.apple.com is allowed. Follow this article for assistance with security software. iTunes for Windows: Troubleshooting security software issues.
    Check the hosts file. The restore will fail if there is an active entry to redirect gs.apple.com. FollowiTunes: Advanced iTunes Store troubleshooting to edit the hosts file or revert to a default hosts file. See section "Blocked by configuration: (Mac OS X/Windows) > Rebuild network information".
    Try to restore from another known-good computer and network.
    If the errors persist on another computer, the device may need service.
    Is your iPad hacked or jailbroken?  This error can show up in a hacked or jailbroken iPad.

  • Hi. I've got iPhone 5 64 Gb, and since I upgraded my iOS to iOS 7 I've got some problems as: iPhone stuck, suddenly exiting from  apps and the worst - randomly resting my iPhone... What happen to my phone? How can I fix this soon as possible?

    Hi. I've got iPhone 5 64 Gb, and since I upgraded my iOS to iOS 7 I've got some problems as: iPhone stuck, suddenly exiting from  apps and the worst - randomly resting my iPhone... What happen to my phone? How can I fix this soon as possible?

    basic troubleshooting
    Reset
    Restore with back up
    Rstore as new
    all as required and as described in User guide

  • Anyone else having trouble finding/staying connected to the internet after the latest iOS fix?

    Since the new patch came out for the iOS my ipad will not stay connected to wifi.  This happens at home and work.  Half of the time it will not even find my wifi.  I turn it off completely and reboot, sometimes it finds and connects, sometimes it does not.  This issue has been happening every since I updated the lates iOS fix on my ipad.  It does not happen to any other iPad or iPhone in the house...just my iPad2.  Help...:)

    Try resetting the device (hold the home and power keys down until the Apple logo appears).
    Barry

  • How to fix iOS 7.0.2 dictionary (define) function?

    Hi there,
    I have installed iOS 7.0.2 to my iPad Mini, but dictionary is not working anymore at iBooks and other apps.
    Actually I have downloaded some of the dictionaries from MANAGE section, but after touching several times to X bottom, all dictionaries just freezed and not working anymore.
    I think, "Apple should hasten to fix iOS 7 dictionary function"!!!!
    Could anybody know how to fix this problem?  Please share your experience.....
    thanks in advance,

    (A) Reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.
    (B) Reset all settings
    Settings>General>Reset>Reset all settings
    Note: Data will not be affected but settings will be reset.

  • Is there an iOS fix coming for home button issue

    Is there an iOS fix for the home button losing sensitivity ?   I have already done a reset, and the rue calibration procedure using power button and home button

    Home button not working or unresponsive, fix
    http://appletoolbox.com/2013/04/home-button-not-working-or-unresponsive-fix/
    Fixing an iPad Home Button
    http://tinyurl.com/om6rd6u
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
     Cheers, Tom

  • Music Application in iOS 5 / iOS 5.0.1

    Music Application in iOS 5 / iOS 5.0.1
    you choose a particular song!
    pplications and the other play or not play music!
    or you click pause and resume several times!
    or is without music!
    It happened to someone?
    thank you

    Yep that's a good idea. I gave my feedback to Apple to tell them, that It is very bad that the lyrics are not shown anymore in the iOS  5 Music App.
    CALL TO EVERYONE WHO THINKS THE SAME WAY: Submit your Feedback to Apple and tell them to fix this! The more people will do it, the better it is.  Hopefully that will help.
    Submit it here:
    http://www.apple.com/feedback/ipad.html

  • I understand that your iPhone 5 is not recognized by iTunes 11.2 on Windows 8 pc after you updated your device iOS to iOS 7.1.1.

    iPhone 5 is not recognized by iTunes 11.2 on  Windows 8 pc after you updated your device iOS to iOS 7.1.1.

    Hi calltimecasting,
    Welcome to the Apple Support Communities! If your iPhone is not recognized by iTunes on Windows 8, I suggest the steps in the following article to get this resolved.
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/ts1538
    I hope this helps,  
    -Joe

  • I just updated my iPhone 4s iOS to iOS 8 and but can no longer find personal hotspot, How and where can I find it on my iPhone 4s

    I just updated my iPhone 4s iOS to iOS 8 and but can no longer find personal hotspot, How and where can I find it on my iPhone 4s.
    Usually I share my internet with other device with ios7 but now that I have ios8 on my iPhone 4s I can no longer find the personal hotspot. How can I share internet with other device using ios8 on my iPhone 4s?
    THanks

    Settings>Cellular>Personal Hotspot. The carrier has to support this for you. This is where you should find the setting to turn it on or off.

  • If you mean you are having trouble activating your iPhone after  updating to iOS 6:  iOS 6.0.1  Generally this is a sign that the iPhone had previously been  hacked/modified/jailbroken and the update relocked it to the  original wireless carrier. If this

    If you mean you are having trouble activating your iPhone after
    updating to iOS 6:
    iOS 6.0.1
    Generally this is a sign that the iPhone had previously been
    hacked/modified/jailbroken and the update relocked it to the
    original wireless carrier. If this is the case, only that wireless
    carrier can unlock your iPhone. You must contact them to see
    if they offer unlocking and if you qualify.
    My phone is from USA and unlocked version and I paid 750 USD.
    Where did you acquire this iPhone?
    USA
    What wireless carrier did you use before this problem?
    I used BSNL - India previously. After I get problem, I used Mobily -Saudi Arabia again I got problem and I am trying to use Airtel - India.
    Does the app Cydia appear on your iPhone?
    What does It mean?
    What does it say when you look at Settings=>General=>About=>Carrier?
    Airtel 13.0

    It would be better for troubleshhoting if you posted back to your original question.... here

Maybe you are looking for

  • IPOD not reconized by windows, nor iTunes

    My iPod is blocked, following password mismatch 3 times.... I tried to connect to iTunes, and always asking for password to open the iPOD. Connected to iTunes, unable to restore, as not reconized by both Windows and iTunes. Any idea how to solve this

  • RTE Rich Text Editor

    Hi Guys, Anyone aware of a stable RTE Rich Text Editor code that can be included in a record update page? I need to have a RTE that allows for multiple fields. Most only seem to allow for one field and do not work well with ASP code and their Javascr

  • Exception when running CO11N by BDC in SAP Workflow

    Hi all, We have designed a SAP workflow and all is OK. But in a step of this workflow, we have run CO11N with BDC and we got a RAISE_EXCEPTION (message type: A, message ID: 00, message number: 342, message text: Runtime error & has occurred). So we c

  • Dirty reads vs phantom reads

    Hi, What is the difference between a "Dirty Read" and "Phantom Reads". Can anyone explain in brief or give an example? Thanks in advance.

  • 24FPS to 25FPS TELECINE WORKFLOW

    Hey there - Just a quick check, If I were to have 24fps Film material telecined to 25fps DV CAM PAL tapes is the correct workflow the following - 1. Import a log file into FCP or Cinema tools and create a new database 2. Create a batch capture list 3