Macosx Bus Error
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this what is bus error 10 site About Us Learn more about Stack Overflow the company Business Learn more bus error 10 c++ 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: Sign up bus error in simple Mac OSX C program up vote 1 down vote favorite I am writing a simple C program to create a twelve tone matrix. The code compiles, but I get run time error 'Bus Error'. In the debugger it says EXC_BAD_ACCESS. int main () { int j,k,l; int twelve[13][13]; void mat(int twelve[13][13]); printf("input original tone row \n"); for(j=0;j<=11;j++) { scanf("%2i",&twelve[j][0]); } mat(twelve); for(k=0;k<=11;k++) { for(l=0;l<=11;l++) { printf("%i ",twelve[l][k]); } printf("\n"); } return 0; } void mat(twelve) int twelve[13][13]; { int j,k,l; int temp; /*inversion*/ for(j=1;j<=11;j++) { twelve[0][j] = 12 - twelve[j][0]; } /*fill in columns*/ /*this sections seems to be what's crashing it */ for(k=1;k<=11;k++) { for(l=1;1<=11;l++) { temp = twelve[0][k] + twelve[l][0]; if(temp >= 12) { twelve[k][l] = temp - 12; } else { twelve[k][l] = temp; } } } } c xcode osx exc-bad-access share|improve this question edited Oct 10 '12 at 16:48 athspk 4,99872549 asked Jan 14 '10 at 0:42 Levi 613 Compile with -g or use XCode's debugger, and let us know what line of code has the crash ;v) . –Potatoswatter Jan 14 '10 at 0:46 1 this code gives me the willies. –Stephen Canon Jan 14 '10 at 0:46 Wow, I haven't seen K&R C in ages... –R Samuel Klatchko Jan 14 '10 at 1:13 add a comment| 2 Answers 2 active oldest votes up vote 11 down vote There is a typo in the inner loop condition of the mat() subroutine. This is why I don't like 'l' (el) as an index. for(l=1;1<=11;l++)
a title. You can not post a blank message. Please type your message and try again. NuTachyon Level 1 (1 points) Q: Bus error: 10 What is the meaning of: "Bus error: 10" I installed update 10.10.4 and my MacBook Pro 15 inch (early 2011) which has been running Yosemite has nearly impossible to use.Virtually any mouse click resulted in a couple minutes of the spinning beach ball before responding to requests. Ran disk utilities and fixed permissions. Ran slightly faster. Still unusable beach ball on each mouse click. I booted to safe boot http://stackoverflow.com/questions/2061445/bus-error-in-simple-mac-osx-c-program mode to attempt to run a backup. It gave me an error message "can't write to drive"I verified this new 2Tb external drive had no issues. Tried again. Same error. Them I rebooted to normal boot. Backup hung at approx 50Gb. Tried to retry safe boot mode, computer hung at point of loading desktop image. Gave it 2 hours to get past this https://discussions.apple.com/thread/7145240?start=0&tstart=0 point. Booted back in normal, attempted time machine again and based on a you-tube video, I went to console, searched for wdworker to search for errors...in on the system.log I find: (shortened for readability)...com.apple.xpc.launchd[1] (com.apple.mdworker.32bit.02000000-0000-0000-0000-000000000000 [6813]): Service exited due to signal: Bus error 10note 1: [6813] is incrementing for each entry. note 2: I tried to give full account of steps. A few iterations left out. note 3: I can give more detail as necessary. Anyone in Apple Land have a clue? MacBook Pro (15-inch Early 2011), OS X Yosemite (10.10), batt charge erratic since Yosemite Posted on Jul 25, 2015 2:29 AM I have this question too Close Q: Bus error: 10 All replies Helpful answers by Linc Davis, Linc Davis Jul 25, 2015 10:46 AM in response to NuTachyon Level 10 (208,037 points) Applications Jul 25, 2015 10:46 AM in response to NuTachyon Almost certainly the startup drive is failing, or there is some other internal hardware fault.Back up all data on the drive immediately if you don't already have a current backup. There are ways to back up a computer that isn't fully functional
Sign in Pricing Blog Support Search GitHub This repository Watch 70 Star 1,858 Fork 338 gruntjs/grunt-contrib-watch Code Issues 109 Pull requests 12 Projects 0 Pulse Graphs Bus error in OS X 10.9 #204 Closed oskarrough opened this Issue Sep 9, https://github.com/gruntjs/grunt-contrib-watch/issues/204 2013 · 66 comments Projects None yet Labels onhold wontfix Milestone No milestone Assignees No one assigned 49 participants and others oskarrough commented Sep 9, 2013 Hi, I realize I'm running a developer preview of OS X but before I roll back to 10.8 I wanted to see if there's a fix to the following error. When a change is detected, the watch task breaks my 'grunt server' with the following: Running "watch" bus error task Waiting...Bus error: 10 OS X 10.9 DP7 Node 0.10.18 Grunt 0.4.1 Generator-webapp 0.4.2 (didn't change a line in the code so gruntfile etc. are all the defaults) grunt member shama commented Sep 9, 2013 Sounds like an error upstream that will need to be addressed by https://github.com/joyent/libuv (or may have already). We can't fix that error from this plugin so I recommend staying on OSX 10.8 until node catches up. shama closed this Sep 9, bus error 10 2013 spacenick commented Sep 17, 2013 Got the same issue; OS X 10.8.5 Running "watch" task Bus error: 10 grunt member shama commented Sep 17, 2013 @spacenick Oh really? Which version of node.js? spacenick commented Sep 17, 2013 Oops yea sorry, node v0.10.18 grunt-cli v0.1.9 grunt v0.4.1 grunt member shama commented Sep 17, 2013 Thanks! Still nothing we can likely do to fix that from here. I haven't ran into this issue and I'm on the same setup. If you can, creating a test repo that recreates the error would be much helpful. It was helpful in tracking down this previous watch error: nodejs/node-v0.x-archive#5463 spacenick commented Sep 17, 2013 Thanks @shama varju commented Sep 24, 2013 @spacenick Thanks; I assumed this was a 10.9 issue. Downgrading to node 0.10.17 fixed this for me. neekey commented Oct 5, 2013 Same issue with OSX 10.9, simple watch some .scss files and to compile them with grunt-contrib-compass but once file change is detected, it just crashed down: $ grunt watch Running "watch" task Waiting...OK >> File "src/common/style/_common.scss" changed. Bus error: 10 OSX DP5 Node: v0.10.20 Grunt: 0.4.1 neekey commented Oct 5, 2013 Thank you @varju, fix this problem downgrading to node 0.10.17 This was referenced Oct 5, 2013 Closed Bus Error on Mac OS 10.9 DP8 nodejs/node-v0.x-archive#6251 Open OSX 10.9 bus error: 10 abc-team/generator-kissy-cake#51 Closed Grunt Server error yeoman/generat