Can you extract the command line and run it by hand?
(Just trying to be helpful. Michael already asked for the core file)
Otherwise you may be able to run the compiler under gdb ?!?
On 07/03/17 15:32, Benjamin Franksen wrote:
During development of the sequencer it may happen that the SNL compiler
(snc) crashes with a segmentation fault. With 3.14 this looks like
franksen@tiber: ...test/validate/O.linux-x86 > rm wait.*
franksen@tiber: ...test/validate/O.linux-x86 > make
make -f ../Makefile TOP=../../.. T_A=linux-x86 all
make[1]: Entering directory
`/home/franksen/src/seq/branch-2-3/home/test/validate/O.linux-x86'
perl /home/franksen/src/epics-base/3.14/bin/linux-x86/mkmf.pl -m
wait.st.d . ../os/Linux ../os/posix ../os/default .. wait.i ../wait.st
make[1]: Leaving directory
`/home/franksen/src/seq/branch-2-3/home/test/validate/O.linux-x86'
make[1]: Entering directory
`/home/franksen/src/seq/branch-2-3/home/test/validate/O.linux-x86'
preprocessing ../wait.st
/usr/bin/gcc -x c -E -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X86_
-DUNIX -Dlinux -I. -I../O.Common -I. -I..
-I../../../include/os/Linux -I../../../include
-I/home/franksen/src/epics-base/3.14/include/os/Linux
-I/home/franksen/src/epics-base/3.14/include ../wait.st > wait.i
compiling wait.i to C
/home/franksen/src/seq/branch-2-3/home/bin/linux-x86/snc +m wait.i -o
wait.c.tmp
make[1]: *** [wait.c] Segmentation fault (core dumped)
make[1]: Leaving directory
`/home/franksen/src/seq/branch-2-3/home/test/validate/O.linux-x86'
make: *** [all] Error 2
franksen@tiber: ...test/validate/O.linux-x86 > ll wait.*
-rw-rw-r-- 1 franksen franksen 0 Mär 7 15:14 wait.c.tmp
-rw-rw-r-- 1 franksen franksen 1707 Mär 7 15:14 wait.i
-rw-rw-r-- 1 franksen franksen 84 Mär 7 15:14 wait.st.d
Note the line
make[1]: *** [wait.c] Segmentation fault (core dumped)
in the make output. Now with 3.15:
rm wait.*
franksen@tiber: ...test/validate/O.linux-x86 > make
make -f ../Makefile TOP=../../.. T_A=linux-x86 all
make[1]: Entering directory
`/home/franksen/src/seq/branch-2-3/home/test/validate/O.linux-x86'
compiling waitfun.i to C
/home/franksen/src/seq/branch-2-3/home/bin/linux-x86/snc +m waitfun.i
-o waitfun.c.tmp
preprocessing ../wait.st
/usr/bin/gcc -x c -E -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X86_
-DUNIX -Dlinux -I. -I../O.Common -I. -I. -I..
-I../../../include/compiler/gcc -I../../../include/os/Linux
-I../../../include
-I/home/franksen/src/epics-base/3.15/include/compiler/gcc
-I/home/franksen/src/epics-base/3.15/include/os/Linux
-I/home/franksen/src/epics-base/3.15/include ../wait.st > wait.i
compiling wait.i to C
/home/franksen/src/seq/branch-2-3/home/bin/linux-x86/snc +m wait.i -o
wait.c.tmp
perl -CSD /home/franksen/src/epics-base/3.15/bin/linux-x86/mkmf.pl -m
wait.st.d . ../compiler/gcc ../compiler/default . ../os/Linux
../os/posix ../os/default .. wait.i ../wait.st
make[1]: Leaving directory
`/home/franksen/src/seq/branch-2-3/home/test/validate/O.linux-x86'
make[1]: Entering directory
`/home/franksen/src/seq/branch-2-3/home/test/validate/O.linux-x86'
compiling waitfun.i to C
/home/franksen/src/seq/branch-2-3/home/bin/linux-x86/snc +m waitfun.i
-o waitfun.c.tmp
compiling wait.i to C
/home/franksen/src/seq/branch-2-3/home/bin/linux-x86/snc +m wait.i -o
wait.c.tmp
make[1]: Leaving directory
`/home/franksen/src/seq/branch-2-3/home/test/validate/O.linux-x86'
make: *** [all] Error 2
franksen@tiber: ...test/validate/O.linux-x86 > ll wait.*
-rw-rw-r-- 1 franksen franksen 0 Mär 7 15:24 wait.c.tmp
-rw-rw-r-- 1 franksen franksen 1707 Mär 7 15:24 wait.i
-rw-rw-r-- 1 franksen franksen 47 Mär 7 15:24 wait.st.d
Note: nothing about seg faults or dumped cores in the make output here.
I have not the slightest idea what could cause this.
I have checked (a) the environment (b) the MAKEFLAGS and (c) the command
line that invokes snc. They are exactly the same (apart from the
variable EPICS_BASE in the environment).
Cheers
Ben
--
"Make it so they have to reboot after every typo." ― Scott Adams
________________________________
Helmholtz-Zentrum Berlin für Materialien und Energie GmbH
Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.
Aufsichtsrat: Vorsitzender Dr. Karl Eugen Huthmacher, stv. Vorsitzende Dr. Jutta Koch-Unterseher
Geschäftsführung: Prof. Dr. Anke Rita Kaysser-Pyzalla, Thomas Frederking
Sitz Berlin, AG Charlottenburg, 89 HRB 5583
Postadresse:
Hahn-Meitner-Platz 1
D-14109 Berlin
http://www.helmholtz-berlin.de
- Replies:
- 3.15 build rules suppress crash message [was: EPICS make problem] Ben Franksen
- References:
- EPICS make problem Benjamin Franksen
- Navigate by Date:
- Prev:
stream device user variables Al Honey
- Next:
3.15 build rules suppress crash message [was: EPICS make problem] Ben Franksen
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
<2017>
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: EPICS make problem Benjamin Franksen
- Next:
3.15 build rules suppress crash message [was: EPICS make problem] Ben Franksen
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
<2017>
2018
2019
2020
2021
2022
2023
2024
|