Os X Lion Bus Error 10
enter a title. You can not post a blank message. Please type your message and try again. joefromfairland Level 1 (0 points) Q: Bus error: 10 running Java after 10.7.2 (11C74) update After doing a software update today I can no longer run the Java compiler or any Java programs from the Terminal.I consistently get the error --> Bus error: 10Any help would be apreciated.-Joe MacBook Pro, Mac OS X (10.7.2) Posted on Nov 11, 2011 7:45 PM I have this question too by tamasnet,Solvedanswer tamasnet Level 1 (10 points) A: Hi Joe,I had the exact same problem, but all I had to do was "unfix" the symlinks in /System/Library/Frameworks/JavaVM.framework/Versions which the Java update always screws up. Just make sure the 1.5 and 1.5.0 symlinks are pointing to your actual 1.5 JDK and you should be back in business.Or at least this worked for me! t. Posted on Nov 12, 2011 10:31 AM See the answer in context Close Q: Bus error: 10 running Java after 10.7.2 (11C74) update All replies Helpful answers by tamasnet,Solvedanswer tamasnet Nov 12, 2011 10:31 AM in response to joefromfairland Level 1 (10 points) Nov 12, 2011 10:31 AM in response to joefromfairland Hi Joe,I had the exact same problem, but all I had to do was "unfix" the symlinks in /System/Library/Frameworks/JavaVM.framework/Versions which the Java update always screws up. Just make sure the 1.5 and 1.5.0 symlinks are pointing to your actual 1.5 JDK and you should be back in business.Or at least this worked for me! t. Helpful (0) Reply options Link to this post by xavierzhao, xavierzhao Dec 3, 2011 1:32 AM in response to tamasnet Level 1 (0 points) Dec 3, 2011 1:32 AM in response to tamasnet fixed, thank you Helpful (0) Reply options Link to this post This site contains user submitted content, comments and opinions and is for informational purposes only. Apple may provide or
ForumsCategoryBoardDocumentsUsers turn on suggestions Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type. Showing results for Search instead for Did you mean: Reply Topic Options Subscribe to RSS Feed Mark Topic as New Mark Topic as Read Float this Topic to the Top Bookmark Subscribe Printer Friendly Page All Forum Topics Previous Topic Next Topic DAQmxBaseCreateTask -> Bus Error: https://discussions.apple.com/thread/3484999?start=0&tstart=0 10 Solved! Go to Solution DAQmxBaseCreateTask -> Bus Error: 10 Tangle Member 11-04-2011 12:56 AM Options Mark as New Bookmark Subscribe Subscribe to RSS Feed Highlight Print Email to a Friend Report to a Moderator Hello, I've bought a USB-6009 and downloaded the NI-DAQmx Base software on to my MacBook running OS 10.7.2. When running http://forums.ni.com/t5/Multifunction-DAQ/DAQmxBaseCreateTask-gt-Bus-Error-10/td-p/1763708 lsdaq I was told to update the firmware on the USB-6009, so I did using FWUpdate. The examples that come with NI-DAQmx Base compile ok, but cause an error when they run. The error is- Bus Error: 10 I think this is an OS error, but it is occuring when the following line is executed- DAQmxErrChk (DAQmxBaseCreateTask("",&taskHandle)); This line of code seem fine when I read the documentation. Furthermore it is consistent with every example and code snippet I can find. Has anyone experienced this problem and/or know how to solve it? Thanks Lee. P.S. I was unable to attach the source file because the stupid forum says I have set the wrong content type for the file extension, but it does not let me change the content type. So I've pasted it below. #include "NIDAQmxBase.h" #include
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies http://stackoverflow.com/questions/7693924/fscanf-bus-error-10-when-switching-from-snow-leopard-to-lion of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: os x Sign up fscanf bus error: 10 when switching from Snow Leopard to Lion up vote 3 down vote favorite First off, this snippet is not meant for production code. So please, no lecturing about it "being unsafe." Thanks! So, the following code is part of a parser that takes in a csv and uses it to populate an sqlite3 db. When compiled and os x lion ran in Snow Leopard, it worked just fine. Now that I've switched to Lion, the scanf statement throws Bus Error: 10. Specifically, it seems to have something to do with how I am consuming and discarding the '\n' at the end of each line: int main() { sqlite3* db; sqlite3_open("someExistingDB.sqlite3", &db); FILE *pFile; pFile = fopen("excelData.csv","r"); char name[256],country[256], last[256], first[256], photoURI[256]; char sqlStatement[16384]; while(fscanf(pFile, "%[^,],%[^,],%[^,],%[^,],%[^\n]%*c", name, country, last,first, photoURI) != EOF) { blah... ... if I remove the last %*c, which is meant to consume the '\n' and ignore it so as to advance to the next line, the program does not crash. But of course does an incorrect parsing. Also, mind you, the EOF doesn't seem to be the problem; I'e also tried a single fscanf statement instead of the while-loop shown above. Any thoughts? EDIT: Let me add that the code was originally compiled and ran in an intel core duo (32-bit) macbook with Snow Leopard and now I am compiling it and running it on a MacPro (64-bit) with Lion. So I wonder if it might have something to do with align