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!! |
Quote:
jdk |
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 |
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/ |
All times are GMT -5. The time now is 04:45 AM. |