arduino / toolchain-avr

The AVR toolchain used by the Arduino IDE
142 stars 48 forks source link

Arduino IDE - internal compiler error: Segmentation fault #63

Closed paulr4 closed 5 years ago

paulr4 commented 5 years ago

I'm suffering from the problem raised in this forum post, resulting in a segmentation fault in the compiler. It goes away when downgrading to Arduino boards package 6.1.21 from 6.1.23.

Posts there indicate it's been fixed already, but is a release to the IDE anywhere on the horizon? Sorry if this is the wrong place to ask, I'm not sure what else to do!

facchinm commented 5 years ago

This is the proposed PR that includes all the latest goodies to fix toolchain 5.4.0 bugs https://github.com/arduino/Arduino/pull/8976 . The issue has been reported a lot of times so I'm closing as duplicate :wink:

paulr4 commented 5 years ago

Thanks for the response, is it going to see the light of day soon or does it need further testing?

facchinm commented 5 years ago

It still needs testing before becoming official, but reporting on that thread if it fixes your problems and eventually other info will speedup the merge.

paulr4 commented 5 years ago

I would be very happy to test it, but I'm afraid I don't know how... is there a guide anywhere that you can point me toward?

per1234 commented 5 years ago

@paulr4

  1. Open this link: https://github.com/arduino/Arduino/pull/8976#issuecomment-503638485
  2. You will see a reply from ArduinoBot with a list of links to downloads of the test build of the Arduino IDE for each operating system. Click on the link for the operating system you're using.
  3. Wait for the download to finish.
  4. Extract the downloaded file
  5. Create a folder inside the unzipped folder named portable. This will cause the test build of the Arduino IDE to run in portable mode so it uses the new version of Arduino AVR Boards instead of the 1.6.21 version you installed.
  6. You will find the arduino executable inside the extracted folder. Run that to start the Arduino IDE.
paulr4 commented 5 years ago

Thanks, I'll give it a go!

paulr4 commented 5 years ago

I'm afraid the segmentation fault bug is very fickle and I couldn't recreate it even on the old build. If I run into it again I'll test the new build then.