Adam,
It appears to be dying in the C standard library. A quick look at the
call to vfprintf() indicates that the arguments are ok.
Perhaps there is a difference between your compiler switches and ours.
Here is a quick summary of what is used to build EPICS R3.14. This
should be similar EPICS R3.13.
gcc -D_REENTRANT -ansi -O3 -mpentium -fPIC
I am guessing that your lack of either -fPIC or -D_REENTRANT might be
the cause.
Jeff
> -----Original Message-----
> From: Adam Jon DeGrush [mailto:[email protected]]
> Sent: Friday, February 01, 2002 11:03 AM
> To: Jeff Hill
> Cc: [email protected]
> Subject: RE: CA client library and Connection handler
>
>
> Hello Jeff,
>
> I still see the same seg violation. Doing a back trace on the stack
> seems
> to show a low level problem from which I can make out much. Here is
the
> output in case you have an idea why it failed on something pretty
basic.
>
> #0 0x4009bec3 in buffered_vfprintf (s=0x8059558,
> format=0x8054851 "CA.Client.Diagnostic", '.' <repeats 46 times>,
> "\n",
> args=0x43) at vfprintf.c:2104
> #1 0x40096fb3 in _IO_vfprintf (s=0x8059558,
> format=0x8054851 "CA.Client.Diagnostic", '.' <repeats 46 times>,
> "\n",
> ap=0xbfffe840) at vfprintf.c:1272
> #2 0x0805274d in errlogVprintf ()
> #3 0x0804bcfb in ca_printf ()
> #4 0x0804b72d in ca_signal_with_file_and_lineno ()
> #5 0x0804bbe1 in ca_default_exception_handler ()
> #6 0x0804b6af in genLocalExcepWFL ()
> #7 0x0804e1b9 in cac_close_ioc ()
> #8 0x0804f941 in checkConnWatchdogs ()
> #9 0x0804ea35 in cac_mux_io ()
> #10 0x0804cef2 in cac_block_for_io_completion ()
> #11 0x0804b403 in ca_pend ()
> #12 0x08048fe2 in main () at connection.c:58
> #13 0x4005f306 in __libc_start_main (main=0x8048ed0 <main>, argc=1,
> ubp_av=0xbfffed84, init=0x8048aa8 <_init>, fini=0x8053390 <_fini>,
> rtld_fini=0x4000d2fc <_dl_fini>, stack_end=0xbfffed7c)
> at ../sysdeps/generic/libc-start.c:129
>
> Both of you are right; I probably do not need two connection handlers
> for
> my application.
>
> Just for the record I compiled it with
> gcc -g -Wall connection.c -o connection -L$EPICS/base/lib/Linux -lca -
> lCom
> -lm -I$EPICS/base/include
>
> with R3.13.4 and rh 7.0
>
> Thanks,
> Adam
>
> >
> > Please take a look at the stack trace in the debugger and if the
cause
> > isn't obvious then it would be ok to send your hopefully simplified
> and
> > self contained example source code and I will take a look.
> >
> > The latest CA ref manual for EPICS R3.14 can be found at this URL.
> It's
> > a bit easier o use because it has a hyperlink index. There are a few
> CA
> > functions that are present in R3.14, mentioned in this manual, but
not
> > in R3.13.
> >
- Replies:
- Re: CA client library and Connection handler Brian McAllister
- References:
- RE: CA client library and Connection handler Adam Jon DeGrush
- Navigate by Date:
- Prev:
Event handling Rolf Keitel
- Next:
Device Support for Stanford Research System SR830 Lock-In Amplifi er? Allison, Stephanie
- 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: CA client library and Connection handler Adam Jon DeGrush
- Next:
Re: CA client library and Connection handler Brian McAllister
- 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
|