Malloc and osx update build 9G55

Hi guys.
I wrote a little app in c using xcode tools; it's my graduation project, and it consists in simulating a p2p network.
Well, last week I ran the app with 1000, 10.000, 20.000, 80.000 and 150.000 nodes, and it worked perfectly.
Now I have to run it again but, after updating the o.s. with the last update of ilife and media browser provided by apple via software update, it no longer works.
Malloc fails to build the structure with 150.000 nodes (but it works perfectly building 1.000->80.000 nodes).
I tried on another mac with my same configuration (10.5.6, last update, xcode 3.2.1 and so on) and the problem persists the same way.
On a gentoo with gcc 4.1.2 it works perfectly. same source code.
Any idea??
Thanks.
Message was edited by: Mailor

etresoft wrote:
I think you're going to have to post some code. Just because it worked last week and on Linux doesn't mean that it was correct. Typically when something like this happens the code actually isn't correct. Linux is notorious for getting incorrect code to work. That is why it is never as easy as it appears to port from Linux to Mac. The first step is always fixing bugs that Linux ignored.
code wrote:
struct tabellanodo{
int idnodo[CARD_MAX_TABELLAAMICI], card_tabella;
int confidenza[CARDMAX_TABELLAAMICI][2];
int interessicomuni[CARD_MAX_TABELLA_AMICI][NUM_INTERESSI_COMUNIMAX];
int cardinteressi_comuni[CARD_MAX_TABELLAAMICI][2];
struct infonodo{
int numeroconnessioni_nodimaliziosi;
int nodimaliziosi_sottosmin;
int nodimaliziosi_soprasmin;
double numero_richieste;
int numerorisposte_maliziosericevute;
int numeronodi_non_maliz_sottosmin;
struct _nodo{
int malizioso; // 0: non malizioso; 1: malizioso
int id_nodo, card_intressi,famoso;
int indiceinteressi[INTERESSITOTALI];
int nodibannati[CARD_MAX_TABELLABANNATI];
int cardnodibannati;
those structures are allocated this way:
net = malloc((num_nodi+1)*sizeof(nodo));
tabella = malloc((numnodi+1)*sizeof(tabellanodo));
tabellainfonodo = malloc((numnodi+1)*sizeof(infonodo));
there are other 2 malloc:
nodimaliztrovati = malloc((num_nodi+1)*sizeof(int));
nodimaliz_sottosmin = malloc((num_nodi+1)*sizeof(int));
num_nodi is equal to 150000.
#define CARDMAX_TABELLAAMICI 100
#define CARDMAX_TABELLABANNATI 100
#define NODI_SCONOSCIUTI 20
#define INTERESSI_TOTALI 70
#define NUMINTERESSI_COMUNIMAX 40
This is from the file system. How big are your files? What architecture are you using? What API are you using for your files? MacOS X likes to use mmap when opening files. This is great for small files but becomes horribly slow for large files. If the files are big enough, > 2 Gig in this case, it may not work at all.
i do NOT open ANY file running the program. there's no way it tries to access the disk nor writing nor reading.
the only operations it executes are those said before.
note: defining CARDMAX_TABELLAAMICI to 80, makes it work fine. 90 breaks it as like as 100, but 80 doesn't.
Thanks
Message was edited by: Mailor

Similar Messages

  • Encore keeps crashing on startup on macbook pro. I have all the latest cc and osx updates

    encore keeps crashing on startup on macbook pro. I have all the latest cc and osx updates

    What specific OS and Encore versions? Since you say "latest OS updates," I assume Mavericks, and is this the relatively new 10.9.1 version?
    Where in the startup does it crash? Is there an error message?
    Mavericks causes a variety of issues, and we don't have enough data to really pin them down. At least with the original Mavericks, some users appeared to get CS6 to run with some serious but workable problems.
    Make sure you have handled any permissions issues.
    This describes such issues:
    Troubleshoot system errors and freezes | Adobe software on Mac OS 10.x
    http://kb2.adobe.com/cps/824/cpsid_82414.html

  • Premiere runs slower after 2014 and OSX updates

    Question: Has anyone experienced a decrease in performance after updating to the 2014 versions on their CC software? I recently updated this and my Mac's OS to Mavericks. I would like to narrow down the field in order to discover what is causing this problem.
    System info:
    Footage Info: 2 cameras - Panasonic GH3 and Nikon D7100, 1920x1080 29.97p, h.264 .mov files
    Project: Series of 11 videos ranging from 3 - 4 minutes.
    Includes:
    Interviews on green screen (possible issue, I address this further down)1 - 3 interviews per video with 2 cameras for each interview. Cameras have separate comps = 2 dynamically linked comps per interview resulting in 2 - 6 comps with keyed footage
    Standard broll, intro/outro/lower third screen comps linked with AE
    1 audio track, premixed with interview audio and music
    Problem: Since updating my version of OSX as well as my CC software I have had a significant decrease in performance when editing in Premiere Pro with dynamically linked AE comps. The performance issue ranges from the program monitor taking minutes to update after adjusting effects or scrubbing through the timeline (or just clicking on a new point to see the single frame previewed) all the way to my computer freezing or even PP restarting itself (never happened to me before). Also, export times have increased exponentially. Prior to these updates I was able to export a 4 minute video with multiple dynamically linked comps in around 30 minutes. After updating it is taking over 4 hours to export a 3 minute video with similar effects.
    Possible causes/items for discussion:
    The 2014 update added new effects to Keylight in AE (what I used to key the footage).Also this is the first project I have done using keyed footage through dynamically linked comps. Does the Keylight effect require significantly more power to operate?
    I am working with projects that I had started prior to the 2014 update. Normally I would not have updated mid project, but with increased benefits to Keylight as well as adding the ability to edit dynamically linked lower third text directly from PP (huge time saver), I decided it was worth it.
    Extra notes:
    I also added another monitor to my system recently. Could this have something to do with it?
    After this issue I plan on acquiring the proper transcoding software and updating my workflow to rule those out in the future. I will also consider alternatives to working with dynamically linked comps. However, at this point I am purely interested in feedback regarding similar situations or suggestions as to what I could try to address this issue. Thank you for your input.

    I spent more time looking into this and think I may have found a solution to my problem! This has been an extremely frustrating week for me and the performance issue has affected delivery to the client, so I wanted to post what I discovered here in case anyone else is hunting for this answer.
    I found another thread that addressed the issue of working with comps in PP (Re: After effects CC on maverick slow render because of PP CC Dynamic Link Footage). They refer to it as power nap in that thread but I think what he meant was "App Nap" which limits resources to certain apps when they are not in use. There is more information here (How to Disable App Nap in OS X Mavericks - TekRevue). Preventing app nap seems to have sped things up for me. I am going to try exporting now and see if that goes any faster.

  • OSX update disabled DVD

    my DVD has been working until last night after downloading and OSX update. when i insert a dvd, the dvd player icon appears at the dock then disappears and doesn't load the movie. i ran disk utility but still no luck. i also ran onyx and for the first time it gives me an error "Error detected while optomizing system. The command exited with a non-zero status". Does anyone have any idea on how to fix this?

    i decided to download and use this for DVD's. it now works great.
    http://www.videolan.org/vlc/download-macosx.html

  • I have a 3rd generation iPad running iOS7.0.2, and since updating to iOS7, it will not mirror to an AppleTV.  The devices will connect, but the video monitors show only a blank screen.  The AppleTV's work fine with various other iOS & OSX devices. Ideas?

    I have three AppleTV's where I work.  I have two at home.  I have an iPhone 4S running iOS7.0.2 which mirrors smoothly via AirPlay.  I have a 2011 MacBook Pro and a 2011 iMac, both running Mountain Lion, both of which mirror smoothly through AirPlay.  I have a 3rd generation iPad running iOS7.0.2, and since updating to iOS7, it will not mirror.  The iPad will connect to the AppleTV, but the TV's and projectors only show a black screen when connected: the iPad screen looks as it should, except that the transitions become jumpy when connected via AirPlay.  This is true on both networks: at home and at work.  Another gentleman using the network where I work has the most recent iPad, also running iOS7.0.2, and he is having the same problem.  I have tried to "Reset All Settings."  I have tried to "Restore."  Does anyone have any suggestions?  Has anyone else experience difficulty mirroring the iPad through AirPlay since the release of iOS7.0.2?

    No problems exists with the router (on either network described above) or the multiple AppleTV's which are able to mirror multiple other OSX & iOS devices seamlessly. The problem is strictly with the iPad and iOS7.
    The following information was helpful:
    Big Apple fan
    Re: AirPlay with AirServer connectivity problem
    Oct 14, 2013 9:43 AM (in response to ceb2652)
    This is an iOS 7 AirPlay mirroring bug...
    To make matters worse, the iPad automatically drops its mirroring session 45 seconds after it auto-locks.
    3-4 mirroring sessions is all it takes for the iPad mirroring to freeze up.
    After this happens, mirroring to an Apple TV only projects a blank screen.
    Once the mirroring is hung, the only way to fix it is to restart the iPad.
    Apple please fix this iOS 7 issue!

  • HT5361 How do I log out of mail? Trying to complete an OSX update and it won't let me stating that I still have mail open

    Trying to perform an OSX update but system will not allow me stating that I have mail open still and I do not know how to shut mail down...can you provide basic instructions.
    <Email Edited by Host>

    Command, option and escape keys will open the "Force Quit" window when you can close Mail.

  • OSX Update Failed To Install. Now Mail and App Store won't open

    I'm currently running Mountain Lion on my unibody Macbook Pro. Last night I got a notification that there was an update (10.8.3 I beleive), so I opened up the App store and proceeded with the install process. The update details mentioned that this update would require a restart of the computer--it seemed pretty typical. Unfortunatly the update did not go smoothly and the computer froze while the progress bar read "just a few more seconds." It hung there for an hour. I did a hard shut down of the computer and when I booted back into Mountain Lion I found that I could not open the Mail or App Store applications. So now I cannot restart the OSX update that failed in the first place.
    It looks like I have the same problem as the people on this thread: https://discussions.apple.com/thread/4888648?tstart=0
    Help me please.

    Sometimes, the version you an get from the App Store fails during the installation, making some applications unusable. Just download and reinstall OS X 10.8.3 with the Combo installer to get the Mac working > http://support.apple.com/kb/DL1640

  • Have iphoto 9.0 working on a mac osx 10.7.4 yesterday ilife with idvd was downloaded into my mac,i can't open my iPhoto now its telling me to update app, but when i do it says no new updates are available at this time,and iPhoto update mesg pops up again.

    Have iphoto 9.0 working on a mac osx 10.7.4 yesterday ilife with idvd was downloaded into my mac,i can't open my iPhoto now its telling me to update app, but when i do it says no new updates are available at this time,and iPhoto update mesg pops up again.

    Hi,
    I scoured the web looking everywhere for a solution to this.
    Exit Code 15
    OSX 8.5 with Work@Home DVD media for CS6
    I followed instructions to run 3rd party cleaner software
    I tried the adobe removal tool
    removing all copies of adobe software manually
    installing from a new account, safe mode, plist everything suggested that i found did not work.
    A colleague suggested that removing the below folder would allow the installation:
    /Library/Application Supports/Adobe
    They turned out to be correct, so i am passing this on, because this took far too many hours of my time.
    Cheers,
    Smokey

  • OSX update 10.10.2 causes mouse to jump around and text to be highlighted randomly in Dreamweaver CC 2014

    OSX update 10.10.2 causes mouse to jump around and text to be highlighted randomly in Dreamweaver CC. When trying to click on a specific line of code in a js file the cursor ends up in a different place in the script and several lines of code highlighted. Clicking again jumps the mouse to a different position and even more lines of code highlighted and some characters rearranged, breaking the lines of code. Very frustrating.

    Preran,
    I am having the same issue. I have a MBP connected to 2 x Dell 27" monitors over Mini DisplayPort to HDMI cables. Once I updated to OS X 10.10.2 this cursor highlight/jumping around issue only occurs on the connected monitors. If I move the program to the main laptop display the issue goes away. It does not require me to restart the program or the machine to make it work correctly. One way I am able to identify the issue is if I go to the line numbers in code like I wanted to select multiple lines - in the one that works correctly, the cursor turns into a white version where the tip of the cursor points to the right. When it is wrong, the cursor stays black and will only have the tip point to the left. Its just another way I identified if it was working cause I tried uninstalling DW and reinstalling - didn't work. Reset preferences as you discussed - no go. And I used other editors like IntelliJ and Adobe Edge Code - all of which work fine and don't display this issue.
    I tried the preferences reset you suggest and it doesn't work. I have another machine with OS X 10.10.1 on it and this issue is not there on any monitor. Any help with this ASAP as it pretty much stops you from being able to do any editing especially with longer pages as it consistently wants to page up when you select anything and if you then click again in another area it tries to move the highlighted code to that new spot.
    Update: I have a USB Microsoft Arch touch mouse connected (always worked just fine). When I go to place my cursor at some point in the code it causes the highlight flicker. If I switch over and use the built in trackpad, then I can place the cursor without the highlight issue. When trying to select multiple lines or sections of code, that still see's the highlight, page up and move of code issues regardless of input type.

  • Safari question here... Can I purchase a browser update for my mac book? I have OSX 10.6.8 and the "update softdate" function won't let me get past Safari 5.1.10. Please tell me I don't need a new computer just yet... Thx!!

    Safari question here... Can I purchase a browser update for my mac book? I have OSX 10.6.8 and the "update software" function won't let me get past Safari 5.1.10. Please tell me I don't need a new computer just yet... Thx!!

    You need to upgrade OS X.
    Upgrading to Yosemite
    You can upgrade to Yosemite from Lion or directly from Snow Leopard. Yosemite can be downloaded from the Mac App Store for FREE.
    Upgrading to Yosemite
    To upgrade to Yosemite you must have Snow Leopard 10.6.8 or Lion installed. Download Yosemite from the App Store. Sign in using your Apple ID. Yosemite is free. The file is quite large, over 5 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
        OS X Mavericks/Yosemite- System Requirements
          Macs that can be upgraded to OS X Yosemite
             1. iMac (Mid 2007 or newer) - Model Identifier 7,1 or later
             2. MacBook (Late 2008 Aluminum, or Early 2009 or newer) - Model Identifier 5,1 or later
             3. MacBook Pro (Mid/Late 2007 or newer) - Model Identifier 3,1 or later
             4. MacBook Air (Late 2008 or newer) - Model Identifier 2,1 or later
             5. Mac mini (Early 2009 or newer) - Model Identifier 3,1 or later
             6. Mac Pro (Early 2008 or newer) - Model Identifier 3,1 or later
             7. Xserve (Early 2009) - Model Identifier 3,1 or later
    To find the model identifier open System Profiler in the Utilities folder. It's displayed in the panel on the right.
         Are my applications compatible?
             See App Compatibility Table - RoaringApps.
    Upgrading to Lion
    If your computer does not meet the requirements to install Mavericks, it may still meet the requirements to install Lion.
    You can purchase Lion at the Online Apple Store. The cost is $19.99 (as it was before) plus tax.  It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
         Lion System Requirements
           1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7,
               or Xeon processor
           2. 2GB of memory
           3. OS X v10.6.6 or later (v10.6.8 recommended)
           4. 7GB of available space
           5. Some features require an Apple ID; terms apply.

  • I am running OSX 10.6.8 and when I try to install the latest security update there is an unknown error and the update cannot be implemented. I still have to restart my computer each time I try. Is anyone else experiencing this problem?

    I am running OSX 10.6.8 and when I try to install the latest security update there is an unknown error and the update cannot be implemented. I still have to restart my computer each time I try. Is anyone else experiencing this problem?     
    I tried using the downloaded update. It still didn't work but at least I did not have to restart my computer. The message was a little different too: "The installation failed. The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance."

    Run through this list of fixes, either something is corrupted or you have malware that's blocking the update.
    ..Step by Step to fix your Mac
    Make sure to backup your users files to a external storage drive first (not only TimeMachine as it may fail to restore) and disconnect, because if' it's a drive corruption/failing then the entire thing will either have to be replaced or a wipe and install done.
    Most commonly used backup methods
    If you do need to do a wipe and install
    How to erase and install Snow Leopard 10.6
    For Snow Leopard Speed Freaks

  • Im currently on OSX 10.6.8 and cant update iTunes beyond 11.3.1 in order to sync my new iPhone 6 any thoughts?

    Im currently on OSX 10.6.8 and cant update iTunes beyond 11.3.1 in order to sync my new iPhone 6 any thoughts?

    iTunes 11.4 for OS X 10.6iTunes 11.4 now supports the ability to sync your favorite music, movies, and more to devices with iOS 8. Sep 9, 2014

  • I have submitted build by xcode 6.1 but in itunes account shows us Apps and app updates submitted to the App Store must be built with Xcode 5.1.1 or later, and iOS 7 or later SDK after clicking the submit for review.

    I have submitted build by xcode 6.1 but in itunes account shows us Apps and app updates submitted to the App Store must be built with Xcode 5.1.1 or later, and iOS 7 or later SDK after clicking the submit for review.
    Please tell me the solution as soon as possible and i am able to remove the build.

    You have used Xcode 6.1 and it is a valid version, so you should not have any problem. Anyway, if there is any problem, Apple will contact with you to fix it before your app is published.

  • [svn] 854: Update AIR and Flash Player builds

    Revision: 854
    Author: [email protected]
    Date: 2008-03-18 13:43:42 -0700 (Tue, 18 Mar 2008)
    Log Message:
    Update AIR and Flash Player builds
    AIR: 031608apms
    Player:r119
    Modified Paths:
    flex/sdk/branches/3.0.x/frameworks/libs/player/playerglobal.swc
    flex/sdk/branches/3.0.x/in/air/air_version.txt
    flex/sdk/branches/3.0.x/in/air/mac/AIR Integration Kit.tbz2
    flex/sdk/branches/3.0.x/in/air/win/AIR Integration Kit.zip
    flex/sdk/branches/3.0.x/in/player/lnx/flashplayer.tar.gz
    flex/sdk/branches/3.0.x/in/player/lnx/install_flash_player_9_linux.tar.gz
    flex/sdk/branches/3.0.x/in/player/lnx/libflashplayer.so.tar.gz
    flex/sdk/branches/3.0.x/in/player/mac/Flash Player.app.zip
    flex/sdk/branches/3.0.x/in/player/mac/Install Flash Player 9 UB.dmg
    flex/sdk/branches/3.0.x/in/player/win/FlashPlayer.exe
    flex/sdk/branches/3.0.x/in/player/win/Install Flash Player 9 ActiveX.exe
    flex/sdk/branches/3.0.x/in/player/win/Install Flash Player 9 Plugin.exe

    http://blogs.adobe.com/rgalvan/2011/11/adding-fp11-support-to-flash-pro-cs5-and-cs5-5.html

  • [svn] 936: Update AIR and Flash Player builds

    Revision: 936
    Author: [email protected]
    Date: 2008-03-26 12:43:50 -0700 (Wed, 26 Mar 2008)
    Log Message:
    Update AIR and Flash Player builds
    AIR: 20080325apms.2
    Player:r124
    Modified Paths:
    flex/sdk/branches/3.0.x/frameworks/libs/player/playerglobal.swc
    flex/sdk/branches/3.0.x/in/air/mac/AIR Integration Kit.tbz2
    flex/sdk/branches/3.0.x/in/air/win/AIR Integration Kit.zip
    flex/sdk/branches/3.0.x/in/player/lnx/flashplayer.tar.gz
    flex/sdk/branches/3.0.x/in/player/lnx/install_flash_player_9_linux.tar.gz
    flex/sdk/branches/3.0.x/in/player/lnx/libflashplayer.so.tar.gz
    flex/sdk/branches/3.0.x/in/player/mac/Flash Player.app.zip
    flex/sdk/branches/3.0.x/in/player/mac/Install Flash Player 9 UB.dmg
    flex/sdk/branches/3.0.x/in/player/win/FlashPlayer.exe
    flex/sdk/branches/3.0.x/in/player/win/Install Flash Player 9 ActiveX.exe
    flex/sdk/branches/3.0.x/in/player/win/Install Flash Player 9 Plugin.exe

    http://blogs.adobe.com/rgalvan/2011/11/adding-fp11-support-to-flash-pro-cs5-and-cs5-5.html

Maybe you are looking for