Libc.so.1  may crash my program

After successfully built TBB library (see http://forums.sun.com/thread.jspa?threadID=5434190&tstart=0), now I have a problem when I link TBB library with my program.
Here is the ldd's output of one of TBB libraries.
chenwj@niagara:~/work/svn/SPEC2006/tbb/trunk/build$ ldd SunOS_sparc_suncc_cc4.3
.3_kernel5.10_release/libtbb.so
        libdl.so.1 =>    /lib/sparcv9/libdl.so.1
        libpthread.so.1 =>       /lib/sparcv9/libpthread.so.1
        librt.so.1 =>    /lib/sparcv9/librt.so.1
        libstlport.so.1 =>       /opt/sunstudio12.1/lib/stlport4/v9/libstlport.so.1
        libaio.so.1 =>   /lib/64/libaio.so.1
        libmd.so.1 =>    /lib/64/libmd.so.1
        libc.so.1 =>     /lib/64/libc.so.1
        libCrun.so.1 =>  /usr/lib/64/libCrun.so.1
        libm.so.2 =>     /lib/64/libm.so.2
        /platform/SUNW,SPARC-Enterprise-T5120/lib/sparcv9/libmd_psr.so.1
        /platform/SUNW,SPARC-Enterprise-T5120/lib/sparcv9/libc_psr.so.1When I link TBB library with my program, segmentation fault just happen, even don't use anything related to TBB in my program. Here is an example.
chenwj@niagara:~/tmp$ cat tbb.cc
int main()
{}I compile it with libtbb.so.
chenwj@niagara:~/tmp$ CC -m64 -g -o tbb -R/home/chenwj/work/svn/SPEC2006/tbb/trunk/build/SunOS_sparc_suncc_cc4.3.3_kernel5.10_release/ -L/home/chenwj/work/svn/SPEC2006/tbb/trunk/build/SunOS_sparc_suncc_cc4.3.3_kernel5.10_release/ tbb.cc -ltbbAnd use dbx (Sun Studio debugging tool) to give me the stack trace. Here is the output.
chenwj@niagara:~/tmp$ dbx ./tbb
For information about new features see `help changes'
To remove this message, put `dbxenv suppress_startup_message 7.7' in your .dbxrc
Reading tbb
Reading ld.so.1
Reading libtbb.so
Reading libCstd.so.1
Reading libCrun.so.1
Reading libm.so.2
Reading libc.so.1
Reading libdl.so.1
Reading libpthread.so.1
Reading librt.so.1
Reading libstlport.so.1
Reading libaio.so.1
Reading libmd.so.1
(dbx) run
Running: tbb
(process id 17258)
t@1 (l@1) signal SEGV (no mapping at the fault address) in _private_memcpy at 0xffffffff7eb3a4d0
0xffffffff7eb3a4d0: _private_memcpy+0x0170: ld [%o1 + %g5], %o4
(dbx) where 1 -q -l
current thread: t@1
=>[1] libc.so.1:_private_memcpy()I wonder if there is a bug in libc.so?
Any suggestion will be appreciated.

Thanks!
I thought the "-library=stlport4" option is only need to be used through the library building process.
Let me see what are the differences between w/o "-library=stlport4" option.
With "-library=stlport4" option, the ldd's output is:
chenwj@niagara:~/tmp$ ldd tbb
        libtbb.so =>     /home/chenwj/work/svn/SPEC2006/tbb/trunk/build/SunOS_sparc_suncc_cc4.3.3_kernel5.10_release//libtbb.so
        libstlport.so.1 =>       /opt/sunstudio12.1/lib/stlport4/v9/libstlport.so.1
        librt.so.1 =>    /lib/sparcv9/librt.so.1
        libCrun.so.1 =>  /usr/lib/sparcv9/libCrun.so.1
        libm.so.2 =>     /lib/sparcv9/libm.so.2
        libc.so.1 =>     /lib/sparcv9/libc.so.1
        libdl.so.1 =>    /lib/sparcv9/libdl.so.1
        libpthread.so.1 =>       /lib/sparcv9/libpthread.so.1
        libaio.so.1 =>   /lib/64/libaio.so.1
        libmd.so.1 =>    /lib/64/libmd.so.1
        /platform/SUNW,SPARC-Enterprise-T5120/lib/sparcv9/libc_psr.so.1
        /platform/SUNW,SPARC-Enterprise-T5120/lib/sparcv9/libmd_psr.so.1Without "-library=stlport4" option, the ldd's output is:
chenwj@niagara:~/tmp$ ldd tbb
        libtbb.so =>     /home/chenwj/work/svn/SPEC2006/tbb/trunk/build/SunOS_sparc_suncc_cc4.3.3_kernel5.10_release//libtbb.so
        libCstd.so.1 =>  /usr/lib/sparcv9/libCstd.so.1
        libCrun.so.1 =>  /usr/lib/sparcv9/libCrun.so.1
        libm.so.2 =>     /lib/sparcv9/libm.so.2
        libc.so.1 =>     /lib/sparcv9/libc.so.1
        libdl.so.1 =>    /lib/sparcv9/libdl.so.1
        libpthread.so.1 =>       /lib/sparcv9/libpthread.so.1
        librt.so.1 =>    /lib/sparcv9/librt.so.1
        libstlport.so.1 =>       /opt/sunstudio12.1/lib/stlport4/v9/libstlport.so.1
        libaio.so.1 =>   /lib/64/libaio.so.1
        libmd.so.1 =>    /lib/64/libmd.so.1
        /platform/SUNW,SPARC-Enterprise-T5120/lib/sparcv9/libc_psr.so.1
        /platform/SUNW,SPARC-Enterprise-T5120/lib/sparcv9/libmd_psr.so.1So there are two imlementations of STL in this case, the default is the libCstd.so.1 and the other is ibstlport.so.1. If I do not specify "-library=stlport4" option, then there will be two imlementations of STL. So that my program crash.
Thanks again.

Similar Messages

  • Why does this reloadData crash my program?

    Can anyone help me figure out why [tableView reloadData] is crashing my program? I have a grouped tableView where I want to allow the user to reorder rows. Each of the rows is dynamically numbered in cellForRowAtIndexPath, so when the cell draws the rows are consecutively numbered. Whenever the user makes a change to the list order such as from:
    1. Name A
    2. Name B
    3. Name C
    to: (switch 1 & 3)
    3. Name C
    2. Name B
    1. Name A
    I want it to say
    1. Name C
    2. Name B
    3. Name A
    Here is the code, but I get * Terminating app due to uncaught exception 'NSRangeException', reason: '* -[NSCFArray objectAtIndex:]: index (1) beyond bounds (1)'
    Here is the Code:
    - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath {
    if (fromIndexPath.section == 0) {
    NSDictionary *currentName =[[[bNameChoices objectAtIndex:fromIndexPath.row] retain] autorelease];
    [bNameChoices removeObjectAtIndex:fromIndexPath.row];
    [bNameChoices insertObject:currentName atIndex:toIndexPath.row];
    } else if (fromIndexPath.section == 1) {
    NSDictionary *currentName =[[[gNameChoices objectAtIndex:fromIndexPath.row] retain] autorelease];
    [gNameChoices removeObjectAtIndex:fromIndexPath.row];
    [gNameChoices insertObject:currentName atIndex:toIndexPath.row];
    [tableView reloadData];
    Any help on this would be appreciated!

    gpmoore wrote:
    I found a work around which I am a bit embarrassed by but it works (I hate cheating like this but I didn't want to waste time):
    Doing it correctly is not a waste of time. I suspect that you have other things going on that are causing your crash. How far do you want to go with this program? If you want to support drag-n-drop and other fancy things then you'll have to get this resolved.
    There has been some side discussion here that you may or may not have seen. I don't know what is going on with your autorelease. For all I know you are giving your object to some random autorelease pool from the context of whomever is calling this delegate function.
    Full support of drag and drop can be complicated. Essentially, what I do is this:
    1) Remove all selected row objects (which may be a discontiguous set) and move them to a new array.
    2) Find the insertion point. You will need to do some calculations to find where it will be.
    3) Move all the objects from the temp array into the new location.
    Here is an example straight from my code:
    // Move rows to a new row.
    - (void) moveRows: (NSIndexSet *) rows toRow: (unsigned int) row
    // Get an array of the rows I'll be moving.
    NSArray * movedRows = [myData objectsAtIndexes: rows];
    // Remove the rows from the list.
    [myData removeObjectsAtIndexes: rows];
    unsigned int offset = 0;
    // Now that I've removed the rows. I need to calculate the new
    // insert location, taking into account rows that I just removed.
    for(unsigned int i = [rows firstIndex]; i != NSNotFound;
    i = [rows indexGreaterThanIndex: i])
    if(i < row)
    ++offset;
    // Build a new set of rows, taking the offset into account.
    NSIndexSet * newRows =
    [NSIndexSet indexSetWithIndexesInRange:
    NSMakeRange(row - offset, [rows count])];
    // Now put the rows where they need to be.
    [myData insertObjects: movedRows atIndexes: newRows];
    // Redisplay the table.
    [myTableView reloadData];
    // Select the new rows.
    [myTableView selectRowIndexes: newRows byExtendingSelection: NO];
    if(myUndoManager)
    // Allow this operation to be undone.
    [[myUndoManager prepareWithInvocationTarget: self]
    moveRowsAtRow: row - offset toRows: rows];
    // Update the change counter.
    if(myDocument)
    [myDocument updateChangeCount:
    ([myUndoManager isUndoing] ? NSChangeUndone : NSChangeDone)];

  • HT3669 after last HP printer update, my hp laserjet 1300 won't print but instead crashes the programs

    after last HP printer update, my hp business 2800 won't print but instead crashes all programs. OS 10.6.8.

    Use this driver:
    http://support.apple.com/kb/DL907

  • My iPad is crashing in programs and the internet.

    My iPad has been crashing in programs and the internet. It also seems very slow to open internet windows. I have to close and reopen a lot. What can be the problem/s and how can I fix this.

    Clear Safari and close the app completely. Close all other apps as well. After closing all of your apps, reboot your iPad and see if that helps the situation.
    Go to Settings>Safari>Clear Cookies and Data.
    If you are running iOS a 5 or 6 - Tap the home button once. Then tap the home button twice and the recents tray will appear at the bottom of the screen. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Close app of the apps like this. Tap the home button twice.
    If you are running iOS 7 - To close an app, drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it. Close all apps in the same manner.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Use loadSWF load my stage3D game swf and show In AIR , This swf may crash when running

    Problem Description:
    use loadSWF load my stage3D game swf and show , This swf may crash when running
    Steps to Reproduce:
    run my Upload Project . Fill in the login box, any account and password . Because of network problems, you may need to wait a long time to show up login box
    Actual Result:
    this swf crash when running
    Expected Result:
    this swf do not crash when running
    Any Workarounds: 
    Test Configuration
    My Hardware and Environment details:
    1.this url's swf load files in worker
    2.this url's swf use SDK is Flex 4.6.0(bulid23201)
    3.this url's swf is Flex Project
    Upload Project Url:
    http://fight.fuhuodao.com/fight/testUrl/!FightAirShell.zip

    The loading of SWFs from AIR has a different Security model than that of the WebPlayer.  There is a workaround to loading plugins in AIR: If you use a static plugin this should work for you.  To do this: Link in the plugin at compile time, and pass the PluginInfoResource to the loadPlugin() method.

  • Since downloading Mavericks nearly everytime I attempt to print it crashes the program I want to print from.  Any ideas how to fix?

    Since downloading Mavericks nearly everytime I attempt to print it crashes the program I want to print from.  Any ideas how to fix?

    Thank you very much!  Worked!  Appreciate the help.

  • I have photoshop elements 12 and when I use the font it crashes the program, how can I fix this?

    I have photoshop elements 12 and when I use the font tool it crashes the program, how can I fix this?I have a macbook pro

    Use the crop tool.
    On the tool's option bar, type 300 px & 200 px, and the desired resolution.

  • I have the Photoshop Elements 11 and when I use the stamp effect the image becomes totally black. It used to have my line drawing in white, now, just a black image. I need the stamp effect. also, most other effects simply crash the program.

    I have the Photoshop Elements 11 and when I use the stamp effect the image becomes totally black. It used to have my line drawing in white, now, just a black image. I need the stamp effect. also, most other effects simply crash the program.

    Which operating system are you using?
    Some filters like Filter>Sketch>Stamp need to have two different colors for the Foreground and Background set in the toolbox.
    Press the D key to set the default toolbox color swatches to Black and White and then try the Stamp filter.
    If your using mac os x 10.9 or 10.10, then some of the filters under Filter>Sketch will crash pse 11
    They are Filter>Sketch>Comic, Graphic Novel and Pen and Ink
    Otherwise resetting the pse11 editor preferences might resolve the crashing.
    Go to Photoshop Elements Editor(Edit)>General, click on Reset Preferences on Next Launch and then restart the pse 11 editor

  • How can you repair a pages document that crashes the program so it won't crash anymore

    I have a Pages file 09' that crashes the program. I want to keep the file because of the time spent on it and formatting it. I am using a iMac with OS 10.8. I called support and they told me there was a Pages 11 out. I could not find it in the app store. I am using Pages version 4.3. This is the latest version I can find. You know the one, the one with the broken spellcheck program. I need to find a file repair utility. I do not want to just save the text. I want to save the file. Thanks.

    I said you were using Snow Leopard because that is what is listed at the bottom of your first post. I don't know if it's just me, but I do find it difficult to edit that information since these forums moved to the current format.
    I don't rely on the spell checker, mostly because spelling has always been a forté. Pages uses the system spell checker & does pick up the typos I make, so I don't know what to say about that.
    Since the file can be opened biut crashes when editing it, you might try an old trick that often worked with AppleWorks & I've known of it working with Pages, too. Save the file with a slightly different name as an iWork '08 file format & then open that copy in your current Pages. You do not need to have Pages '08 to do this. In Mountain Lion, hold down the Option/alt key while clicking on the File menu & choose Save As…, check the box next to Save a copy as: & select iWork '08 from the drop-down menu like in this screenshot. This can often correct minor corruption.

  • Why i cant open the ae after i download ~then pop up something like ae error, crash in program~help~pls

    why i cant open the ae after i download ~then pop up something like ae error, crash in program~help~pls

  • Trying to open the movie folder in itunes crashes the program

    With or without iPad connected, trying to open the movie folder in itunes crashes the program.

    This is the iSync forum - the iDisk forum is here:
    http://discussions.apple.com/forum.jspa?forumID=963

  • Itunes crashed, now programs that run on startup crash

    hi,
    I just installed itunes for my new ipod mini, and while going through my library (my music) i received an error message that advised that there may be a problem with my hardware.
    I managed to close itunes, and noticed that there were only 13 songs on my ipod mini, not 800. When I went to download more songs, I recieved the generic "itunes has encountered a problem and needs to close" message.
    I rebooted my computer, and noticed that I got the same message for three other programs that load upon my computer startup. My windows messenger is also no longer working on my computer, but my internet is still ok.
    I have Norton '05 and windows firewall, and have disabled both, to no avail. I have also uninstalled my ipod, and itunes/quicktime and still get the message. booting to last known good configuration doesn't help either.
    This morning, my computer was fine, now everything is crashing upon startup, and I have no more messenger! Can somebody please help me!!!
    w.

    hi b,
    Thanks for the reply. I think I figured out what happened. Somehow, when I installed the itunes/quicktime software or ipod hardware my computer managed to talk itself into thinking that the year was 9999!
    I'm not sure if anybody else has come across this, or what changed the date, but my itunes seems to work now, as well as my MSN Messenger. I'm using the computer right now, and can't reboot, but I'm sure that when I do, it will be fine again.
    I guess I have to laugh, after spending all night searching the registry and disabling software/hardware to test for conflicts that it was the date on my computer!
    Thanks for the input, and your time b. noir!
    w. rouge (with embarrassment)

  • Random crashes in programs compiled with sunstudio 11

    Hi all,
    I am porting some server stuff from Windows to Solaris and have the problem, that I have random crashes of our main server what didn't happen on Windows, Linux or HP with the same code base.
    I think that there is perhaps a structural problem, what I can't find. Perhaps somebody can look over the attached info's and try to find out, if something is wrong.
    Because of boost I have to use stlport4 stuff and I have also to link both thread libraries (libthread.so and libpthread.so). My concern is that there is some missmatch which causes my problems.
    See somebody some dangers how I compile and link the stuff? Any help      would be appreciated.
    regards
    a desperate
    Compiler version:
    SunOS sun4 5.8 Generic_108528-24 sun4u sparc SUNW,Ultra-80
    Link line:
    CC ApplicationServer.o ... -mt -library=stlport4 -L/km/sqstest_plato/PlatoServer/Interface/Release -lstubs -lskell -L/km/sqstest_plato/PlatoServer/Basics/Release -lbasic -L/km/sqstest_plato/PlatoServer/XMLBase/Release -lxmlbase -L/km/sqstest_plato/PlatoServer/libs/ReleaseInfo/Release -lReleaseInfo -L/km/sqstest_plato/PlatoServer/Basics/zlib/Release -lz -L/km/iona/asp/6.2/lib -lit_art -lit_poa -lit_ifc -lit_naming -lit_location -lit_iiop -lit_csi -L/km/poet/runtime/lib -lpt95Fbs -lpt95Fex -lpt95Fin -lpt95Fkn -lpt95Foq -lpt95Fsc -lpt95Ftm -L/km/sqstest_plato/PlatoServer/Basics/boost/lib -lboost_thread-sw-mt-1_33_1 -lboost_regex-sw-mt-1_33_1 -lboost_date_time-sw-mt-1_33_1 -lboost_filesystem-sw-mt-1_33_1 -L/km/sqstest_plato/libs/xerces/lib/solaris -lxerces-c -L/km/sqstest_plato/libs/xalan/lib/solaris -lxalan-c -lxalanMsg -R/usr/lib/lwp -lmtmalloc -lsocket -lnsl -lpthread -o ./ApplicationServer
    Example compile line:
    CC -I.. -I../poet_code -I/km/iona/asp/6.2/include -I/km/poet/inc -I/km/libs/flexlm/machind -I/km/sqstest_plato/PlatoServer/Interface -I/km/sqstest_plato/PlatoServer/Basics -I/km/sqstest_plato/PlatoServer/XMLBase -I/km/sqstest_plato/PlatoServer/XMLBase/poet_code -I../../bison++ -I/km/sqstest_plato/libs/xerces/src -I/km/sqstest_plato/libs/xalan/src -xO3 -library=stlport4 -D_ASSERTE=assert -features=extensions -features=rtti -w -DNDEBUG -D_GARBAGE_COLLECTOR +d -mt  -D_APP_SERVER   -c SomeFile.cpp
    one of different simular dbx outputs:
    dbx ApplicationServer core.odc.1
    For information about new features see `help changes'
    To remove this message, put `dbxenv suppress_startup_message 7.5' in your .dbxrc
    Reading ApplicationServer
    dbx: warning: core object name "ApplicationServ" matches
    object name "ApplicationServer" within the limit of 14. assuming they match
    core file header read successfully
    Reading ld.so.1
    Reading libstubs.so
    Reading libskell.so
    Reading libbasic.so
    Reading libxmlbase.so
    Reading libReleaseInfo.so
    Reading libit_art_sc53.so.5
    Reading libit_poa_sc53.so.5
    Reading libit_ifc_sc53.so.5
    Reading libit_naming_sc53.so.5
    Reading libit_location_sc53.so.5
    Reading libit_iiop_sc53.so.5
    Reading libit_csi_sc53.so.5
    Reading libpt95Fbs.so
    Reading libpt95Fex.so
    Reading libpt95Fin.so
    Reading libpt95Fkn.so
    Reading libpt95Foq.so
    Reading libpt95Fsc.so
    Reading libpt95Ftm.so
    Reading libboost_thread-sw-mt-1_33_1.so
    Reading libboost_regex-sw-mt-1_33_1.so
    Reading libboost_date_time-sw-mt-1_33_1.so
    Reading libboost_filesystem-sw-mt-1_33_1.so
    Reading libxerces-c.so.27
    Reading libxalan-c.so.110
    Reading libxalanMsg.so.110
    Reading libmtmalloc.so.1
    Reading libsocket.so.1
    Reading libnsl.so.1
    Reading libpthread.so.1
    Reading libstlport.so.1
    Reading libCrun.so.1
    Reading libm.so.1
    Reading libthread.so.1
    Reading libc.so.1
    Reading libit_atli2_ip_sc53.so.5
    Reading libit_atli2_sc53.so.5
    Reading libdl.so.1
    Reading librt.so.1
    Reading libit_atli2_iop_sc53.so.5
    Reading libit_giop_sc53.so.5
    Reading libit_iiop_profile_sc53.so.5
    Reading libgen.so.1
    Reading libmp.so.2
    Reading libaio.so.1
    Reading libc_psr.so.1
    Reading libit_ifc_aux_sc53.so.5
    Reading de.so.2
    Reading libit_cfr_handler_sc53.so.5
    Reading libit_cfr_sc53.so.5
    Reading libit_codeset_sc53.so.5
    Reading libit_icuuc.so.2
    Reading libit_icui18n.so.2
    Reading libit_icudata.so.2
    Reading libpt95Fli.so
    Reading libpt95Fix.so
    t@10 (l@10) terminated by signal SEGV (no mapping at the fault address)
    0xfd037810: GetBase+0x001c: ld [%o0 + 12], %o0
    (dbx) where
    current thread: t@10
    =>[1] PtBaseHandle::GetBase(0xc077bfc8, 0x4b58c0, 0x8, 0x7, 0x1, 0xfa6fb770), at 0xfd037810
    [2] PtOnDemandSet::Query(0x9f3654, 0xfa6fb790, 0xfd2bafbc, 0x0, 0x4b58c0, 0x0), at 0xfd1cf6dc
    [3] CPSWorkspace::ChangePropagation(0xfffffffc, 0x9f3450, 0x1, 0xc, 0xfa6fb78c, 0x1), at 0x4359b8
    [4] CPSCall::Delete(0x9f3450, 0x0, 0xffffffff, 0xffffffff, 0x21f2a8, 0xff2d5a88), at 0x31b5d4
    [5] CPSBase::delete_Object(0xa1f1a0, 0x9f3450, 0x2, 0x0, 0x31b5a8, 0x82fe10), at 0xff29f294
    [6] CPSTestCase::delete_Object(0xa1f1a0, 0x9f3450, 0x2, 0xfcdcb0b8, 0x8b1f08, 0x857800), at 0x3f9f5c
    [7] CSBulkManipulations::DeleteObjects(0x9da880, 0xfa6fbba0, 0xfa6fba30, 0xfa6fba34, 0x8c7a28, 0x3f9ef4), at 0x4a42a0
    [8] POA_IBulkManipulations::DeleteObjects_itgen_dispatch(0x1668, 0xfa6fbd30, 0xfa6fbc94, 0x1400, 0xfe7b8d60, 0x9da8c8), at 0xfe5aaca4
    [9] PortableServer::ServantBase::_dispatch(0x9da8c0, 0xfa6fbd30, 0xfa6fbd74, 0x400, 0x1, 0x4a4750), at 0xfe27415c
    [10] IT_POA_RequestInterceptor::invoke(0xab8c94, 0x92b74c, 0x92b750, 0xfa6fbdb0, 0xfa6fbd74, 0xfe2f8d28), at 0xfe23f12c
    [11] IT_GIOP_ServerRequest::execute(0x92b100, 0x92b100, 0xfde5f368, 0xfe121678, 0x2, 0xfbbdb6d0), at 0xfbb5f5d8
    [12] IT_ATLI2_IP::IPPoolImpl::execute(0xba0520, 0x4, 0xfa6fbf2c, 0x1, 0xfe0ea92c, 0x0), at 0xfc24ca30
    [13] IT_Work_WorkerThread::run(0xa7fb30, 0x3, 0xac70a0, 0xac70a0, 0xac70a0, 0xfe0ea92c), at 0xfdd88c14
    (dbx) quit

    I'm looking into the mtmalloc issue and I'll let you know what I find.
    To use the LWP thread library, add the -L and -R option to each command that performs a link step. (It does no harm to put them on compilation commands, but they have no effect.)
    Example of link steps are creating a shared library (-G option) or an executable program.
    The important point is to use the -L and -R options on every link command, or you could wind up linking two different versions of the thread library into the program.
    Most C++ programs, and the C++ Standard LIbrary in particular, depend on function inlining to allow separation of programming concerns while still getting good performance.
    One classic example is a member access function:
    class T {
    int foo;
    public:
    int get_foo() { return foo; } // implicit inline function
    Access to private member foo is restricted. Non-member functions can read the value via function get_foo. The definition and use of member foo, and the contents of function get_foo, could change without affecting any code that uses T. You need only recompile, not modify source code that uses T objects.
    The disadvantage is the cost of a function call to get at the int member. If access to foo is high bandwidth, program performance could suffer.
    But in this case, foo is declared inline. The compiler replaces the call to get_foo with the body of get_foo at the point of the call. When you write x.get_foo(), the compiler generates code as if you had written x.foo.
    You get the benefit of program modularity and separation of concerns without any runtime cost.
    When you use d, you tell the compiler not to perform the inline substitution, and generate a function call instead. You often want to do that during debugging, so you can set breakpoints on calls to get_foo, which  you could not otherwise do. In fact, the -g option sets the d option to disable function inlining. There is seldom any reason to use +d explicitly.
    For production code, you don't want to throw away the designed-in performance benefits of function inlining. Remove the +d option unless you have a specific reason for wanting it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Hey guys, love the new look, but FF4 is crashing like crazy. Not only is it crashing the program but it is crashing my comp left and right. Any updates or fixes?

    So you guys were killing it until this version. Since I have installed it my comp has gone haywire. The browser crashes regularly and i have have a few instances where it has been the cause of my computer crashing. It may be FF running with another program but in the last week i have just been running safari and have had no issues with crashing. Love FF3 and actually switched to FF after tons of issues with safari (still not my fav), not tuning my back on you, tho. Hoping for some fixes. thanks

    I've tried to ad the songs like i did before on my pc, dragging them over to my playlist or library. Since I live in Norway, I have some difficulties with transferring to english, so it be some bad spelling.
    On the music that I can't get to my itunes, is a "mp3 - lyd" which in norwegian is a the same standard mp3 format. All of the files is in this format, even those that I'm able to transfer to itunes. Which is an album by an single artist.
    I know that itunes does not support all formats, which is why I always make sure that all of my music has the same format.
    So I will try to explain once more. Earlier today, I downloaded some new music, both albums and singles. And it's the singles I have difficulties to transfer to itunes. Neither dragging them nor by clicking "import/add" songs to library works. What happens when I try to do this, is that I get that circle thingy,(the circle who comes when the computer is working), and when it disappers, nothing happens and no files(of the singles) is transfered. And I'm going crazy, because I thought that I could do this without help, and noe I'm sitting here like a questionmark, and don't understand what I'm doing wrong.
    And, first of all, thank you so much for your time, and your links Limnos. Even though they were'nt the answers for my problem, thank you:) and I hope that you with the information above, may have an answer for me, or that someone else has.

  • InDesign Crashing During Program Start

    I am having major issues with Adobe InDesign on 1 machine at a client's site. As of mid yeterday morning, InDesign will no longer load, crashing before even getting the loading splash screen with an issue with CoolType.dll.
    Faulting application name: InDesign.exe, version: 6.0.6.622, time stamp: 0x4caa28e2Faulting module name: CoolType.dll, version: 5.6.5.1744, time stamp: 0x48b60829Exception code: 0xc0000005Fault offset: 0x000a302aFaulting process id: 0xc6cFaulting application start time: 0x01cc7d77c667ecf1Faulting application path: C:\Program Files (x86)\Adobe\Adobe InDesign CS4\InDesign.exeFaulting module path: C:\Program Files (x86)\Adobe\Adobe InDesign CS4\CoolType.dllReport Id: 0552dc07-e96b-11e0-879e-f46d04257f70
    As what i can find online about the issue (although pretty much being only related to CS3) relates to fonts, i have uninstalled what they said they installed yesterday, but InDesign still isnt loading. Nothing else has supposedly changed.
    Can anyone please help me sort out this issue ASAP.

    Sorry if my last comment didnt make sense. I will explain more. If i go to the Windows Fonts folder, it shows it in the Windows Font Manager style. With this view, I have found that on this machine, fonts are sometimes showing twice. Below is a graphic showing what I mean, there are 4 identical fonts, showing in properties to reference 5 different files, but listed as 8 fonts. (the first one listed is a different file to the one with a duplicate name, but the others seem to reference the same file.)
    When copying all fonts via the font manager, it copied them like this:
    While I cannot see why these Swiss 721 fonts should show duplicates, as they dont follow what i am about to say, other fonts that are duplicated show in the fonts folder when viewed over a network with _0 at the end of their file name:
    I also seem to have found an encrypted font, although that shouldnt be causing the issues, as it seems to belong to the main user of the machine, but it may.
    I hope this clarifies things better for you. I am going through and removing all of these duplicates.

Maybe you are looking for