Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 453310 Details for
Bug 598974
app-portage/portage-utils: qpkg: -c randomly segfaults
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch adding debug code
debug.patch (text/plain), 1.83 KB, created by
Alexander Wetzel
on 2016-11-14 20:16:10 UTC
(
hide
)
Description:
patch adding debug code
Filename:
MIME Type:
Creator:
Alexander Wetzel
Created:
2016-11-14 20:16:10 UTC
Size:
1.83 KB
patch
obsolete
>diff -ur portage-utils-0.62_orig/main.c portage-utils-0.62/main.c >--- portage-utils-0.62_orig/main.c 2016-02-22 19:31:41.000000000 +0100 >+++ portage-utils-0.62/main.c 2016-11-14 21:09:11.087060551 +0100 >@@ -182,6 +182,7 @@ > struct stat s; > char *buf; > size_t read_size; >+ printf ("DEBUG eat_file_fd entry bufptr=%p *bufptr=%p\n",bufptr, *bufptr ); > > /* First figure out how much data we should read from the fd. */ > if (fd == -1 || fstat(fd, &s) != 0) { >@@ -203,9 +204,12 @@ > * constantly. So we round up a few pages as wasiting virtual > * memory is cheap when it is unused. */ > *bufsize = ((read_size + 1) + BUFSIZE - 1) & -BUFSIZE; >+ printf ("DEBUG: calling xrealloc.\nOld *bufptr=%p\n",*bufptr); > *bufptr = xrealloc(*bufptr, *bufsize); >+ printf ("New *bufprt=%p\n",*bufptr); > } > buf = *bufptr; >+ printf ("DEBUG: pre-crash *bufptr=%p\n", *bufptr); > > /* Finally do the actual read. */ > buf[0] = '\0'; >@@ -220,6 +224,7 @@ > buf[read_size - 1] = '\0'; > } > } >+ printf("DEBUG: buf = %s\n", buf); > > return ret; > } >@@ -1339,6 +1344,15 @@ > struct dirent **cat; > struct dirent **pf; > >+ slot[0]=0xa; >+ slot[1]=0xb; >+ slot[2]=0xa; >+ slot[3]=0xb; >+ slot[4]=0xa; >+ slot[5]=0xb; >+ slot[6]=0xa; >+ slot[7]=0xb; >+ printf ("DEBUG slot created with slot=%p and &slot=%p\n",slot, &slot); > depend_atom *atom = NULL; > queue *cpf = NULL; > >@@ -1362,8 +1376,11 @@ > * until this is rewritten & merged into libq/vdb.c. */ > slot_len = sizeof(slot); > strncat(buf, "/SLOT", sizeof(buf)); >+ printf ("DEBUG pre-eat : slot=%p (char **)&slot=%p\n", slot, (char **)&slot); > eat_file_at(ctx->vdb_fd, buf, (char **)&slot, &slot_len); >+ printf ("DEBUG post-eat: slot=%p (char **)&slot=%p\n", slot, (char **)&slot); > rmspace(slot); >+ printf ("DEBUG post-rm : slot=%p (char **)&slot=%p\n", slot, (char **)&slot); > > if (fullcpv) { > if (atom->PR_int)
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 598974
:
452398
|
452400
|
453198
| 453310 |
453312
|
453314
|
453330