EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Segmentation fault at dbConvert.c in Ubuntu 32/64 bit
From: Benjamin Franksen <[email protected]>
To: <[email protected]>, <[email protected]>, <[email protected]>
Cc: [email protected]
Date: Wed, 22 Feb 2017 13:13:38 +0100
On 21.02.2017 11:42, [email protected] wrote:
> I think  get_precision()  expects a  long*  for the precision but the
> variable passed is declared   int   in getFloatString() and
> getDoubleString(). In theory this could cause a crash on 64 bit linux
> as int and long are different sizes, but It wouldn’t explain the
> 32bit crash though as int and long are the same size on that
> architecture…

Carsten told me (on the phone) that indeed it /looks/ as if this is
causing the problem. He'll send a patch when he is sure.

The root cause is, of course, the completely unnecessary circumvention
of type checking in the methods of struct rset (and similarly for dset,
drvet, etc).

I see that even in 3.16 this has not changed.

Cheers
Ben
-- 
"Make it so they have to reboot after every typo." ― Scott Adams

Attachment: signature.asc
Description: OpenPGP digital signature


References:
Segmentation fault at dbConvert.c in Ubuntu 32/64 bit Carsten Winkler
Re: Segmentation fault at dbConvert.c in Ubuntu 32/64 bit Carsten Winkler
Re: Segmentation fault at dbConvert.c in Ubuntu 32/64 bit Ralph Lange
RE: Segmentation fault at dbConvert.c in Ubuntu 32/64 bit freddie.akeroyd

Navigate by Date:
Prev: Re: IOC Connecting Problem Pilkyu Jung
Next: RTEMS + EPICS on Motorola MVME6100 ("Beatnik") Michael Westfall
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Segmentation fault at dbConvert.c in Ubuntu 32/64 bit freddie.akeroyd
Next: Re: Segmentation fault at dbConvert.c in Ubuntu 32/64 bit Carsten Winkler
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
ANJ, 21 Dec 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·