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  <20142015  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  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: PCMON segmentation fault
From: Nicoletta Petrella <[email protected]>
To: Jani Hakala <[email protected]>
Cc: [email protected]
Date: Tue, 29 Apr 2014 12:06:22 +0100
Hi Jani,

Thank you very much for your answer.

I found out that the problem was in the memory allocated to the variable buf, that could not hold all the /proc/meminfo file. 
Increasing it from 

static char buf[1024];

to 
static char buf[2048];

solved the problem and it is working fine now.
Probably the buf size was tailored on a standard /proc/meminfo file and maybe mine is slightly different or newer.

Thank you.
Kind regards,
Nicoletta



2014-04-28 12:59 GMT+01:00 Jani Hakala <[email protected]>:
Nicoletta Petrella <[email protected]> writes:

> The problem apparently is in the devSysMon.c.
>
The license text for this software seems to missing. Doing anything
with this PC-MONITOR software is therefore a little bit problematic. It
may be better to contact the author:

      # This project was created by Miroslaw Dach SLS/PSI 2006
      # In case of problems please send an e-mail to the author
      # [email protected]


Much of the code in devSysMon.c could be replaced with calls to library
functions that already exist in procps-library or even in glibc. It
might be easier to replace the old code.

 meminfo:
   proc/sysinfo.h:
     void meminfo(void)
       (+ global variables)
 get_uptime
   linux/kernel.h:
     struct sysinfo
   sys/sysinfo.h:
     int sysinfo (struct sysinfo *__info)


Jani Hakala



--
..... @@ ........
....@(';')@.......
..0==/--\==0.... 
....../___\........
......_| |_.........

References:
PCMON segmentation fault Nicoletta Petrella
Re: PCMON segmentation fault Jani Hakala

Navigate by Date:
Prev: Re: Acromag avme9670 Martin L. Smith
Next: Re: PCMON segmentation fault Nicoletta Petrella
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: PCMON segmentation fault Jani Hakala
Next: Re: PCMON segmentation fault Ralph Lange
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·