Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
0ae79f5e
Commit
0ae79f5e
authored
Nov 20, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Communicate the panic string through heritage too.
parent
9584dc03
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
96 additions
and
93 deletions
+96
-93
cache_panic.c
bin/varnishd/cache/cache_panic.c
+85
-85
common.h
bin/varnishd/common/common.h
+0
-2
heritage.h
bin/varnishd/common/heritage.h
+4
-0
mgt_child.c
bin/varnishd/mgt/mgt_child.c
+3
-3
mgt_shmem.c
bin/varnishd/mgt/mgt_shmem.c
+4
-3
No files found.
bin/varnishd/cache/cache_panic.c
View file @
0ae79f5e
...
...
@@ -39,6 +39,7 @@
#include <stdlib.h>
#include "cache.h"
#include "common/heritage.h"
#include "cache_backend.h"
#include "waiter/cache_waiter.h"
...
...
@@ -53,37 +54,33 @@
* (gdb) printf "%s", panicstr
*/
static
struct
vsb
vsps
,
*
vsp
;
static
struct
vsb
pan_vsp_storage
,
*
pan_
vsp
;
static
pthread_mutex_t
panicstr_mtx
=
PTHREAD_MUTEX_INITIALIZER
;
/* Initialized in mgt_shmem.c, points into VSM */
char
*
PAN_panicstr
;
unsigned
PAN_panicstr_len
;
/*--------------------------------------------------------------------*/
static
void
pan_ws
(
const
struct
ws
*
ws
,
int
indent
)
{
VSB_printf
(
vsp
,
"%*sws = %p { %s
\n
"
,
indent
,
""
,
VSB_printf
(
pan_
vsp
,
"%*sws = %p { %s
\n
"
,
indent
,
""
,
ws
,
ws
->
overflow
?
"overflow"
:
""
);
VSB_printf
(
vsp
,
"%*sid =
\"
%s
\"
,
\n
"
,
indent
+
2
,
""
,
ws
->
id
);
VSB_printf
(
vsp
,
"%*s{s,f,r,e} = {%p"
,
indent
+
2
,
""
,
ws
->
s
);
VSB_printf
(
pan_
vsp
,
"%*sid =
\"
%s
\"
,
\n
"
,
indent
+
2
,
""
,
ws
->
id
);
VSB_printf
(
pan_
vsp
,
"%*s{s,f,r,e} = {%p"
,
indent
+
2
,
""
,
ws
->
s
);
if
(
ws
->
f
>
ws
->
s
)
VSB_printf
(
vsp
,
",+%ld"
,
(
long
)
(
ws
->
f
-
ws
->
s
));
VSB_printf
(
pan_
vsp
,
",+%ld"
,
(
long
)
(
ws
->
f
-
ws
->
s
));
else
VSB_printf
(
vsp
,
",%p"
,
ws
->
f
);
VSB_printf
(
pan_
vsp
,
",%p"
,
ws
->
f
);
if
(
ws
->
r
>
ws
->
s
)
VSB_printf
(
vsp
,
",+%ld"
,
(
long
)
(
ws
->
r
-
ws
->
s
));
VSB_printf
(
pan_
vsp
,
",+%ld"
,
(
long
)
(
ws
->
r
-
ws
->
s
));
else
VSB_printf
(
vsp
,
",%p"
,
ws
->
r
);
VSB_printf
(
pan_
vsp
,
",%p"
,
ws
->
r
);
if
(
ws
->
e
>
ws
->
s
)
VSB_printf
(
vsp
,
",+%ld"
,
(
long
)
(
ws
->
e
-
ws
->
s
));
VSB_printf
(
pan_
vsp
,
",+%ld"
,
(
long
)
(
ws
->
e
-
ws
->
s
));
else
VSB_printf
(
vsp
,
",%p"
,
ws
->
e
);
VSB_printf
(
vsp
,
"},
\n
"
);
VSB_printf
(
vsp
,
"%*s},
\n
"
,
indent
,
""
);
VSB_printf
(
pan_
vsp
,
",%p"
,
ws
->
e
);
VSB_printf
(
pan_
vsp
,
"},
\n
"
);
VSB_printf
(
pan_
vsp
,
"%*s},
\n
"
,
indent
,
""
);
}
/*--------------------------------------------------------------------*/
...
...
@@ -96,9 +93,9 @@ pan_vbc(const struct vbc *vbc)
be
=
vbc
->
backend
;
VSB_printf
(
vsp
,
" backend = %p fd = %d {
\n
"
,
be
,
vbc
->
fd
);
VSB_printf
(
vsp
,
" display_name =
\"
%s
\"
,
\n
"
,
be
->
display_name
);
VSB_printf
(
vsp
,
" },
\n
"
);
VSB_printf
(
pan_
vsp
,
" backend = %p fd = %d {
\n
"
,
be
,
vbc
->
fd
);
VSB_printf
(
pan_
vsp
,
" display_name =
\"
%s
\"
,
\n
"
,
be
->
display_name
);
VSB_printf
(
pan_
vsp
,
" },
\n
"
);
}
/*--------------------------------------------------------------------*/
...
...
@@ -111,24 +108,26 @@ pan_storage(const struct storage *st)
#define MAX_BYTES (4*16)
#define show(ch) (((ch) > 31 && (ch) < 127) ? (ch) : '.')
VSB_printf
(
vsp
,
" %u {
\n
"
,
st
->
len
);
VSB_printf
(
pan_
vsp
,
" %u {
\n
"
,
st
->
len
);
for
(
i
=
0
;
i
<
MAX_BYTES
&&
i
<
st
->
len
;
i
+=
16
)
{
VSB_printf
(
vsp
,
" "
);
VSB_printf
(
pan_
vsp
,
" "
);
for
(
j
=
0
;
j
<
16
;
++
j
)
{
if
(
i
+
j
<
st
->
len
)
VSB_printf
(
vsp
,
"%02x "
,
st
->
ptr
[
i
+
j
]);
VSB_printf
(
pan_
vsp
,
"%02x "
,
st
->
ptr
[
i
+
j
]);
else
VSB_printf
(
vsp
,
" "
);
VSB_printf
(
pan_
vsp
,
" "
);
}
VSB_printf
(
vsp
,
"|"
);
VSB_printf
(
pan_
vsp
,
"|"
);
for
(
j
=
0
;
j
<
16
;
++
j
)
if
(
i
+
j
<
st
->
len
)
VSB_printf
(
vsp
,
"%c"
,
show
(
st
->
ptr
[
i
+
j
]));
VSB_printf
(
vsp
,
"|
\n
"
);
VSB_printf
(
pan_vsp
,
"%c"
,
show
(
st
->
ptr
[
i
+
j
]));
VSB_printf
(
pan_vsp
,
"|
\n
"
);
}
if
(
st
->
len
>
MAX_BYTES
)
VSB_printf
(
vsp
,
" [%u more]
\n
"
,
st
->
len
-
MAX_BYTES
);
VSB_printf
(
vsp
,
" },
\n
"
);
VSB_printf
(
pan_vsp
,
" [%u more]
\n
"
,
st
->
len
-
MAX_BYTES
);
VSB_printf
(
pan_vsp
,
" },
\n
"
);
#undef show
#undef MAX_BYTES
...
...
@@ -141,17 +140,17 @@ pan_http(const char *id, const struct http *h, int indent)
{
int
i
;
VSB_printf
(
vsp
,
"%*shttp[%s] = {
\n
"
,
indent
,
""
,
id
);
VSB_printf
(
vsp
,
"%*sws = %p[%s]
\n
"
,
indent
+
2
,
""
,
VSB_printf
(
pan_
vsp
,
"%*shttp[%s] = {
\n
"
,
indent
,
""
,
id
);
VSB_printf
(
pan_
vsp
,
"%*sws = %p[%s]
\n
"
,
indent
+
2
,
""
,
h
->
ws
,
h
->
ws
?
h
->
ws
->
id
:
""
);
for
(
i
=
0
;
i
<
h
->
nhd
;
++
i
)
{
if
(
h
->
hd
[
i
].
b
==
NULL
&&
h
->
hd
[
i
].
e
==
NULL
)
continue
;
VSB_printf
(
vsp
,
"%*s
\"
%.*s
\"
,
\n
"
,
indent
+
4
,
""
,
VSB_printf
(
pan_
vsp
,
"%*s
\"
%.*s
\"
,
\n
"
,
indent
+
4
,
""
,
(
int
)(
h
->
hd
[
i
].
e
-
h
->
hd
[
i
].
b
),
h
->
hd
[
i
].
b
);
}
VSB_printf
(
vsp
,
"%*s},
\n
"
,
indent
,
""
);
VSB_printf
(
pan_
vsp
,
"%*s},
\n
"
,
indent
,
""
);
}
...
...
@@ -162,16 +161,16 @@ pan_object(const struct object *o)
{
const
struct
storage
*
st
;
VSB_printf
(
vsp
,
" obj = %p {
\n
"
,
o
);
VSB_printf
(
vsp
,
" xid = %u,
\n
"
,
o
->
xid
);
VSB_printf
(
pan_
vsp
,
" obj = %p {
\n
"
,
o
);
VSB_printf
(
pan_
vsp
,
" xid = %u,
\n
"
,
o
->
xid
);
pan_ws
(
o
->
ws_o
,
4
);
pan_http
(
"obj"
,
o
->
http
,
4
);
VSB_printf
(
vsp
,
" len = %jd,
\n
"
,
(
intmax_t
)
o
->
len
);
VSB_printf
(
vsp
,
" store = {
\n
"
);
VSB_printf
(
pan_
vsp
,
" len = %jd,
\n
"
,
(
intmax_t
)
o
->
len
);
VSB_printf
(
pan_
vsp
,
" store = {
\n
"
);
VTAILQ_FOREACH
(
st
,
&
o
->
store
,
list
)
pan_storage
(
st
);
VSB_printf
(
vsp
,
" },
\n
"
);
VSB_printf
(
vsp
,
" },
\n
"
);
VSB_printf
(
pan_
vsp
,
" },
\n
"
);
VSB_printf
(
pan_
vsp
,
" },
\n
"
);
}
/*--------------------------------------------------------------------*/
...
...
@@ -181,12 +180,12 @@ pan_vcl(const struct VCL_conf *vcl)
{
int
i
;
VSB_printf
(
vsp
,
" vcl = {
\n
"
);
VSB_printf
(
vsp
,
" srcname = {
\n
"
);
VSB_printf
(
pan_
vsp
,
" vcl = {
\n
"
);
VSB_printf
(
pan_
vsp
,
" srcname = {
\n
"
);
for
(
i
=
0
;
i
<
vcl
->
nsrc
;
++
i
)
VSB_printf
(
vsp
,
"
\"
%s
\"
,
\n
"
,
vcl
->
srcname
[
i
]);
VSB_printf
(
vsp
,
" },
\n
"
);
VSB_printf
(
vsp
,
" },
\n
"
);
VSB_printf
(
pan_
vsp
,
"
\"
%s
\"
,
\n
"
,
vcl
->
srcname
[
i
]);
VSB_printf
(
pan_
vsp
,
" },
\n
"
);
VSB_printf
(
pan_
vsp
,
" },
\n
"
);
}
...
...
@@ -196,7 +195,7 @@ static void
pan_wrk
(
const
struct
worker
*
wrk
)
{
VSB_printf
(
vsp
,
" worker = %p {
\n
"
,
wrk
);
VSB_printf
(
pan_
vsp
,
" worker = %p {
\n
"
,
wrk
);
pan_ws
(
wrk
->
ws
,
4
);
if
(
wrk
->
bereq
->
ws
!=
NULL
)
pan_http
(
"bereq"
,
wrk
->
bereq
,
4
);
...
...
@@ -204,7 +203,7 @@ pan_wrk(const struct worker *wrk)
pan_http
(
"beresp"
,
wrk
->
beresp
,
4
);
if
(
wrk
->
resp
->
ws
!=
NULL
)
pan_http
(
"resp"
,
wrk
->
resp
,
4
);
VSB_printf
(
vsp
,
" },
\n
"
);
VSB_printf
(
pan_
vsp
,
" },
\n
"
);
}
/*--------------------------------------------------------------------*/
...
...
@@ -214,11 +213,11 @@ pan_sess(const struct sess *sp)
{
const
char
*
stp
,
*
hand
;
VSB_printf
(
vsp
,
"sp = %p {
\n
"
,
sp
);
VSB_printf
(
vsp
,
VSB_printf
(
pan_
vsp
,
"sp = %p {
\n
"
,
sp
);
VSB_printf
(
pan_
vsp
,
" fd = %d, id = %d, xid = %u,
\n
"
,
sp
->
fd
,
sp
->
vsl_id
&
VSL_IDENTMASK
,
sp
->
xid
);
VSB_printf
(
vsp
,
" client = %s %s,
\n
"
,
VSB_printf
(
pan_
vsp
,
" client = %s %s,
\n
"
,
sp
->
addr
?
sp
->
addr
:
"?.?.?.?"
,
sp
->
port
?
sp
->
port
:
"?"
);
switch
(
sp
->
step
)
{
...
...
@@ -229,31 +228,31 @@ pan_sess(const struct sess *sp)
}
hand
=
VCL_Return_Name
(
sp
->
handling
);
if
(
stp
!=
NULL
)
VSB_printf
(
vsp
,
" step = %s,
\n
"
,
stp
);
VSB_printf
(
pan_
vsp
,
" step = %s,
\n
"
,
stp
);
else
VSB_printf
(
vsp
,
" step = 0x%x,
\n
"
,
sp
->
step
);
VSB_printf
(
pan_
vsp
,
" step = 0x%x,
\n
"
,
sp
->
step
);
if
(
hand
!=
NULL
)
VSB_printf
(
vsp
,
" handling = %s,
\n
"
,
hand
);
VSB_printf
(
pan_
vsp
,
" handling = %s,
\n
"
,
hand
);
else
VSB_printf
(
vsp
,
" handling = 0x%x,
\n
"
,
sp
->
handling
);
VSB_printf
(
pan_
vsp
,
" handling = 0x%x,
\n
"
,
sp
->
handling
);
if
(
sp
->
err_code
)
VSB_printf
(
vsp
,
VSB_printf
(
pan_
vsp
,
" err_code = %d, err_reason = %s,
\n
"
,
sp
->
err_code
,
sp
->
err_reason
?
sp
->
err_reason
:
"(null)"
);
VSB_printf
(
vsp
,
" restarts = %d, esi_level = %d
\n
"
,
VSB_printf
(
pan_
vsp
,
" restarts = %d, esi_level = %d
\n
"
,
sp
->
restarts
,
sp
->
esi_level
);
VSB_printf
(
vsp
,
" flags = "
);
if
(
sp
->
wrk
->
do_stream
)
VSB_printf
(
vsp
,
" do_stream"
);
if
(
sp
->
wrk
->
do_gzip
)
VSB_printf
(
vsp
,
" do_gzip"
);
if
(
sp
->
wrk
->
do_gunzip
)
VSB_printf
(
vsp
,
" do_gunzip"
);
if
(
sp
->
wrk
->
do_esi
)
VSB_printf
(
vsp
,
" do_esi"
);
if
(
sp
->
wrk
->
do_close
)
VSB_printf
(
vsp
,
" do_close"
);
if
(
sp
->
wrk
->
is_gzip
)
VSB_printf
(
vsp
,
" is_gzip"
);
if
(
sp
->
wrk
->
is_gunzip
)
VSB_printf
(
vsp
,
" is_gunzip"
);
VSB_printf
(
vsp
,
"
\n
"
);
VSB_printf
(
vsp
,
" bodystatus = %d
\n
"
,
sp
->
wrk
->
body_status
);
VSB_printf
(
pan_
vsp
,
" flags = "
);
if
(
sp
->
wrk
->
do_stream
)
VSB_printf
(
pan_
vsp
,
" do_stream"
);
if
(
sp
->
wrk
->
do_gzip
)
VSB_printf
(
pan_
vsp
,
" do_gzip"
);
if
(
sp
->
wrk
->
do_gunzip
)
VSB_printf
(
pan_
vsp
,
" do_gunzip"
);
if
(
sp
->
wrk
->
do_esi
)
VSB_printf
(
pan_
vsp
,
" do_esi"
);
if
(
sp
->
wrk
->
do_close
)
VSB_printf
(
pan_
vsp
,
" do_close"
);
if
(
sp
->
wrk
->
is_gzip
)
VSB_printf
(
pan_
vsp
,
" is_gzip"
);
if
(
sp
->
wrk
->
is_gunzip
)
VSB_printf
(
pan_
vsp
,
" is_gunzip"
);
VSB_printf
(
pan_
vsp
,
"
\n
"
);
VSB_printf
(
pan_
vsp
,
" bodystatus = %d
\n
"
,
sp
->
wrk
->
body_status
);
pan_ws
(
sp
->
ws
,
2
);
pan_http
(
"req"
,
sp
->
http
,
2
);
...
...
@@ -270,7 +269,7 @@ pan_sess(const struct sess *sp)
if
(
VALID_OBJ
(
sp
->
obj
,
OBJECT_MAGIC
))
pan_object
(
sp
->
obj
);
VSB_printf
(
vsp
,
"},
\n
"
);
VSB_printf
(
pan_
vsp
,
"},
\n
"
);
}
/*--------------------------------------------------------------------*/
...
...
@@ -285,18 +284,19 @@ pan_backtrace(void)
size
=
backtrace
(
array
,
10
);
if
(
size
==
0
)
return
;
VSB_printf
(
vsp
,
"Backtrace:
\n
"
);
VSB_printf
(
pan_
vsp
,
"Backtrace:
\n
"
);
for
(
i
=
0
;
i
<
size
;
i
++
)
{
VSB_printf
(
vsp
,
" "
);
if
(
Symbol_Lookup
(
vsp
,
array
[
i
])
<
0
)
{
VSB_printf
(
pan_
vsp
,
" "
);
if
(
Symbol_Lookup
(
pan_
vsp
,
array
[
i
])
<
0
)
{
char
**
strings
;
strings
=
backtrace_symbols
(
&
array
[
i
],
1
);
if
(
strings
!=
NULL
&&
strings
[
0
]
!=
NULL
)
VSB_printf
(
vsp
,
"%p: %s"
,
array
[
i
],
strings
[
0
]);
VSB_printf
(
pan_vsp
,
"%p: %s"
,
array
[
i
],
strings
[
0
]);
else
VSB_printf
(
vsp
,
"%p: (?)"
,
array
[
i
]);
VSB_printf
(
pan_
vsp
,
"%p: (?)"
,
array
[
i
]);
}
VSB_printf
(
vsp
,
"
\n
"
);
VSB_printf
(
pan_
vsp
,
"
\n
"
);
}
}
...
...
@@ -314,35 +314,35 @@ pan_ic(const char *func, const char *file, int line, const char *cond,
anyway */
switch
(
xxx
)
{
case
3
:
VSB_printf
(
vsp
,
VSB_printf
(
pan_
vsp
,
"Wrong turn at %s:%d:
\n
%s
\n
"
,
file
,
line
,
cond
);
break
;
case
2
:
VSB_printf
(
vsp
,
VSB_printf
(
pan_
vsp
,
"Panic from VCL:
\n
%s
\n
"
,
cond
);
break
;
case
1
:
VSB_printf
(
vsp
,
VSB_printf
(
pan_
vsp
,
"Missing errorhandling code in %s(), %s line %d:
\n
"
" Condition(%s) not true."
,
func
,
file
,
line
,
cond
);
break
;
default:
case
0
:
VSB_printf
(
vsp
,
VSB_printf
(
pan_
vsp
,
"Assert error in %s(), %s line %d:
\n
"
" Condition(%s) not true.
\n
"
,
func
,
file
,
line
,
cond
);
break
;
}
if
(
err
)
VSB_printf
(
vsp
,
"errno = %d (%s)
\n
"
,
err
,
strerror
(
err
));
VSB_printf
(
pan_
vsp
,
"errno = %d (%s)
\n
"
,
err
,
strerror
(
err
));
q
=
THR_GetName
();
if
(
q
!=
NULL
)
VSB_printf
(
vsp
,
"thread = (%s)
\n
"
,
q
);
VSB_printf
(
pan_
vsp
,
"thread = (%s)
\n
"
,
q
);
VSB_printf
(
vsp
,
"ident = %s,%s
\n
"
,
VSB_printf
(
pan_
vsp
,
"ident = %s,%s
\n
"
,
VSB_data
(
vident
)
+
1
,
WAIT_GetName
());
pan_backtrace
();
...
...
@@ -352,11 +352,11 @@ pan_ic(const char *func, const char *file, int line, const char *cond,
if
(
sp
!=
NULL
)
pan_sess
(
sp
);
}
VSB_printf
(
vsp
,
"
\n
"
);
VSB_bcat
(
vsp
,
""
,
1
);
/* NUL termination */
VSB_printf
(
pan_
vsp
,
"
\n
"
);
VSB_bcat
(
pan_
vsp
,
""
,
1
);
/* NUL termination */
if
(
cache_param
->
diag_bitmap
&
0x4000
)
(
void
)
fputs
(
PAN_panic
str
,
stderr
);
(
void
)
fputs
(
heritage
.
panic_
str
,
stderr
);
if
(
cache_param
->
diag_bitmap
&
0x1000
)
exit
(
4
);
...
...
@@ -371,9 +371,9 @@ PAN_Init(void)
{
VAS_Fail
=
pan_ic
;
vsp
=
&
vsps
;
AN
(
PAN_panic
str
);
AN
(
PAN_panic
str_len
);
AN
(
VSB_new
(
vsp
,
PAN_panicstr
,
PAN_panic
str_len
,
pan_vsp
=
&
pan_vsp_storage
;
AN
(
heritage
.
panic_
str
);
AN
(
heritage
.
panic_
str_len
);
AN
(
VSB_new
(
pan_vsp
,
heritage
.
panic_str
,
heritage
.
panic_
str_len
,
VSB_FIXEDLEN
));
}
bin/varnishd/common/common.h
View file @
0ae79f5e
...
...
@@ -50,8 +50,6 @@ extern pid_t mgt_pid;
/* mgt_shmem.c */
#define PAN_CLASS "Panic"
extern
char
*
PAN_panicstr
;
extern
unsigned
PAN_panicstr_len
;
/* varnishd.c */
extern
struct
vsb
*
vident
;
// XXX: -> heritage ?
...
...
bin/varnishd/common/heritage.h
View file @
0ae79f5e
...
...
@@ -64,6 +64,10 @@ struct heritage {
char
*
name
;
char
identity
[
1024
];
char
*
panic_str
;
ssize_t
panic_str_len
;
};
extern
struct
heritage
heritage
;
...
...
bin/varnishd/mgt/mgt_child.c
View file @
0ae79f5e
...
...
@@ -427,10 +427,10 @@ mgt_handle_panicstr(pid_t r)
{
char
time_str
[
30
];
if
(
PAN_panic
str
[
0
]
==
'\0'
)
if
(
heritage
.
panic_
str
[
0
]
==
'\0'
)
return
;
REPORT
(
LOG_ERR
,
"Child (%jd) Panic message: %s"
,
(
intmax_t
)
r
,
PAN_panic
str
);
(
intmax_t
)
r
,
heritage
.
panic_
str
);
if
(
child_panic
)
VSB_delete
(
child_panic
);
...
...
@@ -438,7 +438,7 @@ mgt_handle_panicstr(pid_t r)
XXXAN
(
child_panic
);
VTIM_format
(
VTIM_real
(),
time_str
);
VSB_printf
(
child_panic
,
"Last panic at: %s
\n
"
,
time_str
);
VSB_cat
(
child_panic
,
PAN_panic
str
);
VSB_cat
(
child_panic
,
heritage
.
panic_
str
);
AZ
(
VSB_finish
(
child_panic
));
}
...
...
bin/varnishd/mgt/mgt_shmem.c
View file @
0ae79f5e
...
...
@@ -215,7 +215,8 @@ mgt_SHM_Init(void)
AN
(
heritage
.
param
);
*
heritage
.
param
=
mgt_param
;
PAN_panicstr_len
=
64
*
1024
;
PAN_panicstr
=
VSM_Alloc
(
PAN_panicstr_len
,
PAN_CLASS
,
""
,
""
);
AN
(
PAN_panicstr
);
heritage
.
panic_str_len
=
64
*
1024
;
heritage
.
panic_str
=
VSM_Alloc
(
heritage
.
panic_str_len
,
PAN_CLASS
,
""
,
""
);
AN
(
heritage
.
panic_str
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment