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  <2017 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
<== Date ==> <== Thread ==>

Subject: Re: Segmentation fault at dbConvert.c in Ubuntu 32/64 bit
From: Benjamin Franksen <benjamin.franksen@helmholtz-berlin.de>
To: <freddie.akeroyd@stfc.ac.uk>, <ralph.lange@gmx.de>, <carsten.winkler@helmholtz-berlin.de>
Cc: tech-talk@aps.anl.gov
Date: Wed, 22 Feb 2017 13:13:38 +0100
On 21.02.2017 11:42, freddie.akeroyd@stfc.ac.uk 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  <2017
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  <2017
ANJ, 23 Feb 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·