Hello,

Lucas Nussbaum, on jeu. 01 juin 2017 21:59:00 -0400, wrote:
> /<<PKGBUILDDIR>>/tools/.libs/libfxt.so.0(_fini+0x0)[0xf76e3774]
> /<<PKGBUILDDIR>>/tools/.libs/libfxt.so.0(+0x7023)[0xf76e1023]
> /<<PKGBUILDDIR>>/tools/.libs/libfxt.so.0(fxt_fdwrite+0x6d9)[0xf76ddff9]

I proofread the code in that area, and I found an issue, could you try
the attached patch?

Thanks,
Samuel
? ChangeLog
? Makefile
? compile
? config.h
? config.log
? config.status
? fxt-0.2.10.tar.gz
? fxt-0.2.11.tar.gz
? fxt-0.2.12.tar.gz
? fxt-0.2.13.tar.gz
? fxt-0.2.14.tar.gz
? fxt-0.2.2.tar.gz
? fxt-0.2.3.tar.gz
? fxt-0.2.3.tar.gz.sig
? fxt-0.2.4.tar.gz
? fxt-0.2.5.tar.gz
? fxt-0.2.6.tar.gz
? fxt-0.2.7.tar.gz
? fxt-0.2.8.tar.gz
? fxt-0.2.9.tar.gz
? fxt-0.3.0.tar.gz
? fxt-0.3.1.tar.gz
? fxt-0.3.2-pre.tar.gz
? fxt-0.3.2.tar.gz
? fxt-0.3.3.tar.gz
? fxt-win32-build-0.2.10.zip
? fxt.pc
? libtool
? stamp-h1
? test-driver
? doc/Makefile
? doc/manuel.pdf
? tools/.deps
? tools/.libs
? tools/Makefile
? tools/ev.lo
? tools/fkt_extract
? tools/fkt_print
? tools/fkt_record
? tools/fkt_select
? tools/fkt_setmask
? tools/fut.h
? tools/fut_bench.txt
? tools/fut_print.h
? tools/fut_record.lo
? tools/fut_setup.lo
? tools/fxt.lo
? tools/fxt_print
? tools/get_cpu_info.lo
? tools/libfxt.la
? tools/names.lo
? tools/pids.lo
? tools/symbols.lo
? tools/template2h.pl
? tools/test
Index: tools/pids.c
===================================================================
RCS file: /cvsroot/fkt/FxT/tools/pids.c,v
retrieving revision 1.16
diff -u -p -r1.16 pids.c
--- tools/pids.c        17 Oct 2016 15:36:23 -0000      1.16
+++ tools/pids.c        2 Jun 2017 18:55:57 -0000
@@ -1,5 +1,5 @@
 /*
- *  Copyright (C) 2003, 2004, 2011-2012, 2016  Samuel Thibault 
<samuel.thiba...@ens-lyon.org>
+ *  Copyright (C) 2003, 2004, 2011-2012, 2016-2017  Samuel Thibault 
<samuel.thiba...@ens-lyon.org>
  *
  * This program is free software ; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -77,7 +77,10 @@ static int recordrunningpid( char *statf
 
        if( !(file = fopen(statfilename,"r")) )
                return 0; /* may happen if it just died */
-       res = fscanf(file,"%*d %s",pidname);
+#if (FXT_MAXCOMMLEN+2+1) != 17+1
+#error update format here:
+#endif
+       res = fscanf(file,"%*d %17s",pidname);
        fclose(file);
        return res==1;
        }

Reply via email to