[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
seg-fault
From: |
Frank Rehberger |
Subject: |
seg-fault |
Date: |
09 May 2002 00:24:41 +0200 |
after I have managed to link gnu-prolog with ORBit2 interface, it
returns with seg-fault on start-up of application :(
Application should start local CORBA-manager and connect to
naming-service.
The current version does not execute any gnu-prolog function, even
Start_Prolog(argc, argv); and Stop_Prolog(); have been commented.
The only difference is, linking gnu-prolog libs against application code
and using gplc as linker instead of default linker. If I don't set
stack sizes, application returns with stack overflow.
Any suggestions would be very helpfull. The application shall be a
standallone server waiting for requests.
-------- The build process looks like: --------------
gplc -c prolog-main.pl
prolog-main.pl:45--48 warning: singleton variables [Sol] for first/2
cd .. \
&& CONFIG_FILES=src/Makefile CONFIG_HEADERS= /bin/sh ./config.status
config.status: creating src/Makefile
make[1]: Leaving directory `/home/frehberg/project/mrp-sked/src'
make[1]: Entering directory `/home/frehberg/project/mrp-sked/src'
gcc -DPACKAGE=\"mrp-sked\" -DVERSION=\"0.1\" -DHAVE_DLFCN_H=1
-DSTDC_HEADERS=1 -I. -I. -DORBIT2=1
-I/gnome/head/INSTALL/include/glib-2.0
-I/gnome/head/INSTALL/lib/glib-2.0/include
-I/gnome/head/INSTALL/include/orbit-2.0
-I/gnome/head/INSTALL/include/linc-1.0
-I/usr/lib/gprolog-1.2.8/include -g -O2 -c mrp-sked.c
gcc -DPACKAGE=\"mrp-sked\" -DVERSION=\"0.1\" -DHAVE_DLFCN_H=1
-DSTDC_HEADERS=1 -I. -I. -DORBIT2=1
-I/gnome/head/INSTALL/include/glib-2.0
-I/gnome/head/INSTALL/lib/glib-2.0/include
-I/gnome/head/INSTALL/include/orbit-2.0
-I/gnome/head/INSTALL/include/linc-1.0
-I/usr/lib/gprolog-1.2.8/include -g -O2 -c mrp-sked-skels.c
gcc -DPACKAGE=\"mrp-sked\" -DVERSION=\"0.1\" -DHAVE_DLFCN_H=1
-DSTDC_HEADERS=1 -I. -I. -DORBIT2=1
-I/gnome/head/INSTALL/include/glib-2.0
-I/gnome/head/INSTALL/lib/glib-2.0/include
-I/gnome/head/INSTALL/include/orbit-2.0
-I/gnome/head/INSTALL/include/linc-1.0
-I/usr/lib/gprolog-1.2.8/include -g -O2 -c mrp-sked-common.c
gplc -o mrp-sked -L -Wl,--export-dynamic -L -L/gnome/head/INSTALL/lib
-L -lORBit-2 -L -lgthread-2.0 -L -lpthread -L -lgobject-2.0 -L
-lgmodule-2.0 -L -ldl -L -lglib-2.0 -L -lm -L -llinc --local-size
40000 --global-size 60000 prolog-main.o mrp-sked.o mrp-sked-skels.o
mrp-sked-common.o
make[1]: Leaving directory `/home/frehberg/project/mrp-sked/src'
make[1]: Entering directory `/home/frehberg/project/mrp-sked'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/home/frehberg/project/mrp-sked'
------------- executable application yields: -----------
address@hidden mrp-sked]$ ./src/mrp-sked
Segmentation fault (core dumped)
--
-------------------------------------------------
Frank.Rehberger at acm.org
-------------------------------------------------
The Twelve Networking Truths
http://www.ietf.org/rfc/rfc1925.txt?number=1925
-------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- seg-fault,
Frank Rehberger <=