-xpg flag causes CC to drop core

The following causes the SunStudio C++ compiler to drop core. Is there any known work around?
$ cat >sunbug.cpp <<EOF
int main (int argc, char **argv)
return 0;
EOF
$ CC -xpg -o /tmp/a sunbug.cpp
Segmentation Fault (core dumped)
The rest of this post is additional information about the environment that might answer why I'm the first one to complain about this.
$ CC -V
CC: Sun C++ 5.9 SunOS_i386 2007/05/03
$ pkginfo -l SPROcpl
PKGINST: SPROcpl
NAME: Sun Studio 12 C++ Compiler
CATEGORY: application
ARCH: i386
VERSION: 12.0,REV=2007.05.03
BASEDIR: /opt
VENDOR: Sun Microsystems, Inc.
DESC: C++ Compiler
PSTAMP: 070503113802-18073-1d410062
INSTDATE: Jun 25 2008 16:13
HOTLINE: Please contact your local service provider
STATUS: completely installed
FILES: 99 installed pathnames
33 shared pathnames
37 directories
10 executables
18107 blocks used (approx)
$ uname -a
SunOS dev-auto4 5.10 Generic_127128-11 i86pc i386 i86pc
$ /opt/SUNWspro/bin/dbx /opt/SUNWspro/bin/CC core
For information about new features see `help changes'
To remove this message, put `dbxenv suppress_startup_message 7.6' in your .dbxrc
Reading CC
core file header read successfully
Reading ld.so.1
Reading libnsl.so.1
Reading libsocket.so.1
Reading libdl.so.1
Reading libintl.so.1
Reading libc.so.1
Reading en_US.ISO8859-1.so.3
program terminated by signal SEGV (no mapping at the fault address)
0xfee1578c: strlen+0x000c: movl (%eax),%edx
(dbx) where
=>[1] strlen(0x0), at 0xfee1578c
[2] _ndoprnt(0x807f7f9, 0x8045ac8, 0x8045aa0, 0x0), at 0xfee6d976
[3] sprintf(0x8045ae0), at 0xfee707d1
[4] add_library_search_path(0x646c7a2d, 0x2d3d3233, 0x6d742f53, 0x696c2f70, 0x61625f62, 0x6c5f6573), at 0x806b320
[5] setup_ld(0x0, 0x8046330, 0x0, 0x806e4e6), at 0x80637b7
[6] original_setup_ld_for_CC(0x80a90a4, 0x80a90a4, 0x80474e8, 0x8060b3f), at 0x806e9ee
[7] run_steps(0x80a90a4, 0x80a2af0, 0x0, 0x80a90a0), at 0x8060d52
[8] driver_doit(0x8047a54, 0x8047a58), at 0x806f274
[9] main(0x0, 0x8047ac4, 0x8047ad8, 0xfeffb818), at 0x805e2fe
$ env | grep -v `whoami`
LC_MONETARY=en_US.ISO8859-1
HOST=dev-auto4
TERM=xterm
SHELL=/usr/bin/bash
HISTSIZE=2000
LC_NUMERIC=en_US.ISO8859-1
SSH_TTY=/dev/pts/1
LD_LIBRARY_PATH=/app/oracle/product/10.2/lib
BASH_PROFILE_LOADED=1
PAGER=/usr/local/bin/less
PATH=:/usr/xpg6/bin:/usr/xpg4/bin:/usr/ccs/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/usr/sfw/bin:/opt/sfw/bin
LC_MESSAGES=C
LC_COLLATE=en_US.ISO8859-1
TZ=US/Eastern
PS1=S.\h:\W$
SHLVL=1
SSH_CONNECTION=10.131.29.46 57598 10.131.7.10 22
LC_CTYPE=en_US.ISO8859-1
DISPLAY=localhost:10.0
ORACLE_HOME=/app/oracle/product/10.2
_=/usr/xpg4/bin/env

I can reproduce your problem using the original release of Sun Studio 12, which is what you have.
The current patched version does not have the problem. Please download and install the current Sun Studio patches here:
[http://developers.sun.com/sunstudio/downloads/patches/]
It's generally best to install patches for all the components you use.
At a minimum, get the C, C++, and Compiler Common patches.

Similar Messages

  • Reader causing issues with dropped underscores in courier new font

    When converting a microsoft word document in 2013 or 2007 to a PDF is causing issues with dropped underscores.  It only seems to happen in courier new.  For instance if I have _someCode, when converting this over to a PDF file I will sometimes see _someCode and sometimes I will see someCode.  If I open this file in a different pdf reader then it looks correct 100% of the time.  If I copy and paste into another application then the underscore shows.  This is a major issue for people putting code into a PDF document as underscores are important and courier new is what we often use.

    I love how quick you are to throw Microsoft under the bus.  Often it is their fault.  In this case I believe you are 100% wrong and absolutely short sighted to ignore this.  As I said in my original email, which you apparently missed, I have tried this in multiple PDF viewers and Adobe Reader is the ONLY reader that misses the underscores.  Foxit, PDF Exchange and Sumatra all render it perfectly.  Adobe reader missed 6 underscores in my document that has 18 underscores.  30% of the time in this document Adobe Reader makes the underscore invisible.  And if I switch the zoom to 100% instead of 148% (which is the default for me for some reason) then Adobe Reader misses 7 of them.  This doesnt occur in the other readers.  Blame Microsoft all you want but the simple fact is that Adobe Reader has issues reading courier new's underscores.  It needs to be fixed.

  • Time Machine Causes MacBook to Drop Wireless Connection

    Recently I started having tons of problems with my wireless connections (dropping after a few minutes, unable to reestablish)
    The fix was to turn off Time Machine.
    Help! How can I use time machine on my computer without it causing me to lose my wireless connections!
    This affects my computer no matter what network I am on. As soon as Time Machine starts the backup I lose the connection to the wireless router.

    Recently I started having tons of problems with my wireless connections (dropping after a few minutes, unable to reestablish)
    The fix was to turn off Time Machine.
    Help! How can I use time machine on my computer without it causing me to lose my wireless connections!
    This affects my computer no matter what network I am on. As soon as Time Machine starts the backup I lose the connection to the wireless router.

  • ExecuteOutOfProcess Flag causes Execution Error

    Hello guys,
    I have a problem with calling other Packages from my SSIS 2012 Package "Main.dtsx". I have an "Execute Package Task" in Main which calls "MyPackage.dtsx".
    If the ExecuteOutOfProcess Flag is set to "False" everything works fine. When I switch to "True" I get the following error:
    Error: 0xC0202009 at Any Component, MyPackage Destination [337]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004002.
    Error: 0xC0202040 at Any Component, MyPackage Destination [337]: Failed to open a fastload rowset for "[SCHEMA].[TABLE]". Check that the object exists in the database.
    Error: 0xC004706B at Any Component, SSIS.Pipeline: "MyPackage Destination" failed validation and returned validation status "VS_ISBROKEN".
    Error: 0xC004700C at Any Component, SSIS.Pipeline: One or more component failed validation.
    Error: 0xC0024107 at Any Component: There were errors during task validation.
    Error: 0xC0022102 at Execute MyPackage: Error 0xC0012050 while executing package from project reference package "MyPackage.dtsx". Package failed validation from the ExecutePackage task. The package cannot run.
    The strange thing is that I could not see any difference in SQL Server Profiler in both cases. All statements against my SQL Server 2012 Database are executed as my own user which is "sa". Do you have any idea what's causing this problem? Best
    wishes, Manuel
    University of Applied Sciences of Eastern Switzerland (Rapperswil) | Microsoft Innovation Center Rapperswil

    Hi Manuel,
    If the ExecuteOutOfProcess Property of Execute Package Task sets to true, then the child package will run in a separate process from the Execute Package Task. If it sets to false, the package invoked by the Execute Package Task runs in the same process.
    The default value is false.
    So when switch the value to true, we can get the error message. To fix this issue, please set DelayValidation=FALSE at the package level and to set DelayValidation=TRUE for all the tasks in the child package.
    The following similar thread is for your reference:
    https://social.msdn.microsoft.com/Forums/en-US/43c84491-66f8-4a61-bd97-54a824d56be7/error-using-execute-package-task
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Photos go to opposite ends of the timeline when flagging, causing me to lose my place

    Hey everyone,
    I'm using 5.4 and whenever I flag a photo (as 'Pick' or 'reject') it puts them at either end of my timeline, and instantly jumps me there. This causes me to lose my place, and I'm editing about 1800 photos from a concert so you can imagine how annyoing this is.
    I've looked online for a solution, and gone through menu trees, but I can't find anything
    Thanks y'all

    Change your sort order to something else than what you have it set as.

  • Addition of third computer in network causes router to drop internet connection (is the problem Dropbox???)

    This is not specifically about MacBook Pros, per se, but since all of the communities are based on specific products, I chose it since it applies to two of the devices concerned.
    We have a LINKSYS WRT54G router in our home connected to cable internet.
    We normally run a number of iOS devices on it at any given time (iPhone 5, iPhone 4s, iPhone 4, two iPad 2nd gen., one iPad Mini with Retina), and almost at all times, an Intel MacBook Pro on 10.6. We sometimes also have an Intel MacBook (black) on 10.6. These all live in harmony just fine. Both laptops have Dropbox on them, but signed in on different user accounts.
    I used to have someone working at my house quite often on an Intel MacBook Pro on 10.7, also using Dropbox (but signed into a unique account). Whenever she had her computer on in our house, it would often cause the network to just drop the internet connection suddenly. The network would still have a strong signal, internet just wouldn't work.
    We never quite figured it out. We had to reset the router constantly. It was NOT the modem -- you could reset just the router and the results were the same as if you had reset the modem. I didn't pursue a fix since she has since stopped working here.
    Recently we just added an Intel iMac on 10.6 to the house, and it is doing the same thing. The only difference is this time, it's logged into the same Dropbox account as my MacBook Pro. At first, it seemed as if there was an issue if both were trying to update at the same time. When I paused syncing on one computer or throttled the upload/download bandwidth, it seemed to get better. However, lately, I am not syncing any large files -- or any files at all, it seems, sometimes -- and I also kept one machine on throttled connections, while a THIRD machine is even off completely...and it's still kicking the internet connection off.
    Any ideas? I'm getting really tired of re-setting it every so often.
    Thank you!

    Also, there are no other networks we pick up here. Sometimes, we randomly get the neighbor's, but it's protected and we don't ever join it.
    Try the basics first:
       Change your router channel number.  Most times this works & is all you have to do.
    Disconnect & reconnect your modem.  unplug it for about 10 seconds.  Plug it back in.  Do the same for Apple’s routers.  Wait for everything to reboot.
    System Preferences>Network
    Click the Assist Me button.
    In the next window that pops up, click the Diagnostic button & do the necessary.
    Research Knowledge Base for network problems that pertain to the OS that is currently installed on your computer.   See these basic networking KB Articles:  http://support.apple.com/kb/HT1401 AirPort troubleshooting guide
    http://support.apple.com/kb/HT4628  Wi-Fi: How to troubleshoot Wi-Fi connectivity
    http://support.apple.com/kb/HT2712 Using network locations in Mac OS X
    Manually provided DNS server addresses are higher priority than DHCP's
    http://support.apple.com/kb/HT1714 Solutions for connecting to the Internet, setting up a small network, and troubleshooting
    ============================
    What to do when you can't connect to the Internet
    Also, run the Airport Utility app which is located inside the Utilities folder.
    =====================
    If using a  Linksys router, contact LinkSys Customer Support and/or post in their forums.
    If using Apple's Airport, please re-post over in one of the AirPort Forums.

  • 7344 Motion board stop command causing system to drop

    I have a hydrolic system(in closed loop mode) controlled by a 7344s analog output.
    a value changes depending on the voltage from the 7344:
    positive voltage lets water into the system
    negative voltage lets water out of the system.
    due to the design of the system, water has to be constintly fed into it to hold position.
    Now if I call a stop command while holding position(encoder counts are not moving) the voltage drops to zero before going back to its previous value(1-1.5v) only issue is that the system drops until the voltage gets back up.
    In contrast, a halt stop is immediate and abrupt. The target position is set to the position of the axis at the moment the VI is executed. On servo axes, full torque is applied to stop the motor(s) as quickly as possible. On stepper axes, the step pulses are immediately ceased.
    I am using a halt stop(1) would a decelerate stop(0) be better for this application?

    The behavior you are describing sounds like the response of a halt stop when a following error exists in a closed loop stepper.  When a halt stop is performed on an axis the following error is cleared and the holding force on the motor is removed.  This is a known issure for NI-Motion drivers prior to 7.2, and is fixed in that release.  You can download the NI-Motion 7.2 driver here:
    NI-Motion Version 7.2 for Windows 2000/XP
    http://digital.ni.com/softlib.nsf/websearch/a38d3ad4a8b0f200862570f100758773
    S. Arves S.
    National Instruments
    Applications Engineer

  • Upload causes Broadband to drop out

    Hi
    I have Business Broadband and recently the connection seems to drop out 6-7 times each day. I seem to have no luck with having BT investigate as it seems that as long as the connection comes back after turning the router on and off again (it does), then in BT's eyes you don't have a problem.
    I have done my best to find patterns and I have found that it always happens when we are in the middle of a large file upload and then *any* download activity will kill the entire connection. Sometimes it recovers but in most cases I have to reset the router to get  the connection back.
    I have bt broadband at home and have never experienced anything like this. Its just solid for weeks on end.
    Has anyone else experienced a similar problem or would like to offer any clues why its happening? The frustrating BT support staff flow chart of Line Test->Reset Router->"Anything else i can do for you sir?" doesn't seem to cater for my problem hence my posting to this forum.
    Thanks in advance for any advice.
    Regards
    Ian

    welcome the forum
    however as this is a forum for BT residential customers you really need to post your problem on the business forum  http://business.forums.bt.com/   sorry
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • 1.1.3 causing phone freeze, dropped calls, bluetooth sync problems

    Hello,
    I upgraded to 1.1.3 a couple days ago and have had the following problems since.
    1) The phone locked up / froze. I was switching applications and the screen went to half brightness and the phone would not respond. Could not power off, could not get home button to react, nothing. Was sitting down at PC to search for how to reset when the phone just "came back". This is a bit annoying and has happened a couple times.
    2) I have the bluetooth integration in my car. It's worked flawlessly since I got the car and set it up. Not one hiccup. Get in the car and voila. As of 1.1.3 the car had a tough time finding the phone. The phone said it was "paired". Took the car a while to see the phone and be able to use it.
    3) The phone has dropped 4 calls in the past day. All dropped suddenly with no warning in a place where I always am able to have clear, long calls.
    Is anyone else having trouble with this? The new features are great but the phone is starting to really be annoying and "PC" like in its flakiness.

    Same issue. Found a solution that worked for me:
    http://www.iphoneatlas.com/2008/01/17/fix-for-iphone-113-bluetooth-problems/
    They gave 3 possible solutions. The only one that worked for me was the following:
    Connect your iPhone to your Mac or PC then press the “Restore” button in iTunes. When prompted, choose the option “Set up as new iPhone.” Once the phone has been restored, re-attempt pairing with the problematic Bluetooth device. Unfortunately, this solution will result in the erasure of some custom settings on the phone.
    Good luck

  • Flash CC - Rotation on movieclip containing bitmap causes dramatical framerate drop

    I have a 850x850 bitmap inside a movieclip which must constantly rotate like a big wheel. When compiling for iOS the framerate drops from 24 to 8.
    Is there a way to increase performance without using cacheAsBitmapMatrix and without rotating the bitmap inside the movieclip but the whole movieclip itself?

    @Amy: Clever trick to solve the file size vs. performance problem. But I doubt it will get you far on a mobile platform with a 850x850 texture.
    Anyway at this point its not much not use to advise further without the big picture.
    If you`re serious about making a commercial game with Flash/AIR for iOSyou won`t be able to avoid stage3D
    http://wiki.starling-framework.org/manual/performance_optimization

  • WRT54GS causing PPPoE to drop on DSL Modem?

    ATT DSL modem RANDOMLY drops Internet light (PPPoE session) and must be power cycled to recover.���  This has been��� consistent since April until yesterday.��  Modem set to SMART STAY ALIVE for PPPoE session.
    ���� 
    1. Replaced Motorola MSTATEA modem TWICE on suspicion.����  Modem set to handle PPPoE session.����  Drops Internet light randomly while router lights appear normal.
    ���� 
    2. ATT tech. tested CO to premise and from NID to wall jack as GOOD - no errors no noise.����  All passed with high marks.
    ���� 
    3. Linksys WRT54GS V4 router appears OK as all lights are on -����  yesterday for first time the modem lights were all on proper and the router would not allow connection.����  Router lights all on normal.����  Had to power cycle router twice to get access.
    ���� 
    This has been happening since April.����  I am going to replace the router on suspicion only since all else is tested or new.���� 
    ���� 
    We are able to keep connection for hours or days or weeks before losing PPPoE session and MUST power cycle modem to recover.���� 
    ���� 
    Note: during one drop in PPPoE on modem: I reviewed technician readout and saw SNRM Rx @ -4.0 while Tx was 21.����  When ATT was there they were both 10 or better - good.
    ���� 
    I have read over and over that WRT54GS v.2 was the last very good GS model and subsequent models have problems.���� Any feedback on this?
    ���� 
    What else can I provide here to help diagnose this?����  Getting a bit desparate as my customer is losing patience AND money.���� 
    ���� 
    Thank you,
    Larry

     Access the setup page of the router by launching an
    Browser and type on the address bar, 192.168.1.1 and press enter. When
    it prompts for the username and password, leave the username field
    empty and provide password as "admin" (Without quotes)
    click on ok.
    On the main setup page the ""Internet Connection Type"" should be
    on ""Obtain IP Automatically - DHCP “. Click on the Save Settings
    button.
    Now click on the sub tab ""MAC address clone"".
    - Click on enable
    Click Clone & click save settings
    Check WAN Ip on Status page of router ....
    If getting Valid Ip .... try going online
    If you are getting Ip - 192.168.1.X ...change the LAN Ip to 192.168.2.1 ....Power cycle for 3-4 minutes ...
    Try going online
    If still not working ...use Internet Connection type as PPPOE .... Use Username & Password provided by Service Provider ....
    Click save settings....
    Look for WAN IP address again under status page ...

  • Ethernet Between Extreme and Time Capsule Causes TC to drop off network.

    This stumped Apple Support:
    Set up. 
    Basement (where service enters the home):
    CABLE MODEM ===> AIRPORT EXTREME (router and wifi) I have my Directv SWM Ethernet connected here.
    I have an Ethernet cable run from here to my upstairs office.
    Upstairs Office:
    TIME CAPSULE ===> Ethernet to each of three IMACs (which back up to the TC)
    Various AP Express for music and wireless extenders.
    Here is my issue. All of the components work perfect when the AP Extreme, TC, and AP Express(es) are on WIFI.
    When I try to connect the TC to the Extreme over Ethernet the TC drops off the network.
    (This happens with or without the Directv connected)
    This is frustrating because I hate losing the speed to my imac's by using wifi vs. Ethernet.
    Any help would be appreciated.

    Close AirPort Utility if it is open.
    With the TC powered on, hold in the reset button on the back of the TC for 9-10 seconds and then release. Allow a full minute for the TC to restart to a slow, blinking amber light.
    Connect the Ethernet cable (I assume that you have already tested to make sure that it is working correctly) to the WAN "O" port on the TC.
    Click the AirPort icon at the top of the screen and wait a minute for a listing of New AirPort Base Station to appear. Just below that, click directly on Time Capsule.
    (The example below shows an AirPort Express. You will see Time Capsule instead of AirPort Express)
    AirPort Setup will open automatically and take a minute to analzye the network, then announce that the TC will be configured to "extend" the network.
    Enter a device name that you want to use for the Time Capsule and click Next
    You should now see a message that the TC is being configured to "extend" the network "using Ethernet"
    Wait another minute. When you see the messge of Setup Complete, click Done.   That's it.

  • EXTENDED BATTERY ON BIONIC (MAYBE) CAUSING MY DATA DROPS

    I TOOK OFF MY EXTENDED BATTERY THAT I BOUGHT WITH MY BIONIC FROM A CORPORATE VERIZON STORE AND PUT BACK THE ORIGINAL BATTERY AND NOW MY SIGNAL HAS IMPROVED DRAMATICALLY...NOW IM NOT SAYING THIS IS THE CAUSE (BUT) COULD BE ONE OF MANY CAUSES!!!! WELL TEST IT THIS WEEKEND AND WILL REPLY WITH WHAT I EXPERIENCED.....
    THNX

    Now thats a unique one, if you had the Thunderbolt I would understand because the antanna connectors in on the battery door and if they dont connect the corect way I can easily see this but your device isnt designed this way...  Interresting please keep updated...

  • IPhone 4 Causing WiFi to drop

    Every time I connect my iPhone 4 to my WIFI network at home it drops. it dosent happen right away, sometimes it take an hour or two. The network has 2 MacBook Pros iPhone 3gs and iPhone 4 and a PC.
    a Quick power cycle of the router will fix this, lately I have jus kept the wifi off on the iPhone, I have also reset the network settings on the iPhone and still no change. Using a netgear router with the latest firmware. Any thoughts?... Thanks

    I had a similar problem about 6 months ago. What I did was changed the password authentication from WPA to WPA2 in the router itself, which has worked since, without any problems.
    Good Luck!

  • 10.7.4 caused massive performance drop

    Since updating, my computer is barely usable. Geekbench score fell from ~5400 to ~ 2300, so it's not just my imagination. I was exporting video and the processor didn't even feel warm, but Activity Monitor reported that it was giving it all the power it had. Anybody else seen this? I'm on a 13" mid 2011 Air with the i7 nad 256GB SSD.

    Ran the 32-bit tests and mine went from 5838 (pre-upgrade) to 5880 (post upgrade). Have you got everything else shut down when running the benchmarks?

Maybe you are looking for