Folks,
I have now reproduced the problem with static builds on Linux (Redhat 8)
even with the simple exampleApp that is distributed with EPICS base
(3.14.2).
I added the following line to exampleApp/configure/CONFIG
STATIC_BUILD=YES
and rebuilt exampleApp.
When I run the application I get the following:
********************************************************
millenia> ../../bin/linux-x86/myexample st.cmd
dbLoadDatabase("../../dbd/myexample.dbd",0,0)
registerRecordDeviceDriver(pdbbase)
dbLoadRecords("../../db/dbExample1.db","user=epicsHost")
dbLoadRecords("../../db/dbExample2.db","user=epicsHost,no=1,scan=1
second")
dbLoadRecords("../../db/dbExample2.db","user=epicsHost,no=2,scan=2
second")
dbLoadRecords("../../db/dbExample2.db","user=epicsHost,no=3,scan=5
second")
dbLoadRecords("../../db/dbSubExample.db","user=epicsHost")
iocInit()
########################################################################
####
########################################################################
####
Starting iocInit
########################################################################
####
Starting iocInit
### EPICS IOC CORE built on May 22 2003
### EPICS R3.14.2 $R3-14-2$ $2003/03/18 22:44:29$
########################################################################
####
Record epicsHost:subExample called mySubInit(0x8289f48, 0x8063500)
Segmentation fault
**********************************************************
I then ran the debugger on the resulting core file.
**********************************************************
millenia> gdb ../../bin/linux-x86/myexample core.7772
.....
Core was generated by `../../bin/linux-x86/myexample st.cmd'.
Program terminated with signal 11, Segmentation fault.
#0 0x08184f04 in nss_getline ()
(gdb) backtrace
#0 0x08184f04 in nss_getline ()
#1 0x08184749 in nss_parse_file ()
#2 0x08184374 in __nss_database_lookup ()
#3 0x0818564a in __nss_passwd_lookup ()
#4 0x0818085f in getpwuid_r ()
#5 0x081803dc in getpwuid ()
#6 0x080e0b15 in osiGetUserName ()
#7 0x080b3dc6 in cac::cac(cacNotify&) ()
#8 0x080ae432 in ca_client_context::ca_client_context(bool) ()
#9 0x080a686e in ca_context_create ()
#10 0x080912c3 in dbCaTask ()
#11 0x080dfaf1 in start_routine ()
#12 0x080e81a9 in pthread_start_thread ()
**********************************************************
This has now been reproduced on 3 separate Redhat 8 machines. Andrew
Johnson built on a Redhat 9 machine, and the resulting static binary
worked when run under both Redhat 9 and Redhat 8. It would be great if
some other folks could try this on Redhat 8 and 9 and see if it is
actually a version problem. Any ideas why it does not work on Redhat 8
would be most welcome.
Thanks,
Mark Rivers
- Replies:
- Re: Problem with static build on Linux Andrew Johnson
- Navigate by Date:
- Prev:
edb.def Bill Cruise
- Next:
Re: edb.def Andy Foster
- 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: OMS motor card JOG mode problems Ronald L. Sluiter
- Next:
Re: Problem with static build on Linux Andrew Johnson
- 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
|