Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
why3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Why3
why3
Commits
963190dc
Commit
963190dc
authored
7 years ago
by
MARCHE Claude
Browse files
Options
Downloads
Patches
Plain Diff
fixed memory access bug in why3server
parent
e676e4a6
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!2
Isabelle configure realization1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/driver/prove_client.ml
+11
-2
11 additions, 2 deletions
src/driver/prove_client.ml
src/server/options.c
+1
-2
1 addition, 2 deletions
src/server/options.c
src/server/request.c
+1
-1
1 addition, 1 deletion
src/server/request.c
with
13 additions
and
5 deletions
src/driver/prove_client.ml
+
11
−
2
View file @
963190dc
...
...
@@ -109,11 +109,20 @@ let connect_internal () =
Filename
.
temp_file
"why3server"
"sock"
in
let
exec
=
Filename
.
concat
Config
.
libdir
"why3server"
in
let
pid
=
Unix
.
create_process
exec
let
pid
=
(* use this version for debugging the C code
Unix.create_process "valgrind"
[|"/usr/bin/valgrind";exec; "--socket"; socket_name;
"--single-client";
"-j"; string_of_int !max_running_provers|]
Unix.stdin Unix.stdout Unix.stderr
*)
Unix
.
create_process
exec
[
|
exec
;
"--socket"
;
socket_name
;
"--single-client"
;
"-j"
;
string_of_int
!
max_running_provers
|
]
Unix
.
stdin
Unix
.
stdout
Unix
.
stderr
in
Unix
.
stdin
Unix
.
stdout
Unix
.
stderr
in
Unix
.
chdir
cwd
;
(* sleep before connecting, or the server will not be ready yet *)
let
rec
try_connect
n
d
=
...
...
This diff is collapsed.
Click to expand it.
src/server/options.c
+
1
−
2
View file @
963190dc
...
...
@@ -77,7 +77,7 @@ void parse_options(int argc, char **argv) {
}
}
if
(
optind
<
argc
)
{
printf
(
"extra arguments, stopping
\n
"
);
printf
(
"extra arguments, stopping
[opt_index=%d,argc=%d]
\n
"
,
optind
,
argc
);
exit
(
1
);
}
if
(
basename
==
NULL
)
{
...
...
@@ -85,4 +85,3 @@ void parse_options(int argc, char **argv) {
exit
(
1
);
}
}
This diff is collapsed.
Click to expand it.
src/server/request.c
+
1
−
1
View file @
963190dc
...
...
@@ -81,7 +81,7 @@ prequest parse_request(char* str_req, int len, int key) {
parallel
=
parallel_arg
;
}
}
if
(
strncmp
(
tmp
,
"interrupt"
,
pos
)
==
0
)
{
else
if
(
strncmp
(
tmp
,
"interrupt"
,
pos
)
==
0
)
{
free
(
tmp
);
req
=
(
prequest
)
malloc
(
sizeof
(
request
));
req
->
key
=
key
;
...
...
This diff is collapsed.
Click to expand it.
MARCHE Claude
@marche
mentioned in commit
98f51c91
·
7 years ago
mentioned in commit
98f51c91
mentioned in commit 98f51c91fdcc0ece5069dc014f8d8db82e003a0b
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment