Shop OBEX P1 Docs P2 Docs Learn Events
OpenSpin Segmentation Fault??? — Parallax Forums

OpenSpin Segmentation Fault???

davidsaundersdavidsaunders Posts: 1,559
edited 2015-04-23 18:56 in Propeller 1
Everything was going great, then I did a new compile with a mixed C and PASM project, with no changes to the SPIN files, open spin suddenly started throwing a segmentation fault every time it is run with a file, regardless of the spin file.

IS this a common error with an easy workaround?

Comments

  • ElectrodudeElectrodude Posts: 1,658
    edited 2015-04-23 17:34
    Are you sure you didn't do anything? Does it print out anything before it segfaults? What if you compile just the Spin part of your project with another Spin compiler like BST or Propeller Tool? What if you compile a Spin-only project with no mixed C? What OS are you using?
  • davidsaundersdavidsaunders Posts: 1,559
    edited 2015-04-23 17:51
    Are you sure you didn't do anything? Does it print out anything before it segfaults? What if you compile just the Spin part of your project with another Spin compiler like BST or Propeller Tool? What if you compile a Spin-only project with no mixed C? What OS are you using?

    The fault accures on x86 Linux, with a openspin that had previously worked with no trouble. The SPIN files will compile with Propeller Tool with no trouble, or with OpenSpin on ARM Linux no trouble, just not with with that one copy of OpenSpin, even after I replaced the openspin with a new copy of the binary extracted from the .deb package, and put into the /opt/parallax/bin directory after deleting /opt/parallax/bin/openspin. I have nearly given up on the x86 all together, and am limitting my use of ARM Linux to a bare minimal, at this time only booting to run openspin and load the Prop.
  • davidsaundersdavidsaunders Posts: 1,559
    edited 2015-04-23 17:53
    Are you sure you didn't do anything? Does it print out anything before it segfaults? What if you compile just the Spin part of your project with another Spin compiler like BST or Propeller Tool? What if you compile a Spin-only project with no mixed C? What OS are you using?

    Everything I said above, and yes it prints out normally up to "compilint." and then after a short pause it throws a seg fault.

    Also it will seg fault even with a SPIN file that only contains a single empty PUB.
  • ElectrodudeElectrodude Posts: 1,658
    edited 2015-04-23 18:01
    Did you try running it under gdb? Where does it crash? In OpenSpin or in a library? I'm guessing a library, because if it were crashing in OpenSpin itself, replacing the openspin executable would have fixed it.
  • davidsaundersdavidsaunders Posts: 1,559
    edited 2015-04-23 18:56
    Did you try running it under gdb? Where does it crash? In OpenSpin or in a library? I'm guessing a library, because if it were crashing in OpenSpin itself, replacing the openspin executable would have fixed it.

    I did not attempt to run it in GDB, and I am currently running RISC OS on the Raspberry Pi, so I can not test that at the moment.

    The only worthwhile system for me on the x86 is MS/DR/PC/Open/Rx/FreeDOS so it is not so important anymore, I will no-longer fight an Operating System in order to develop for the Propeller, hence my changing directions for a bit to attempt to get OpenSpin running on RISC OS, and then to either port or write a propeller loader for RISC OS.
Sign In or Register to comment.