-
Notifications
You must be signed in to change notification settings - Fork 0
/
jpf.remote.properties
542 lines (393 loc) · 18.7 KB
/
jpf.remote.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
# JPF configuration for "jpf-core" component
# path elements can either be relative to the property file location, or
# use the JPF component name (e.g. "jpf-core") as a variable prefix
# (e.g. "jpf-core.sourcepath=${jpf-core}/src/examples").
# If a jpf.properties is to be used within NB, it has to use the variable prefix
# (prepending the project root is only done during JPF init)
# we use the ';' separator here because it is recognized by NetBeans (as opposed
# to ',')
# 'config_path' is set automatically by gov.nasa.jpf.Config during JPF init.
# If used from within an Ant build system, 'jpf-core' has to be set explicitly
# (ant does ${..} property expansion, but ignores property redefinition, so the
# following line will be ignored)
jpf-core = /home/ubuntu/VarexJ/VarexJ
# the host VM classpath
jpf-core.native_classpath=\
${jpf-core}/lib/jpf.jar;\
${jpf-core}/lib/jpf-annotations.jar;\
${jpf-core}/lib/featureexprlib_2.10-0.3.4.jar;\
${jpf-core}/lib/*.jar;
# the classpath JPF uses to execute the System Under Test
jpf-core.classpath=\
${jpf-core}/build/libs/jpf-classes.jar;\
${jpf-core}/build/classes/examples
# the path entries JPF uses to locate sources in case it needs to create program traces
jpf-core.sourcepath=\
${jpf-core}/src/examples
# host VM and JPF classpath for regression tests
jpf-core.test_classpath=\
${jpf-core}/build/classes/test;
# ${jpf-core}/build/classes/defects4j-tests
jpf-core.peer_packages = gov.nasa.jpf.vm,<model>,<default>
# the default jpf-core properties file with keys for which we need mandatory defaults
########################### 0. global part ###############################
# instances that are both search and VM listeners
#listener = ..
# do we want JPF exceptions to print their stack traces (that's only for
# debugging)
jpf.print_exception_stack = true
# this is where we can specify additional classpath entries that are
# not in the system property class.path (e.g. when running JPF from
# an environment that uses it's own loaders, like Eclipse plugins etc.)
#jpf.native_classpath = ..
########################### 1. Search part ###############################
search.class = gov.nasa.jpf.search.DFSearch
# This flag indicates whether state matching will only be done when a state
# is revisited at a lower depth. By default this is false. If it is set to
# true and no error is found in a limited-depth search then it is guaranteed
# not to have such error below that depth. Note that for traditional
# depth limited search this does not hold
search.match_depth = false
# This flag indicates whether JPF should produce more than one error
# or stop at the first one
search.multiple_errors = false
# the minimum free memory bounds. If we fall below that threshold, we
# stop the search
search.min_free = 1M
# name of the file in which we store error paths. If not set, we don't store
#search.error_path = error.xml
# the standard properties we want to check for
search.properties=\
gov.nasa.jpf.vm.NotDeadlockedProperty,\
gov.nasa.jpf.vm.NoUncaughtExceptionsProperty
# various heuristic parameters
# This number specifies the maximum number of states to keep on the queue
# during a heuristic search. By default it is set to -1
search.heuristic.queue_limit = -1
# This flag indicates whether branches with counts less than branch-start
# are to be ranked according to how many times they have been taken.
# It is set to true by default. If it is set to false, they are all valued
# the same
search.heuristic.branch.count_early = true
# This number determines at what point branches are heuristically valued as worse
# than non-branching transitions. By default this value is 1.
branch_start = 1
# This number if greater than 0 is returned as the heuristic value for
# non-branching transitions. By default it is set to -1 in which case the
# value of branch-start is returned instead
search.heuristic.branch.no_branch_return = -1
# exclusive search listeners
# search.listener =
############################### 2. VM part ###############################
# this is an ordered list of packages from which we try to locate native peers.
# "<model>" means JPF tries the same package like the model class
# "<default>" means no package at all
# (this is going to be extended by jpf.properties files)
#peer_packages = <model>,<default>
vm.class = gov.nasa.jpf.vm.SingleProcessVM
# the ClassLoaderInfo class used for startup
vm.classloader.class = gov.nasa.jpf.jvm.JVMSystemClassLoaderInfo
# class used to hash/store states (if not set, states are not matched)
vm.storage.class = gov.nasa.jpf.vm.JenkinsStateSet
# class used to maintain the backtrack stack
vm.backtracker.class = gov.nasa.jpf.vm.DefaultBacktracker
# serializer to be used by state set (vm.storage.class)
vm.serializer.class = gov.nasa.jpf.vm.serialize.CFSerializer
#vm.serializer.class = gov.nasa.jpf.vm.serialize.AdaptiveSerializer
#vm.serializer.class = gov.nasa.jpf.vm.serialize.FilteringSerializer
# the class that models static fields and classes
vm.statics.class = gov.nasa.jpf.vm.OVStatics
# the class that models the heap
#vm.heap.class = gov.nasa.jpf.vm.PSIMHeap
vm.heap.class = gov.nasa.jpf.vm.OVHeap
# the class representing the list of all threads
vm.threadlist.class = gov.nasa.jpf.vm.ThreadList
# restorer to be used by backtracker such as DefaultBacktracker UNLESS a
# serializer that is also a restorer (such as CollapsingSerializer) is used.
# I.e. this is only read if serializer is not used or it's not a StateRestorer
vm.restorer.class = .vm.DefaultMementoRestorer
# where do we get the standard libraries from?
# "<system>" is replaced by the host VM sun.boot.class.path setting
vm.boot_classpath = <system>
# instruction factory
jvm.insn_factory.class = gov.nasa.jpf.jvm.bytecode.InstructionFactory
# fields factory
vm.fields_factory.class = gov.nasa.jpf.vm.DefaultFieldsFactory
# class used to set method and field attributes at class load time
vm.attributor.class = gov.nasa.jpf.vm.DefaultAttributor
# pattern list for assertion enabled/disabled classes
#vm.enable_assertions = *
#vm.disable_assertions=
# do we support the Verify.ignorePath() API (to imperatively ignore paths in modeled/instrumented programs)?
vm.varex.ignore_path = true
# the class of the policy object that is responsible for managing per-object/class
# sharedness detection
vm.por.shared.class = .vm.OverlappingContenderPolicy
# do we want on-the-fly partial order reduction?
vm.por = true
# do we treat field access of objects that are reachable from different threads as
# transaction boundaries (in case there is more tha one thread)?
vm.por.field_boundaries = true
# access to fields with these patterns we never treat as transition boundaries
vm.por.field_boundaries.never = java.*,javax.*,sun.*
# access to fields with these patterns we break on (if object is shared and
# vm.por.field_boundaries is set - note it's only meaningful if sync_detection
# is set because otherwse we would break anyways)
vm.por.field_boundaries.break =
# do we also break transitions on reference field puts that could make the
# referenced objects shared
vm.por.break_on_exposure = true
# do we try to deduce if a field is supposed to be protected by a lock? In this
# case, we stop to treat this field as a boundary step, but only if we see the lock
vm.por.sync_detection = true
# used to detect if a field is lock protected - only required if we use on-the-fly POR
# with sync-detection
vm.por.fli_factory.class = gov.nasa.jpf.vm.StatisticFieldLockInfoFactory
# do we assume final fields to be race-safe (not really true, esp. for
# instance fields with references leaking from a ctor, but a good starting point)
vm.por.skip_finals=true
# ClassLoaders synchronize the loading of a class.
# Thus, static final fields can never be included in a race condition since only 1 thread is allowed to access the class while it is loading.
# Defaulted to false to maintain backward compatibility in JPF
vm.por.skip_static_finals=false
# When an object's constructor has returned, then the final fields can not be changed.
# Thus, instance final fields can never be included in a race condition (unless the this reference is leaked from a constructor)
# Defaulted to false to maintain backward compatibility in JPF
vm.por.skip_constructed_finals=false
# do we ignore explicitly set Thread.UncaughtHandlers
vm.ignore_uncaught_handler=false
# do we treat returned Thread.UncaughtHandler.uncaughtException() calls as normal thread termination
vm.pass_uncaught_handler=true
# do we reclaim unused memory (run garbage collection)
vm.gc = true
# threshold after which number of allocations to perform a garbage collection
# (even within the same transition, to avoid lots of short living objects)
# -1 means never
vm.max_alloc_gc = -1
# do we run finalizers on collected objects (only makes sense with garbage collection)
vm.finalize = false
# this is a preemption boundary specifying the max number of instructions after which we
# break the current transition if there are other runnable threads
vm.max_transition_length = 50000
# are thread ids of terminated threads with recycled thread objects reused when creating new
# threads. This is required for programs that sequentially create many short living threads
vm.reuse_tid = false
# do we want to halt execution on each throw of an exception that matches
# one of the given classname wildcard patterns w/o looking for exception handlers?
# (useful for empty handler blocks, over-permissive catches or generally
# misused exceptions)
#vm.halt_on_throw = *
# class that is used to create scheduling relevant choice generators.
# this will replace the scheduler
vm.scheduler_factory.class = gov.nasa.jpf.vm.DefaultSchedulerFactory
# print output as it is generated during the search (for all paths)
vm.tree_output = true
# collect output inside the stored path (to create program trace outout)
vm.path_output = false
# do we want to store the whole path no matter if we report them
vm.store_steps=false
# untracked property
vm.untracked = true
# from where do we initialize the system properties
# SELECTED - keys specified as vm.system.properties, values from host
# FILE - Java properties file (key=value pairs)
# HOST - all system properties from underlying host VM
vm.sysprop.source = HOST
# pathname of property file with system properties
#vm.sysprop.file =
# list of key names to load from host VM
#vm.sysprop.keys =
# class we use to model execution time
vm.time.class = gov.nasa.jpf.vm.SystemTime
# if this is set to true, we throw an exception if we encounter any orphan native peer methods
vm.no_orphan_methods = false
# if this is set to true, overriden finalize() methods execute upon objects garbage collections
vm.process_finalizers = false
############################### 3. CG part ###############################
# choice randomization policy in effect:
# "NONE" - choice sets are not randomized
# "FIXED_SEED" - choice sets are randomized using a fixed seed for each JPF run (reproducible)
# "VAR_SEED" - choice sets are randomized using a variable seed for each JPF run
cg.randomize_choices = NONE
# the standard seed value used for the FIXED_SEED policy
cg.seed = 42
# if this is set, we create choice generators even if there is only a single
# choice. This is to ensure state storage/matching at all locations where a
# choice generator *could* be created. The default should be to turn it off though,
# since this can produce a lot of additional states (esp. with threads)
cg.break_single_choice = false
# default BooleanChoiceGenerator sequence: do we start with 'false'
cg.boolean.false_first = true
# do we want java.util.Random. nextXX() enumerate choices, or just return a single value?
# (isn't implemented for all types yet)
cg.enumerate_random=false
# maximum number of processors returned by Runtime.availableProcessors(). If this is
# greater than 1, the call represents a ChoiceGenerator
cg.max_processors=1
# creates a CG upon Thread.start, i.e. breaks the starting transition. Note this is
# required for data race detection (which depends on detecting access of shared objects)
cg.threads.break_start=true
# if this option is set we break the transition on Thread.yield()
cg.threads.break_yield=true
# if this option is set we break the transition on Thread.sleep()
cg.threads.break_sleep=true
# set if we shold also break on array instructions, e.g. to detect races
# for array elements. This is off by default because it can cause serious
# state explosion
cg.threads.break_arrays=false
# do we support atomic sections. If set to false, Verify.beginAtomic()/endAtomic()
# will not do anything
cg.enable_atomic=true
############################### 3. Report Part ###############################
log.handler.class=gov.nasa.jpf.util.LogHandler
# Windows seem to have a different default
log.level=warning
report.class=gov.nasa.jpf.report.Reporter
report.publisher=console
report.console.class=gov.nasa.jpf.report.ConsolePublisher
# this prints out repository information if the 'jpf' topic is set (for debugging)
#jpf.report.show_repository=true
#property violation reporting is configured separately
report.console.start=jpf,sut
report.console.transition=
report.console.constraint=constraint,snapshot
report.console.probe=statistics
report.console.property_violation=error,snapshot
report.console.show_steps=true
report.console.show_method=true
report.console.show_code=false
report.console.finished=result,statistics
#jpf.report.console.show_steps=true
#jpf.report.console.show_method=true
#jpf.report.console.show_code=true
report.xml.class=gov.nasa.jpf.report.XMLPublisher
report.html.class=gov.nasa.jpf.report.HTMLPublisher
report.html.start=jpf,sut,platform,user,dtg,config
report.html.constraint=constraint
report.html.property_violation=
report.html.finished=result,statistics,error,snapshot,output
############################### 4. Listener part #############################
# imperative list of listeners
#listener=
listener.autoload=\
gov.nasa.jpf.NonNull,\
gov.nasa.jpf.Const
listener.gov.nasa.jpf.NonNull=gov.nasa.jpf.tools.NonNullChecker
listener.gov.nasa.jpf.Const=gov.nasa.jpf.tools.ConstChecker
### PreciseRaceDetector
# we don't check for races in standard libraries
race.exclude=java.*,javax.*
############################### 5. test part #############################
test.report.console.finished=result
################################## jpf-nhandler part #####################################
jpf-nhandler = ${jpf-core}
jpf-nhandler.native_classpath =\
${jpf-nhandler}/build/libs/jpf.jar;\
${jpf-nhandler}/lib/*.jar;\
${jpf-nhandler}/build/classes/examples;\
${jpf-nhandler}/build/classes/test
#jpf-nhandler.classpath =\
# ${jpf-nhandler}/build/jpf-nhandler-classes.jar;\
# ${jpf-nhandler}/build/examples
jpf-nhandler.test_classpath =\
${jpf-core.test_classpath}
#jpf-nhandler.sourcepath =\
# ${jpf-nhandler}/src/examples
jpf-nhandler.peer_packages = test.converter
listener+=,gov.nasa.jpf.vm.JVMForwarder
#################################################################################
## By setting this to true, all the peers (both classes and source files) created
## on the fly, in the onthefly dir, are removed once the search starts.
nhandler.clean = false
## By setting this to false, the map keeping JVM objects on the host VM side is
## not reset after each delegation.
## <todo> - note that we don't maintain the states of JVM objects for now, i.e.
## if a JPF object changes we do not affect the similar changes on the JVM side.
nhandler.resetVMState = false
## By setting this to true the source code for native peers will be generated.
## To compile the edited sources, run the script jpf-nhandler/bin/compileOTF
nhandler.genSource = false
## By setting this to true the body of the methods will be commented.
nhandler.addComment = false
## By setting this to true states of JPF objects are updated from their corresponding
## JVM objects
nhandler.updateJPFState = true
## By setting this to true all unhandled native calls will be handled.
# nhandler.delegateUnhandledNative = true
## By setting this to true all unhandled native calls will be skipped, i.e. they
## are executed as they are empty and return some dummy value.
# nhandler.skipNative = true
#################################################################################
## Using the following three options user can configure which methods to delegate,
## to skip, and to ignore. You should follow the same format as in MethodSpec
## that can match methods/args against specs
##
## some examples:
## "x.y.Foo.*"
## "x.y.F*"
#################################################################################
## List of the methods to be delegated by jpf-nhandler.
nhandler.spec.delegate = java.net.ServerSocket.*,\
java.io.FileInputStream.*,\
java.io.FileOutputStream.*,\
sun.nio.ch.FileChannelImpl.*,\
java.awt.Toolkit.*,\
java.awt.Color.*,\
java.util.concurrent.atomic.AtomicLong.VMSupportsCS8
#java.io.FileDescriptor.*,\
#java.io.InputStreamReader.*,\
#java.io.Reader.read*,\
#java.net.Socket.*,\
#java.net.SocketInputStream.*,\
#java.net.SocketOutputStream.*,\
#java.nio.Buffer.*,\
#
#java.nio.CharBuffer.*,\
#java.nio.DirectByteBuffer.*,\
#java.nio.HeapCharBuffer.*,\
#java.nio.charset.CharsetDecoder.*,\
#java.nio.charset.CharsetEncoder.*,\
#java.text.DateFormat.*,\
#java.text.SimpleDateFormat.*,\
#java.util.Calendar.*,\
#java.util.Date.*,\
#java.util.DateFormat.*,\
#java.util.GregorianCalendar.*,\
#java.util.TimeZone.*,\
#java.util.jar.JarFile.*,\
#java.util.zip.CRC32.*,\
#java.util.zip.Deflater.*,\
#java.util.zip.ZipFile.*,\
#java.util.zip.ZipFile$ZipFileInputStream.*,\
#java.util.zip.ZipFile$ZipFileInflaterInputStream.*
#sun.misc.Cleaner.*,\
#sun.nio.ch.FileChannelImpl.*,\
#sun.nio.ch.KQueueArrayWrapper.*,\
#sun.nio.cs.MS1252.*,\
#sun.nio.cs.SingleByte.*,\
#sun.nio.cs.SingleByte$Encoder.*,\
#sun.nio.cs.StandardCharsets.*,\
#sun.nio.cs.StreamDecoder.*,\
#sun.nio.cs.UTF_8.*,\
##sun.nio.cs.UTF_8$Decoder.*,\
#sun.nio.cs.UTF_8$Encoder.*,\
#sun.nio.cs.ISO_8859_1.*,\
#sun.net.www.ParseUtil.*,\
#sun.net.www.protocol.jar.URLJarFile.*,\
#sun.net.www.protocol.jar.JarURLConnection.*,\
#sun.net.www.protocol.file.Handler.*,\
#sun.util.locale.BaseLocale.*
#java.io.OutputStreamWriter.*,\
## Only native methods among this list will be delegated by jpf-nhandler.
nhandler.spec.delegateNative =
## List of the methods to be skipped, i.e. they are executed as they are empty
## and return some dummey value.
nhandler.spec.skip =
## List of methods to be filtered.
nhandler.spec.filter = java.lang.ClassLoader.*
#################################################################################
## <2do> - this option has not been implemented yet.
## by setting this to true, nhandler creates the on-the-fly peer classes while
## handling & skipping the methods, OW it just execute them directly outside of
## on-the-fly peers
# nhandler.create.OTF_peers = true