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  <20122013  2014  2015  2016  2017  2018  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  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Bug on autosave for the ULONG type array
From: "Kim, Kukhee" <[email protected]>
To: "[email protected]" <[email protected]>, "[email protected]" <[email protected]>
Date: Thu, 20 Sep 2012 11:18:22 -0700
Dear Tim and Everyone;

We are in SLAC, experiencing a trouble when restore ULONG type array PVs by the autosave.
The problem occurred when it tries restore larger than 2147483648 (0x80000000).
So, we drilled down to the dbrestore.c file and found it handles ULONG type as just LONG type.

So, we suggest to make patch as the followings for the dbrestore.c :

BEFORE
 554         case DBF_ULONG:
 555                 p_ulong[num_read++] = (unsigned long)atol(string);
 556                 break;

AFTER
 554         case DBF_ULONG:
 555                 p_ulong[num_read++] = (unsigned long)atoll(string);
 556                 break;


Please, give me your advice.

Thank you.
Best regards,
Kukhee
--------------------------------------------
Kukhee Kim
SLAC National Accelerator Laboratory
2575 Sand Hill Rd, MS 64
Menlo Park, CA 94025
Email: [email protected]
Phone: (650)926-4912




Navigate by Date:
Prev: EPICS Collaboration Meeting October 2012 Ilyou Kim
Next: RE: CAC problem between RTEMS and vxWorks Hill, Jeff
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: CAC problem between RTEMS and vxWorks Hill, Jeff
Next: Problem with using strings to access enum indices on Windows Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·