Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
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
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
27926030
Commit
27926030
authored
19 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
add more info when this script gets confused, and added getaddrinfo and
freeaddrinfo to the trace output
parent
701de67b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/memanalyze.pl
+11
-5
11 additions, 5 deletions
tests/memanalyze.pl
with
11 additions
and
5 deletions
tests/memanalyze.pl
+
11
−
5
View file @
27926030
...
...
@@ -67,11 +67,11 @@ if($showlimit) {
}
my
$lnum
=
0
;
while
(
<
FILE
>
)
{
chomp
$_
;
$line
=
$_
;
$lnum
++
;
if
(
$line
=~
/^LIMIT ([^ ]*):(\d*) (.*)/
)
{
# new memory limit test prefix
my
$i
=
$
3
;
...
...
@@ -116,7 +116,8 @@ while(<FILE>) {
if
(
$sizeataddr
{
$addr
}
>
0
)
{
# this means weeeeeirdo
print
"
Mixed debug compile, rebuild curl now
\n
";
print
"
Mixed debug compile (
$source
:
$linenum
at line
$lnum
), rebuild curl now
\n
";
print
"
We think
$sizeataddr
{
$addr
} bytes are already allocated at that memory address:
$addr
!
\n
";
}
$sizeataddr
{
$addr
}
=
$size
;
...
...
@@ -281,6 +282,9 @@ while(<FILE>) {
$addrinfofile
{
$add
}
=
"
$source
:
$linenum
";
$addrinfos
++
;
}
if
(
$trace
)
{
printf
("
GETADDRINFO (
$source
:
$linenum
)
\n
");
}
}
# fclose(0x1026c8)
elsif
(
$function
=~
/freeaddrinfo\(0x([0-9a-f]*)\)/
)
{
...
...
@@ -291,9 +295,11 @@ while(<FILE>) {
$addrinfo
{
$
1
}
=
0
;
$addrinfos
--
;
}
if
(
$trace
)
{
printf
("
FREEADDRINFO (
$source
:
$linenum
)
\n
");
}
}
}
else
{
print
"
Not recognized prefix line:
$line
\n
";
...
...
This diff is collapsed.
Click to expand it.
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