Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 586126 Details for
Bug 691426
>=net-misc/dhcpcd-8.0.0 aborts on net.eno startup when running IPv6 scripts
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Even more debug
dhcpcd-more-debug.diff (text/plain), 1.48 KB, created by
Roy Marples
on 2019-08-08 13:34:06 UTC
(
hide
)
Description:
Even more debug
Filename:
MIME Type:
Creator:
Roy Marples
Created:
2019-08-08 13:34:06 UTC
Size:
1.48 KB
patch
obsolete
>diff --git a/src/script.c b/src/script.c >index 74aef1b1..d7cd87c9 100644 >--- a/src/script.c >+++ b/src/script.c >@@ -477,12 +477,22 @@ dumplease: > fp = NULL; > #endif > >+ >+ char xbuf[2048]; >+ >+ hwaddr_ntoa(buf, (size_t)buf_pos, xbuf, sizeof(xbuf)); >+ loginfox("xbuf1 %s", xbuf); >+ > nenv = 0; > endp = buf + buf_pos; >+ loginfox("buf %p endp %p", buf, endp); > for (bufp = buf; bufp < endp; bufp++) { >- if (*bufp == '\0') >+ if (*bufp == '\0') { >+ loginfox("bufp %zu %p is zero", nenv, bufp); > nenv++; >+ } > } >+ loginfox("nenv %zu envlen %zu", nenv, ctx->script_envlen); > if (ctx->script_envlen < nenv) { > env = reallocarray(ctx->script_env, nenv + 1, sizeof(*env)); > if (env == NULL) >@@ -490,14 +500,25 @@ dumplease: > ctx->script_env = env; > ctx->script_envlen = nenv; > } >+ loginfox("nenv %zu envlen %zu", nenv, ctx->script_envlen); > bufp = buf; > envp = ctx->script_env; >+ loginfox("envp %p", envp); > *envp++ = bufp++; > endp--; /* Avoid setting the last \0 to an invalid pointer */ >+ nenv = 0; > for (; bufp < endp; bufp++) { >- if (*bufp == '\0') >+ if (*bufp == '\0') { >+ loginfox("bufp %zu %p is zero, envp %p", nenv, bufp, envp); > *envp++ = bufp + 1; >+ nenv++; >+ } > } >+ hwaddr_ntoa(buf, (size_t)buf_pos, xbuf, sizeof(xbuf)); >+ loginfox("xbuf2 %s", xbuf); >+ loginfox("buf %p endp %p", buf, endp); >+ loginfox("script %p end %p envp %p", ctx->script_env, ctx->script_env + ctx->script_envlen, envp); >+ loginfox("diff %zu", envp - ctx->script_env); > *envp = NULL; > > return (ssize_t)nenv;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 691426
:
585736
|
585740
|
585742
|
585750
|
585758
|
585766
|
585976
|
586102
|
586106
|
586108
|
586110
| 586126 |
586130
|
586132
|
586138