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  <20082009  2010  2011  2012  2013  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  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: problem of using Streamdevice
From: Dirk Zimoch <[email protected]>
To: [email protected]
Cc: tech-talk <[email protected]>
Date: Tue, 07 Oct 2008 10:43:40 +0200
I found the bug.

> Program terminated with signal 11, Segmentation fault.
> #0  StdStringConverter::scanString (this=0x9268b8, fmt=@0xb7f6aa14, input=0x88d2deb "", value=0x0, maxlen=0)
>     at ../StreamFormatConverter.cc:281
> 281             value[0] = '\0';

The assignment  value[0] = '\0'; should not happen when the format is ignored
like in %*1c and hence value=NULL. I will fix that.

The bug happens when %*s or %*c are used to ignore input which happens to be an
empty string.

Dirk

-- 
Dr. Dirk Zimoch
Paul Scherrer Institut, WBGB/006
5232 Villigen PSI, Switzerland
Phone +41 56 310 5182

References:
problem of using Streamdevice Silver
RE: problem of using Streamdevice Mark Rivers
Re: RE: problem of using Streamdevice Silver

Navigate by Date:
Prev: IOC debug with Workbench haquin
Next: ScaNET : is CA Server for DOTNET a possibility ? Mogamat Amien Crombie
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: RE: RE: problem of using Streamdevice Silver
Next: Re: problem of using Streamdevice Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·