TOP
SSV SOFTWARE SYSTEMS REGISTER  REGISTER
Log in to check your private messages  Log in to check your private messages
START FAQ SEARCH MITGLIEDER PROFILE  Log in 
SSV-Forum
segmentation fault

 
Post new topic   Reply to topic    SSV-Forum Forum Index >>> DNP/9200
<<< Previous topic - Next topic >>>  
Display posts from previous:   
Author Message
radron



Joined: 17 Dec 2008
Posts: 1

PostPosted: 17.12.2008, 21:03    Post subject: segmentation fault Reply with quote

Hallo,

ich nehme gerade das 'DIL/NetPC DNP/9200: Router Application Kit (RAK)' in Betrieb.
Um nun eine C-Applikkation zu schreiben und auszuführen bin ich wie folgt vorgegangen:

- coLinux installiert auf Windows XP
- arm-toolchain-SSV20020812.tgz aufgespielt
- kleines Testprogramm (hello) und mit /usr/local/arm/2.95.2/bin/arm-linux-gcc –o hello hello.c compiliert
- anschließend via FTP auf den DNP/9200 ins Flash gezogen (auch die entsprechenden Rechte vergeben)
- will dann mit ./hello das ganze ausführen

RESULTAT: segmentation fault

- habe daraufhin compelierung mit export PATH=/usr/local/arm-ssv1-linux/bin:$PATH
arm-ssv1-linux-gcc -Wall -O2 -Wl,-s -lm -o essai essai.c im 'arm-ssv1-linux' Verzeichnis versucht.

RESULTAT: segmentation fault

Was mache ich falsch?

ps: bin kein C-Profi
Back to top
View user's profile Send private message
Ole



Joined: 26 Nov 2008
Posts: 20

PostPosted: 23.12.2008, 22:04    Post subject: Reply with quote

Klingt doof, aber Du musst sicherstellen das Dein FTP Programm im Binären Modus überträgt...

Wenns trotzdem auftritt, liegt das an einem Programmfehler, z.b. bei einem free mit einem Null Pointer oder bei einem Stack overflow.

Und was bedeuten diese Command Line paras:
-Wl,-s <--- sicher das ein Komma da hin soll? Und musst du wirklich statisch linken, oder wofür steht das s?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SSV-Forum Forum Index >>> DNP/9200 All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

SSV SOFTWARE SYSTEMS

Dünenweg 5
30419 Hannover

Fon: +49(0)511  ·  40 000-0
Fax: +49(0)511  ·  40 000-40

sales@ssv-embedded.de


Impressum    ·    Datenschutz    ·    AGB

© 2024 SSV SOFTWARE SYSTEMS GmbH. Alle Rechte vorbehalten.

ISO 9001:2015