Sfoglia il codice sorgente

Fix crash by making start and end static: apparently newer versions of libc unmap things at 'end'...

Samuel Thibault 10 anni fa
parent
commit
89b130f6ab
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      tests/main/restart.c

+ 3 - 3
tests/main/restart.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  *
- * Copyright (C) 2009, 2010, 2013  Université de Bordeaux 1
+ * Copyright (C) 2009, 2010, 2013-2014  Université de Bordeaux 1
  * Copyright (C) 2010, 2011, 2012  Centre National de la Recherche Scientifique
  * Copyright (C) 2010, 2011, 2012  Centre National de la Recherche Scientifique
  *
  *
  * StarPU is free software; you can redistribute it and/or modify
  * StarPU is free software; you can redistribute it and/or modify
@@ -30,8 +30,8 @@
   #define N	10
   #define N	10
 #endif
 #endif
 
 
-struct timeval start;
-struct timeval end;
+static struct timeval start;
+static struct timeval end;
 
 
 int main(int argc, char **argv)
 int main(int argc, char **argv)
 {
 {