Welcome, Guest
Username: Password: Remember me
CodeTyphon Cross-Build Development, discussions and problems
  • Page:
  • 1

TOPIC:

Raspberry Pi 2 Program "Segmentation fault" 9 years 1 month ago #8355

  • Edox
  • Edox's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 0
Hi,

Im trying to build a program for my Raspberry Pi 2, all is OK except when a try to run the program in the Raspberry, i get "segment faul" message.
- Linux Mint 17.2 installed in VirtualBox version 4.3.18r96516
- Codetyphon 5.50 installed in Linux MInt 17.2 cinnamon 32 bits.

Can you help me please?

Thanks in advance!

Please Log in or Create an account to join the conversation.

Raspberry Pi 2 Program "Segmentation fault" 9 years 1 month ago #8356

  • usbdoo
  • usbdoo's Avatar
  • Visitor
  • Visitor
www.raspberrypi.org/downloads/
Raspbian is the Foundation’s official supported Operating System.
What OS is on the Raspberry Pi 2?

Codetyphon 5.50
I'm doing this on Debian 8 and works very well.

Please Log in or Create an account to join the conversation.

Raspberry Pi 2 Program "Segmentation fault" 9 years 1 month ago #8357

  • Edox
  • Edox's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 0
Hi usbdoo
Thank for you reply

My Raspberry has installed 2015-09-24-raspbian-jessie.

Please Log in or Create an account to join the conversation.

Raspberry Pi 2 Program "Segmentation fault" 9 years 1 month ago #8358

  • usbdoo
  • usbdoo's Avatar
  • Visitor
  • Visitor
it should be okay.
Try to start this program on the Rapberry Pi 2
Attachments:

Please Log in or Create an account to join the conversation.

Raspberry Pi 2 Program "Segmentation fault" 9 years 1 month ago #8359

  • Edox
  • Edox's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 0
Thank for your Help, but I get the same message.

Please Log in or Create an account to join the conversation.

Raspberry Pi 2 Program "Segmentation fault" 9 years 1 month ago #8360

  • usbdoo
  • usbdoo's Avatar
  • Visitor
  • Visitor
This program has been tested on RASPBIAN WHEEZY.

Please Log in or Create an account to join the conversation.

Raspberry Pi 2 Program "Segmentation fault" 9 years 1 month ago #8361

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Sir
did you give executable permissions to your project ?
did you install GTK2 libraries to your Pi Box ?
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Raspberry Pi 2 Program "Segmentation fault" 9 years 1 month ago #8362

  • usbdoo
  • usbdoo's Avatar
  • Visitor
  • Visitor
Only now I see Jessi.
RASPBIAN JESSIE
Based on Debian Jessie
Version:September 2015
Release date:2015-09-24
Kernel version:4.1

I started to test.
when I get the results I say.

Please Log in or Create an account to join the conversation.

Raspberry Pi 2 Program "Segmentation fault" 9 years 1 month ago #8363

  • Edox
  • Edox's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 0
Thank you Mr. Stefanos for your reply
The first answer is yes, about the second, i install gtk2 in my Pi box with :

sudo apt-get update
sudo apt-get install libgtk2.0-dev.

But i get the same message "segmentation fault"

Please Log in or Create an account to join the conversation.

Raspberry Pi 2 Program "Segmentation fault" 9 years 1 month ago #8364

  • usbdoo
  • usbdoo's Avatar
  • Visitor
  • Visitor
My program works without problems on RASPBIAN JESSIE.
Repeat the installation Raspberry PI"

Please Log in or Create an account to join the conversation.

Raspberry Pi 2 Program "Segmentation fault" 9 years 1 month ago #8365

  • usbdoo
  • usbdoo's Avatar
  • Visitor
  • Visitor
dd bs=4M if=/home/usb/Downloads/2015-09-24-raspbian-jessie.img of=/dev/sdc
Do not forget.
sync
to safely give out sd

Please Log in or Create an account to join the conversation.

Raspberry Pi 2 Program "Segmentation fault" 9 years 1 month ago #8366

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
try and
    sudo apt-get install -y libgtk2.0
    sudo apt-get install -y libgtkglext1 
    sudo apt-get install -y gtk2-engines-pixbuf 
    sudo apt-get install -y libcairo2

What Typhon packages do you in your Project ?
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Raspberry Pi 2 Program "Segmentation fault" 9 years 1 month ago #8367

  • Edox
  • Edox's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 0
OK usbdoo
Thank for your time, I will try to install again RASPBIAN JESSIE and tell you what i get

Please Log in or Create an account to join the conversation.

Raspberry Pi 2 Program "Segmentation fault" 9 years 1 month ago #8368

  • Edox
  • Edox's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 0
Mr. Stefanos

I installed according to the instructions gtk2.0, the installation was OK.
sudo apt-get install -y libgtk2.0
sudo apt-get install -y libgtkglext1
sudo apt-get install -y gtk2-engines-pixbuf
sudo apt-get install -y libcairo2

But get the same message when i run project1in my Pi Box.

About the second advice, I dont fully understand your question.
The program is only the form with a button

Please Log in or Create an account to join the conversation.

Raspberry Pi 2 Program "Segmentation fault" SOLVED 9 years 1 month ago #8377

  • Edox
  • Edox's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 0
Many thanks for your help. The problem is solved but I dont know why this happen.
When I put the program in the Pi box using vsftpd and run it I get message "segmentation fault", but
when I put the program in the Pi box using Pendrive this run OK.
by last, when I compress the program and put in Pi box using vsftp, and then I decompress it in the Pi box it run OK. :huh:

Please Log in or Create an account to join the conversation.

Raspberry Pi 2 Program "Segmentation fault" SOLVED 9 years 1 month ago #8378

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Thanks Sir,
have fun
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • Page:
  • 1