LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-22-2014, 04:45 AM   #1
mohammad taqy bayat
LQ Newbie
 
Registered: Aug 2014
Posts: 16

Rep: Reputation: Disabled
Segmentation fault (core dumped)


Hi friends,
I have a problem with my system when I run my exe file named BINA like following:

bayat@bayat:~/BINA/stadaq$ ./BINA -s johan.sys
Segmentation fault (core dumped)

my machine is 64-bit that UBUNTU 12.04 (32-bit) and ROOT 5.34.20 are installed on it.
What does "Segmentation fault" means? and how is possible to fix it?
Hope someone can help me. Thanks in advance!!
 
Old 08-22-2014, 05:31 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Quote:
Originally Posted by mohammad taqy bayat View Post
Hi friends,
I have a problem with my system when I run my exe file named BINA like following:

bayat@bayat:~/BINA/stadaq$ ./BINA -s johan.sys
Segmentation fault (core dumped)

my machine is 64-bit that UBUNTU 12.04 (32-bit) and ROOT 5.34.20 are installed on it.
What does "Segmentation fault" means? and how is possible to fix it?
Hope someone can help me. Thanks in advance!!
I don't understand. You can't run .exe files on linux. The .exe files run on Windows and Windows alone. What exactly is BINA supposed to do?
jdk
 
Old 08-25-2014, 02:57 AM   #3
mohammad taqy bayat
LQ Newbie
 
Registered: Aug 2014
Posts: 16

Original Poster
Rep: Reputation: Disabled
i mean the BINA is executable.
BINA is result of following makefile:

CC = gcc CFLAGS = -c -Wall LD = gcc

CSRCS = Online_ana.c fppdaq.c SentEvent2Root.c bina_unpack.c tcpip.c

OBJS = $(CSRCS:.c=.o)

INCLDS = -I. -I../cdaq -I../elec_lib -I../common

DEFS = -DLinux86 -DAnalysis -DOSF1

LIBS = -lpthread -lg2c -lcrypt -ldl -lm -lnsl CDAQLIB = ../cdaq/Debug.a ../elec_lib/Elec.a

BINA: $(OBJS)
$(LD) $(OBJS) -o $@ $(CDAQLIB) $(LIBS)

.c.o:
$(CC) $(CFLAGS) $(DEFS) $(INCLDS) $<

clean: rm -f *.o *~ core ./BINA
 
Old 08-25-2014, 03:10 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,133

Rep: Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273
I hope this is originally put into three lines:
CC = gcc CFLAGS = -c -Wall LD = gcc
also this should be put in 2 lines:
LIBS = -lpthread -lg2c -lcrypt -ldl -lm -lnsl CDAQLIB = ../cdaq/Debug.a ../elec_lib/Elec.a

From the other hand without knowing what is that BINA and having that core file.....
you can try strace for example or post-mortem debuggers to find out the reason.
http://www.epanorama.net/newepa/2014...ling-in-linux/
 
  


Reply

Tags
c++, linux, ubuntu 12.04


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Segmentation fault (Core dumped) ramshank Linux - Newbie 4 04-24-2014 03:35 AM
Segmentation fault (core dumped) sirjase Programming 8 12-18-2013 04:40 AM
Segmentation fault (core dumped) nasim751 Programming 2 01-28-2008 03:56 PM
Segmentation fault (core dumped) nasim751 Programming 1 01-27-2008 10:18 PM
Segmentation fault (core dumped) hasanaydin Linux - General 0 03-27-2002 08:47 AM


All times are GMT -5. The time now is 01:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration