./run_relay.sh /mnt/goblint-svcomp/goblint-bench/bench/concrat/race-challenges/thread-join-array-const-race-2.i


--------------------------------------------------------------------------------


duppy -c thread-join-array-const-race-2.c
duppy'ing thread-join-array-const-race-2.c to /mnt/goblint-svcomp/benchexec/tools-pldi/relay-sv/tmp.FC9qYLqlCT/ciltrees
gcc -D_GNUCC -E -DCIL=1 thread-join-array-const-race-2.c -o /tmp/cil-wIpwxcpq.i
../cil/obj/x86_LINUX/cilly.asm.exe --out /tmp/cil-GoLldloO.cil.c --doheapify_sep --heapify_locals --dotrans_alloc --domyptranal --dodumpfile /tmp/cil-wIpwxcpq.i
Making cfg for thread
Making cfg for main
Trans_alloc: main thread-join-array-const-race-2.c:682
gcc -D_GNUCC -E /tmp/cil-GoLldloO.cil.c -o /tmp/cil-ePn_jCdg.cil.i
gcc -D_GNUCC -c -o ./thread-join-array-const-race-2.o /tmp/cil-ePn_jCdg.cil.i
/tmp/cil-GoLldloO.cil.c:5:7: warning: conflicting types for built-in function ‘malloc’; expected ‘void *(long unsigned int)’ [-Wbuiltin-declaration-mismatch]
    5 | void *malloc(unsigned int  ) ;
      |       ^~~~~~
/tmp/cil-GoLldloO.cil.c:1:1: note: ‘malloc’ is declared in header ‘<stdlib.h>’
  +++ |+#include <stdlib.h>
    1 | /* Generated by CIL v. 1.3.7 */
thread-join-array-const-race-2.c: In function ‘main’:
thread-join-array-const-race-2.c:691:3: warning: ‘free’ called on unallocated object ‘_a682_29962_thread_1’ [-Wfree-nonheap-object]
  691 |   return data;
      |   ^~~~~~~~~~~~          
thread-join-array-const-race-2.c:682:11: note: declared here
  682 | int main() {
      |           ^~                  
Generating stats for steens
DONE!
Generating stats for cil
DONE!
Generating stats for anders
DONE!
Generating stats for noalias
DONE!
Dumped in 4 seconds
Mon Nov 13 09:58:59 UTC 2023
WARNING: tempfile is deprecated; consider using mktemp instead.
reserved status file: /tmp//temp.statusIfK9st
running analysis on ./tmp.FC9qYLqlCT/ciltrees
Registered summary type: rs_scc
Registered summary type: rs
Registered summary type: ss
Registered summary type: rad_ss
Args: 
 ./race_anal.exe -cg ./tmp.FC9qYLqlCT/ciltrees -r -u benchexec -st /tmp//temp.statusIfK9st -su client.cfg
Checking for data races
-----
Loading Cil Varinfo ID ranges for lookup tables
Loading ranges from .vids_ckeys_fixed
Setting Cil Varinfo ID ranges
Finished parsing config group: SUMMARY_DB
Finished parsing config group: REQUEST
Finished parsing config group: DISTRIBUTED
Finished parsing config group: FILE_SERVER
Finished parsing config group: LOCK_FUNCS
Finished parsing config group: THREAD_FUNCS
Finished parsing config group: EXIT_FUNCS
Finished parsing config group: BUILTIN_FUNCS
Finished parsing config group: ALIAS_ANALYSIS
Finished parsing config group: ENTRY_POINTS
Finished parsing config group: SYM_EX
Done reading config file
myIP: 127.0.0.1
using /tmp/relay_scratch to store acquired files
using: /tmp//temp.statusIfK9st to track status
Initializing Steensgaard AA info
Loading function info
Loading tempVar info
Using old PTA results
Old PTA results loaded
Initializing Andersen's AA info
Using old PTA results: ./tmp.FC9qYLqlCT/ciltrees/.pta_results.anders
Old PTA results loaded
Reached end of ./tmp.FC9qYLqlCT/ciltrees/calls.anders call graph file
Num funcs: 8
Scc_cg: Pruned 6 funcs w/out bodies for scc DAG
summary database will use:
	./tmp.FC9qYLqlCT/ciltrees/relay_sums
Initializing summary rad_ss
Checking leftover state: rad_ss
[Er]: Checkpoint: No left-over status file
Initializing summary ss
Checking leftover state: ss
[Er]: Checkpoint: No left-over status file
Initializing summary rs
BS: Not doing any post-reboot cleanup
[Er]: Multiple lock summaries for pthread_mutex_unlock:6.f
[Er]: makeSimpleLock: Couldn't find global kernel_sem
[Er]: makeSimpleLock: Couldn't find global kernel_flag
[Er]: Multiple lock summaries for pthread_mutex_lock:5.f
Initializing summary rs_scc
BS: Not doing any post-reboot cleanup
SH: initEscapeable found (0, 1) thread (acts, formals)

Entry points use roots: true
file server will use: 14440
[Er]: Request fault handler with Connection refused
[Er]: Request retrying
[Er]: retry succeeded!

trying to clear old summaries / local srcs, etc.
Starting bottomup analysis
-----
[Er]: Checkpoint: No left-over status file
getting next SCC from server
Acquiring needed summaries
=================================
Starting an SCC (1) #0
=================================
Summarizing function: main : thread-join-array-const-race-2.c
-----
doing symstate
Prev ldiffCache hits: 0	misses: 0

Prev GAPostCache hits: 0	misses: 0

doing lockset
doing guarded access
=================================
Finished an SCC (1)
=================================
Summary for function: main:13.f
=======

SUMS (nm, lo, un, wr, re):	main	0	0	0	2	

SS Sum:
 |-> $SSTOP
SIZES: 13.f : 34
>>> PROGRESS 1/2 SCCs DONE!

=================================
getting next SCC from server
Acquiring needed summaries
=================================
Starting an SCC (1) #1
=================================
Summarizing function: thread : thread-join-array-const-race-2.c
-----
doing symstate
Prev ldiffCache hits: 2	misses: 1

Prev GAPostCache hits: 0	misses: 0

doing lockset
doing guarded access
=================================
Finished an SCC (1)
=================================
Summary for function: thread:10.f
=======

SUMS (nm, lo, un, wr, re):	thread	0	0	1	0	

SS Sum:
 |-> Vval: 0
SIZES: 10.f : 34
>>> PROGRESS 2/2 SCCs DONE!

=================================
getting next SCC from server
Bottomup analysis complete
-----



Beginning Thread Analysis:
-----
[Er]: No entry-points file!
Expected # thread-creation site pairs: 3
checking a thread-creation pair
Prev ldiffCache hits: 0	misses: 3

doing symstate
Prev ldiffCache hits: 0	misses: 1

doing symstate
now checking thread roots: thread(10.f), thread(10.f)
done with pair, sending notification
checking a thread-creation pair
Prev ldiffCache hits: 0	misses: 1

doing symstate
now checking thread roots: thread(13.f), main(13.f)
New race added to race reports
done with pair, sending notification
checking a thread-creation pair
now checking thread roots: main(13.f), main(13.f)
done with pair, sending notification
completed all thread pairs
Sorting races

Printing races

****
Possible race between access to:

data @ thread-join-array-const-race-2.c:674 and
data @ thread-join-array-const-race-2.c:674
	Cluster ID: 0
	Escapes? true / true 
	Accessed at locs:
	[thread-join-array-const-race-2.c:678:(10.f)] and
	[thread-join-array-const-race-2.c:691:(13.f)]

	Confidence: Syntactic

LS for 1st access:
L+ = {data_mutex#g:9} (1)
LS for 2nd access:
L+ = empty;
	Th. 1 spawned: thread-join-array-const-race-2.c:686 30069 w/ func: thread
	Th. 2 spawned: #entry_point:0 0 w/ func: main

Different possible paths & LS (first 4):



$$$$$$
Total Warnings: 1


Printing Alias assumptions used by warnings
-----


writeState: writing new state for Andersen to ./tmp.FC9qYLqlCT/ciltrees/.pta_temp.anders

writeState: Not needed for Steens PTA
Elapsed time (secs): 0.019717
Top heap size (MB): 0
Current heap size (MB): 0
Lifetime allocated bytes (MB): 3
Collections -- minor: 11 major: 2 compactions: 0
Bytes per word: 8
Exhausted tries: 1
return value is 0
ran 1 times
cleared status file: /tmp//temp.statusIfK9st
Mon Nov 13 09:59:02 UTC 2023
server.exe: no process found
