Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
ebe52737
Commit
ebe52737
authored
1 month ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Temporary debug to find out where/why jsexec is hanging during mac mini m4 CI test
parent
cf6767ac
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#7805
failed
1 month ago
Stage: build
Stage: test
Stage: cleanup
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/jsexec.c
+12
-0
12 additions, 0 deletions
src/sbbs3/jsexec.c
with
12 additions
and
0 deletions
src/sbbs3/jsexec.c
+
12
−
0
View file @
ebe52737
...
...
@@ -1203,12 +1203,14 @@ int main(int argc, char **argv)
struct
sigaction
sa
=
{
0
};
#endif
printf
(
"%s %d
\n
"
,
__FILE__
,
__LINE__
);
confp
=
stdout
;
errfp
=
stderr
;
if
((
nulfp
=
fopen
(
_PATH_DEVNULL
,
"w+"
))
==
NULL
)
{
perror
(
_PATH_DEVNULL
);
return
do_bail
(
-
1
);
}
printf
(
"%s %d
\n
"
,
__FILE__
,
__LINE__
);
if
(
isatty
(
fileno
(
stdin
)))
{
#ifdef __unix__
tcgetattr
(
fileno
(
stdin
),
&
orig_term
);
...
...
@@ -1219,21 +1221,25 @@ int main(int argc, char **argv)
else
/* if redirected, don't send status messages to stderr */
statfp
=
nulfp
;
printf
(
"%s %d
\n
"
,
__FILE__
,
__LINE__
);
cb
.
limit
=
JAVASCRIPT_TIME_LIMIT
;
cb
.
yield_interval
=
JAVASCRIPT_YIELD_INTERVAL
;
cb
.
gc_interval
=
JAVASCRIPT_GC_INTERVAL
;
cb
.
auto_terminate
=
true
;
cb
.
events
=
NULL
;
printf
(
"%s %d
\n
"
,
__FILE__
,
__LINE__
);
DESCRIBE_COMPILER
(
compiler
);
memset
(
&
scfg
,
0
,
sizeof
(
scfg
));
scfg
.
size
=
sizeof
(
scfg
);
printf
(
"%s %d
\n
"
,
__FILE__
,
__LINE__
);
if
(
!
winsock_startup
())
return
do_bail
(
2
);
#ifndef JSDOOR
printf
(
"%s %d
\n
"
,
__FILE__
,
__LINE__
);
SAFECOPY
(
scfg
.
ctrl_dir
,
get_ctrl_dir
(
/* warn: */
false
));
iniFileName
(
ini_fname
,
sizeof
(
ini_fname
),
scfg
.
ctrl_dir
,
"jsexec.ini"
);
if
((
fp
=
iniOpenFile
(
ini_fname
,
/* for_modify: */
false
))
!=
NULL
)
{
...
...
@@ -1245,6 +1251,7 @@ int main(int argc, char **argv)
get_ini_values
(
ini
,
/* section (global): */
NULL
,
&
cb
);
#endif
printf
(
"%s %d
\n
"
,
__FILE__
,
__LINE__
);
if
(
getcwd
(
orig_cwd
,
sizeof
(
orig_cwd
))
==
NULL
)
{
fprintf
(
stderr
,
"Error %d (%s) getting cwd
\n
"
,
errno
,
strerror
(
errno
));
return
do_bail
(
1
);
...
...
@@ -1269,6 +1276,7 @@ int main(int argc, char **argv)
errfp
=
fopen
(
"error.log"
,
"a"
);
#endif
printf
(
"%s %d
\n
"
,
__FILE__
,
__LINE__
);
for
(
argn
=
1
;
argn
<
argc
&&
module
==
NULL
&&
js_buf
==
NULL
;
argn
++
)
{
if
(
argv
[
argn
][
0
]
==
'-'
)
{
p
=
argv
[
argn
]
+
2
;
...
...
@@ -1438,10 +1446,12 @@ int main(int argc, char **argv)
get_ini_values
(
ini
,
ini_section
,
&
cb
);
#endif
}
printf
(
"%s %d
\n
"
,
__FILE__
,
__LINE__
);
if
(
umask_val
>=
0
)
umask
(
umask_val
);
printf
(
"%s %d
\n
"
,
__FILE__
,
__LINE__
);
if
(
module
==
NULL
&&
js_buf
==
NULL
&&
isatty
(
fileno
(
stdin
)))
{
fprintf
(
stderr
,
"
\n
!No JavaScript module-name or expression specified
\n
"
);
usage
();
...
...
@@ -1449,7 +1459,9 @@ int main(int argc, char **argv)
return
do_bail
(
1
);
}
printf
(
"%s %d
\n
"
,
__FILE__
,
__LINE__
);
banner
(
statfp
);
printf
(
"%s %d
\n
"
,
__FILE__
,
__LINE__
);
#ifdef JSDOOR
SAFECOPY
(
scfg
.
temp_dir
,
"./temp"
);
...
...
This diff is collapsed.
Click to expand it.
Rob Swindell
@rswindell
mentioned in commit
0d8ef460
·
1 month ago
mentioned in commit
0d8ef460
mentioned in commit 0d8ef460eb35c72548a5131090fc1aca3c50b13c
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