Private nullref symbol in 5.6 but not with 5.5 C++ compiler

We try to use the libmtmalloc.so library with our project using LD_PRELOAD_32 environment variable:
export LD_PRELOAD_32=/usr/lib/libmtmalloc.so.1This library provides advanced memory management and memory debugging features.
We have two Solaris machines named ‘earth2’ and ‘mars’. ‘earth2’ has “CC: Sun C++ 5.6” compiler, while ‘mars’ has an older version “CC: Sun C++ 5.5”.
If we build our application on ‘earth2’ and load it with libmtmalloc.so library, it crashes inside heap memory management functions invoked from std::basic_string methods. The same application built on ‘mars’ machine runs without problems. It seems that the reason of the crash is a visibility of std::basic_string::__nullref symbol generated differently by each version of compiler. The following little code sample demonstrates the problem
main.cpp
=======
#include <string>
int main()
       std::string strA = "";
       std::string strB = "aaa";
       strA = strB;
      return 0;
}If we build this sample on both machines, we can see that each compiler provides a different visibility of std::basic_string::__nullref symbol.
On ‘earth2’ machine
===============
hsbld33BM@earth2 $ CC -V
CC: Sun C++ 5.6 2004/07/15
hsbld33BM@earth2 $ CC -v main.cpp
hsbld33BM@earth2 $ elfdump -s -C a.out | grep nullref
[3] 0x00021720 0x00000030 OBJT WEAK D 0 .data std::basic_string<char,std::char_traits<char>,std::allocator<char> >::__nullref
[13] 0x00021718 0x00000004 OBJT WEAK D 0 .data std::basic_string<char,std::char_traits<char>,std::allocator<char> >::__i_ctl___nullref
[56] 0x00021720 0x00000030 OBJT WEAK D 0 .data std::basic_string<char,std::char_traits<char>,std::allocator<char> >::__nullref
[66] 0x00021718 0x00000004 OBJT WEAK D 0 .data std::basic_string<char,std::char_traits<char>,std::allocator<char> >::__i_ctl___nullref
On ‘mars’ machine
==============
hsbld33BM@mars $ CC –V
CC: Sun C++ 5.5 2003/03/12
hsbld33BM@mars $ CC -v main.cpp
### command line files and options (expanded):
### -v main.cpp
### CC: Note: NLSPATH = /opt/SUNWspro/prod/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/opt/SUNWspro/prod/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat
/opt/SUNWspro/prod/bin/ccfe -y-o -ymain.o -y-fbe -y/opt/SUNWspro/prod/bin/fbe -y-xarch=generic -y-verbose -O0 -ptf /tmp/29641%1.%2 -ptx /opt/SUNWspro/prod/bin/CC -ptk "-v -xs " -D__SunOS_5_9 -D__SUNPRO_CC=0x550 -Dunix -Dsun -Dsparc -D__sparc -D__unix -D__sun -D__BUILTIN_VA_ARG_INCR -D__SVR4 -D__SUNPRO_CC_COMPAT=5 -xdbggen=no%dwarf2+stabs -y-s -xdbggen=incl -y-xmemalign=4s -I-xbuiltin -xldscope=global -instlib=/opt/SUNWspro/prod/lib/libCstd.a -I/opt/SUNWspro/prod/include/CC/Cstd -I/opt/SUNWspro/prod/include/CC -I/opt/SUNWspro/prod/include/CC/rw7 -I/opt/SUNWspro/prod/include/cc -D__SUN_PREFETCH -xcomdat -y-comdat main.cpp -s /tmp/ccfe.29641.0.s >&/tmp/ccfe.29641.1.err
rm /tmp/ccfe.29641.0.s
### CC: Note: LD_LIBRARY_PATH = (null)
### CC: Note: LD_RUN_PATH = (null)
### CC: Note: LD_OPTIONS = (null)
/usr/ccs/bin/ld -u __1cH__CimplKcplus_init6F_v_ -zld32=-S/opt/SUNWspro/prod/lib/libldstab_ws.so -zld64=-S/opt/SUNWspro/prod/lib/v9/libldstab_ws.so -zld32=-S/opt/SUNWspro/prod/lib/libCCexcept.so.1 -zld64=-S/opt/SUNWspro/prod/lib/v9/libCCexcept.so.1 -R/opt/SUNWspro/lib/rw7:/opt/SUNWspro/lib:/usr/ccs/lib:/usr/lib -o a.out /opt/SUNWspro/prod/lib/crti.o /opt/SUNWspro/prod/lib/CCrti.o /opt/SUNWspro/prod/lib/crt1.o /opt/SUNWspro/prod/lib/values-xa.o -Y P,/opt/SUNWspro/lib/rw7:/opt/SUNWspro/lib:/opt/SUNWspro/prod/lib/rw7:/opt/SUNWspro/prod/lib:/usr/ccs/lib:/usr/lib main.o -lCstd -lCrun -lm -lw -lc /opt/SUNWspro/prod/lib/CCrtn.o /opt/SUNWspro/prod/lib/crtn.o >&/tmp/ld.29641.2.err
rm main.o
rm /tmp/ccfe.29641.1.err
rm /tmp/ld.29641.2.err
hsbld33BM@mars $ elfdump -s -C a.out | grep nullref
[25] 0x00021300 0x00000030 OBJT GLOB D 0 .bss std::basic_string<char,std::char_traits<char>,std::allocator<char> >::__nullref
[92] 0x00021300 0x00000030 OBJT GLOB D 0 .bss std::basic_string<char,std::char_traits<char>,std::allocator<char> >::__nullref
We want to be able to use the libmtmalloc.so with newer compiler version. Please advise what we should do in order to achieve this goal.

Those old compiler versions probably still have several bugs relating to the string class. Both are End Of Life. No support will be available for C++ 5.5 after this year, and all support ends for C++ 5.6 next year.
The best solution would be to upgrade to a supported release. If you need to build or run on Solaris 8 (which is also End Of Life), get Sun Studio 11, which is free.
[http://developers.sun.com/sunstudio/products/previous/11/index.jsp]
If you don't need to build or run on anything earlier than Solaris 9, get Sun Studio 12, which is also free.
[http://developers.sun.com/sunstudio/]
"Free" means there is no license fee, no charge for downloading or use, nor for the distribution of applications created with Sun Studio.
Next, whatever compilers you wind up using, be sure to get all the current patches. At a minimum, get the patches for the C compiler, C++ compiler, the compiler "back end" (sometimes called "common components"), and the C++ runtime library. You can get all patches here:
[http://developers.sun.com/sunstudio/downloads/patches/index.jsp]
The updated C++ runtime libraries need to be installed on the build system and on all target systems.
You should also be sure that your build processes do not contribute to the problem:
1. The C++ runtime libraries must be linked dynamically (the .so versions). Static linking can cause program failures when the application consists of other shared (dynamic) libraries, or when you run on a system different from the compilation system.
2. When you build on one version of Solaris, the application can run on later versions of Solaris, but not on earlier versions.
3. When you create a binary (.o, .a, .so) using one compiler version, it can be linked into a program created by a later compiler verison, but not into a program created by an earlier compiler version. (Note: the compiler version installed on a computer should not matter, since in a properly-constructed program, there is no runtime dependency on the installed compiler.)
Information about supported compilers and interactions are listed in the Support Matrix:
[http://developers.sun.com/sunstudio/support/matrix/index.jsp]

Similar Messages

  • How do I transfer photos/videos from my Iphone 5 to my Macbook Air. I can do so with my Iphone 4s but not with my Iphone 5

    How do I transfer photos/videos from my Iphone 5 to my Macbook Air. I can do so using my Iphone 4s but not with my Iphone 5

    See this User Hint: https://discussions.apple.com/docs/DOC-3141

  • ITunes library stored on an external hard drive which is connected to my airport extreme, I wish to share my iTunes library over my network, I can do this with my laptop, but not with my iPad, can anyone tell me if it is possible

    I have my iTunes library stored on an external hard drive which is connected to my airport extreme, I wish to share my iTunes library over my network, I can do this with my laptop, but not with my iPad, can anyone tell me if it is possible

    You can't connect directly to the external drive, but should be able to use iTunes Home Sharing via the laptop.
    http://support.apple.com/kb/PH1453

  • My iPad cannot connect to my internet.  the internet is working but not with my ipad.

    my iPad cannot connect to my internet.  the internet is working but not with my ipad.

    Call your ISP (Internet Service Provider) and explain them your issue, it could range from having your router configured incorrectly to having a wiring issue. Personally, I have Comcast and they are great, no issues, and awesome customer service.
    Hope you get up and running ASAP

  • Windows 8.1 64bit. Webcam works with "Camera" app but not with Skype.

    I've spent a few hours googling and trying out various things - all listed below. I give up - any ideas??? OS: Windows 8.1 64bitMemory: 32GBWebCam: Microsoft VX-7000. As per subject - the webcam works with the "Camera" app but not with Skype for desktop or for Modern UI (or the Microsoft Lifecam software for that matter).  Already attempted: 1) Uninstall webcam drivers - download latest from microsoft (Windows 7) and install in Windows 7 compatibility mode.2) Close (from taskmgr) anything that looks like it might use Webcam. 3) Run Skype for Desktop in Windows 7 and 8 compatibility modes None of the above work. In Skype for Modern UI the webcam doesn't appear in the drop down in Settings - so I can't even select it. In Skype for desktops (version 6.11.32.102) the webcam is found but instead of image I get "Can't start video. Try closing other programs that might be using your webcam". I see from a bit of googling that various people seem to have the same issue (i.e. Webcam works with Camera app but not Skype) - so I'm hopeful someone has found a workaround / fix to this issue and I've just not had the googling skills to find it  Thanks, - Matt Symes

    OK - I appear to have resolved the issue.  I restricted my google terms to [vx-7000 site:microsoft.com "windows 8.1"] Which uncovered this article: http://support.microsoft.com/kb/933311 I noticed there were a couple of Windows 7 x64 specific registry settings that were mentioned so I checked these and they weren't as per the article. In fact - one of the Registry Keys was already used by other software "AI Charger+" which is some ValueAdd software that came with my motherboard. I uninstalled AI Charger+, uninstalled LifeCam driver. Reinstalled LifeCam driver in Windows 7 compatibility mode. Still not working. I returned to the registry and noticed the settings still differed from the above article. I corrected them (which involved not just amending Data but having to add new Values). I then disabled and reenabled the LifeCam from dvcmgmt.msc I was then able to get video from the webcam in the Skype for Desktop preview screen.    

  • Adobe form-Able to post  data using Adobe Reader 9 but not with Adobe Proff

    Hello Guru's
    I am facing one problem with adobe forms.
    We have develoed a adobe form using adobe reader 9.
    Now when user are posting the purchase requistion using the form,they are able to post the data using
    Adobe Reader 9 but not with Adobe Reader professional.
    Can anyone please advice me what can be the problem here.

    Adobe Reader 9 can't save the old FDA forms. FDA must update their forms.

  • Why does the FP 10 work with firefox but not with IE8

    I down loaded the folowing for xp FP uninstall, FP plugin and FP debug from the link in one of your replys. now I can watch youtube  with firefox but not with IE8. you asked me before if i was using 16 bit. whats that mean and how do I find out? please help I just want to watch youtube on IE!

    Ok Shag, since you hadn't been on a Forum before, then I'll take some of what I said back:-) I wanted you to stay on one thread, you can get in trouble trying things that may cause you more problems than you had in the beginning. I just had your best interest at heart
    I'll even overlook your all caps here:-) At least you responded
    Now since you say you fixed it, what you should do is to confirm it is fixed by taking a look at your Flash folder. This contains all of the Flash files for IE and FF. Then make sure you have the IE add on and the FF add on. That way if you have any future problems, at least you would know it is not the Flash Player.
    You should only have 2 .exe files for IE and 1 for FF.
    For Video editing, I would check Microsoft and see what they have. Perhaps someone else will come along with other info for you.
    No, I don't get paid here, since I am not an employee. Just a user helping others, since I had a problem at one time and after 4 hours of researching solved it.
    Let me know if you want to check the Flash files.
    Thanks,
    eidnolb

  • HT3669 Hi I have a Konica Minolta PagePro 1300W printer. This works with my Windows-based Toshiba laptop but not with my i-Mac. Can someone please advise me how I get the printer to work with my i-Mac? I have installed it but documents don't print. Thanks

    Hi I have a Konica Minolta PagePro 1300W printer. This works with my Windows-based Toshiba laptop but not with my i-Mac. I have the latest (Mountain Lion 10.8.2) OS-X software.
    I have installed the printer using 'System Preferences' on my i-Mac and it appears on the list of available printers but documents that I create just don't print.
    Can someone please advise me how I get the Konica Minolta PagePro 1300W printer to work with my i-Mac?
    Thanks, John Lee

    Looking at the Konica web site for the PagePro 1300W, I saw the following note.
    Please note: This printer is designed to be used in computer operating systems running MS Windows only. Operating systems such as UNIX, Macintosh, or Linux are not supported nor do we have workaround drivers available. Older MS Windows versions, such as Windows 3.1/95/98[pre-SE] and NT 3.51/4.0, are not supported.
    So KM are not going to help you. But the LinuxFoundation does provide a workaround that should allow you to print. Have a look at this web page. You will need to install all three packages as per the instructions from that page.

  • Why does Adobe Reader 9.5.0 open pdf created by Excel, but not with Reader X.

    We have a number of pdf's that open 100% with Adobe Reader 9.5.0, but not with Reader X.
    On Reader X, the message “A Number is out of range” is shown and the image is corrupted.
    The image was created using “File SaveAs PDF” from Excel (Office 2007), with “Standard” optimization.
    For interest, if the same “File SaveAs PDF”  from Excel (Office 2007) is used, but with “Minimum Size” optimization set, then the resulting pdf opens perfectly with both Reader 9 & X.
    Distressing that a new version does not work where previous version did.

    HI
    Sorry, my first time posting and I don’t seem to be able to attach the problem pdf to my posting.
    Example of problem file attached. Opens in 9.5.0 but not X
    Regards
    Colin

  • I get sound from Youtube with Safari but not with Firefox

    I get sound when using my MacPro with Safari but not with Firefox.

    Did you check the volume setting in the player to make sure that the sound isn't muted?
    You can try to clear the Flash local storage.
    Flash Website Storage Settings panel:
    *http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager07.html
    Flash Local storage settings Help:
    * http://www.macromedia.com/support/documentation/en/flashplayer/help/help02.html

  • ESR,ID working with 8000 port but not with 50000

    Hi experts,
    I am working with PI 7.1. I am working with SOAP to ABAP SERVER Proxy scenario. I have downloaded the WSDL from ID and using XMLSPY sent a SOAP request to PI server and I got an error in SXMB_MONI under the Call Adapter step saying CLIENT_RECEIVE_FAILED.
    We cross checked the services in  SMICM transaction, and we missed the HTTP port 8000 for the parameter icm/servr/port_xx.
    Then basis team changed the port 8000 in SMICM for the same parameter and restarted the Java stack.we checked the icm/HTTP/j2ee parameter which is having 50000 port.
    Now ESR,ID,SLD,RWB... etc are working with ABAP port 8000 but not with 50000 java port and also I am getting an error in SXI_ CACHE while doing my delta refresh if_http_client receive http_communication_failure : http_communication_failure:ICM_HTTP_CONNECTION_FAILED. Kindly suggest me to resolve this error.
    Naveen

    Hi,
    Re: Architecture of PI 7.1
    NW PI 7.1 - ICM is not binding to port 5$$00
    from the above two threads it is very clear that from PI 7.1 both the ABAP and J2EE ports are same.
    Now we maintained both the ICM and j2ee port as 50000. Now ESR,ID,SLD are working with port 50000.
    But in my SOAP to Proxy scenario I  am getting the same error. When I try to send request to XI server using Altova xmlspy I am getting following error in SXMB_MONI under Call Adapter
    <SAP:Code area="INTERNAL">CLIENT_RECEIVE_FAILED</SAP:Code>
      <SAP:P1>400</SAP:P1>
      <SAP:P2>ICM_HTTP_CONNECTION_FAILED</SAP:P2>
    When i click that HTML error It shows
    404 Resource not found
    I am getting the following error in CC monitoring .
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessagingException: XIServer:CLIENT_RECEIVE_FAILED
    My reciever communication channel is in green status CC monitoring.
    I tested my server proxy in my end system which is successfully fetching data.
    I am using the following URL format for generating the WSDL from Integration directory.
    http://host:port /XISOAPAdapter/MessageServlet?channel=p:s:c
    Do we need to maintain the Fully qualified host name  in the above URL?
    I tried with a test scenario which is an asynchronous communication with the above mentioned URL format. I got a success message in SXMB_MONI.
    Since I am using PI 7.1 I tried the following URL also  but i this case,the XML spy itself throws error. I couldnt see any messages in SXMB_MONI.
    http://host:port/XISOAPAdapter/MessageServlet?senderParty=&sender
    Service=FS&interface=IF&receiverParty=&receiverService=TS&interfa
    ceNamespace=IFNamespace
    I have seen many threads in SDN for this same error but I didn't get an answer for my scenario.
    Lakshman and Manjusha
    Thanks for the quick responses.
    Regards
    Naveen
    Edited by: naveen perumal on Jul 24, 2009 8:00 PM

  • I have Photoshop Elements 9. I downloaded the plug in 6.0 and it works on the RAW files from Canon EOS 60D, but not with Canon EOS 70D. I cannot download higher versions of plug in, because I have Windows Vista and it is not supported.

    I have Photoshop Elements 9. I downloaded the plug in 6.0 and it works on the RAW files from Canon EOS 60D, but not with Canon EOS 70D. I cannot download higher versions of plug in, because I have Windows Vista and it is not supported.

    You could try using the DNG converter 8.7 on Windows vista:
    <Adobe - Adobe Camera Raw and DNG Converter : For Windows : Adobe DNG Converter 8.7>
    <Adobe - Adobe Camera Raw and DNG Converter : For Macintosh : Adobe DNG Converter 8.7>
    You then need to watch this video to get hang of it:
    <Camera Raw: How to use Adobe DNG Converter - YouTube>
    Hope this helps.

  • My firewire port works with ext hd but not with audio interface

    2010 Imac 21.5 running 10.8.5. My firewire port works with ext hd but not with audio interface. The local authorized Apple tech said that I need a new motherboard, but my firewire ext drive works perfectly. I don't understand. Thanks.

    You must go to the website of the audio interface manufacturer and look for, download and install updated drivers for the audio device you are using.
    This is not, neccessarily, an Apple issue.

  • 8.5 Report works with OCX but not with CRAXDRT

    Post Author: kjwatson
    CA Forum: Older Products
    I have an application using Crystal Reports 8.5.  It uses the crystal reports OCX to view and print reports.I added the CRAXDRT to the application so I could export PDF files.  It works fine except that Running Total Fields and Formula Fields to not seem to evaluate correctly.  Formula Fields only work if they reference a Database Field.  If they reference a Running Total Field, they do not evaluate. I'm initializing the connection of the tables on the report and sub-reports.  Could I be missing something else? The reports work fine with the older OCX, but not with the CRAXDRT. Any help/ideas are appreciated!Thanks,Kevin 

    Post Author: kjwatson
    CA Forum: Older Products
    I have an application using Crystal Reports 8.5.  It uses the crystal reports OCX to view and print reports.I added the CRAXDRT to the application so I could export PDF files.  It works fine except that Running Total Fields and Formula Fields to not seem to evaluate correctly.  Formula Fields only work if they reference a Database Field.  If they reference a Running Total Field, they do not evaluate. I'm initializing the connection of the tables on the report and sub-reports.  Could I be missing something else? The reports work fine with the older OCX, but not with the CRAXDRT. Any help/ideas are appreciated!Thanks,Kevin 

  • HT3387 When I use pages the languages that I mainly use are English and Hebrew. The spellchecker works for English but not with Hebrew. How can I add another language to the spellcheck?

    When I use pages the languages that I mainly use are English and Hebrew. The spellchecker works for English but not with Hebrew. How can I add another language to the spellcheck?

    http://m10lmac.blogspot.com/2011/06/extra-spell-checking-dictionaries-for.html

Maybe you are looking for

  • Custom report to track the documents

    Hai All, My Client requires a custom report to track the document flow any time i.e., once the material arrives the purchase dept makes an entry like PO date the date of arrival,and Gr date the GR approval date and document handed over for  Invoice v

  • How to edit pdf so that you can save entered information in Reader?

    I have Acrobat Professional 8 at home as part of Adobe CS3 but we only have acrobat reader at work. My supervisor has an evaluation form that is setup in pdf format and has fillable information boxes such as name, job description, etc. However, you c

  • Material component

    HI All, I selected a material component with item category "L" and procurement type "Third party requisition for WBS element" and then created PR from project builder. then created  a PO and rreceived the material into stock. now i can see the materi

  • Clearing the Organizer of deleted images

    I'm not a huge fan of the Organizer for one simple reason: it has all those danged gray boxes that indicate where files WERE (before they were either moved or deleted). Is there a simple way to get rid of every one of those blank gray boxes at once?

  • PhotoShop Crashing

    Im running windows 7 Home Premium amd Radeon Hd 7570 Intel(R) Core i-5 34-50 cpu @3.10 ghz 8gb ram 64 bit operating system I downloaded, redownloaded, restarted the computer and still the same thing. It start up and all of a sudden Photoshop has stop