Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 111201 Details for
Bug 168334
app-portage/portage-utils-0.1.24: /usr/bin/q -r dies with a segfault after emerge --sync
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
debugging-results.txt
bug.txt (text/plain), 7.88 KB, created by
Georgi Georgiev
on 2007-02-25 15:38:21 UTC
(
hide
)
Description:
debugging-results.txt
Filename:
MIME Type:
Creator:
Georgi Georgiev
Created:
2007-02-25 15:38:21 UTC
Size:
7.88 KB
patch
obsolete
>emerge --sync gives me this message every time: >... >>>> Updating Portage cache: 100% >/etc/portage/postsync.d/q-reinitialize: line 1: 810714 Segmentation fault /usr/bin/q -r > * spawn failed of /etc/portage/bin/post_sync > >However, if I run /etc/portage/bin/post_sync from the command line there is no problem. > >Now, I tried the following >1. ebuild portage-utils-0.1.24.ebuild compile >2. make -C /var/tmp/portage...0.1.24/ debug >3. vim /etc/portage/postsync.d/q-* to run "q" from the just-compiled directory > >What I got is: >profile /usr/portage/profiles/default-linux/amd64/2006.1/desktop/make.defaults >profile /usr/portage/profiles/default-linux/amd64/2006.1/desktop/../make.defaults >profile /usr/portage/profiles/default-linux/amd64/2006.1/desktop/../../make.defaults >profile /usr/portage/profiles/default-linux/amd64/2006.1/desktop/../../../make.defaults >profile /usr/portage/profiles/default-linux/amd64/2006.1/desktop/../../../../base/make.defaults >profile /etc/make.globals >profile /etc/make.conf >ACCEPT_LICENSE = * >INSTALL_MASK = /usr/share/locale/aa /usr/share/locale/af ... (skip boring stuff) >ARCH = amd64 >CONFIG_PROTECT = /etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/qmail/alias /var/qmail/control >NOCOLOR = 0 >FEATURES = noman noinfo nodoc sandbox sfperms autoconfig strict sfperms sandbox distlocks metadata-transfer -ccache distlocks userpriv noinfo usersandbox collision-protect parallel-fetch -splitdebug buildpkg autoconfig buildpkg collision-protect distlocks noinfo parallel-fetch sfperms strict >PORTDIR = /usr/portage >PORTAGE_BINHOST = >PORTAGE_TMPDIR = /var/tmp >PKGDIR = /usr/portage-lion/packages >ROOT = / >/etc/portage/postsync.d/q-reinitialize: line 2: 811379 Segmentation fault (core dumped) /var/tmp/portage/app-portage/portage-utils-0.1.24/work/portage-utils-0.1.24/q -r > * spawn failed of /etc/portage/bin/post_sync > >I also have a core file now, which when loaded in gdb says: > >Program terminated with signal 11, Segmentation fault. >#0 0x00002b1cbd30bcf0 in strcmp () from /lib/libc.so.6 >(gdb) bt >#0 0x00002b1cbd30bcf0 in strcmp () from /lib/libc.so.6 >#1 0x0000000000403333 in lookup_applet (applet=0x7fffed930488 "q") at q.c:36 >#2 0x00000000004081d0 in q_main (argc=2, argv=0x7fffed92f7f8) at q.c:79 >#3 0x00002b1cbd2b3374 in __libc_start_main () from /lib/libc.so.6 >#4 0x0000000000402309 in _start () > >I am not sure what to make of it... > >I changed q-reinitialize to run "gdb /var/tmp/..../q" >Then, from gdb (after --sync) I did: >(gdb) break lookup_applet >Breakpoint 1 at 0x40850f: file q.c, line 32. >(gdb) run -r >... skip boring stuff... >Breakpoint 1, lookup_applet (applet=0x7fff072c8485 "q") at q.c:32 >32 if (strlen(applet) < 1) >(gdb) p applets >$4 = {{name = 0x2f207a65672f656c <Address 0x2f207a65672f656c out of bounds>, func = 0x726168732f727375, opts = 0x656c61636f6c2f65 <Address 0x656c61636f6c2f65 out of bounds>, > desc = 0x7273752f206c672f <Address 0x7273752f206c672f out of bounds>}, {name = 0x6c2f65726168732f <Address 0x6c2f65726168732f out of bounds>, func = 0x72672f656c61636f, > opts = 0x68732f7273752f20 <Address 0x68732f7273752f20 out of bounds>, desc = 0x61636f6c2f657261 <Address 0x61636f6c2f657261 out of bounds>}, { > name = 0x752f2075672f656c <Address 0x752f2075672f656c out of bounds>, func = 0x65726168732f7273, opts = 0x2f656c61636f6c2f <Address 0x2f656c61636f6c2f out of bounds>, > desc = 0x2f7273752f207667 <Address 0x2f7273752f207667 out of bounds>}, {name = 0x6f6c2f6572616873 <Address 0x6f6c2f6572616873 out of bounds>, func = 0x7761682f656c6163, > opts = 0x68732f7273752f20 <Address 0x68732f7273752f20 out of bounds>, desc = 0x61636f6c2f657261 <Address 0x61636f6c2f657261 out of bounds>}, { > name = 0x752f2065682f656c <Address 0x752f2065682f656c out of bounds>, func = 0x65726168732f7273, opts = 0x2f656c61636f6c2f <Address 0x2f656c61636f6c2f out of bounds>, > desc = 0x2f7273752f206968 <Address 0x2f7273752f206968 out of bounds>}, {name = 0x6f6c2f6572616873 <Address 0x6f6c2f6572616873 out of bounds>, func = 0x2072682f656c6163, > opts = 0x6168732f7273752f <Address 0x6168732f7273752f out of bounds>, desc = 0x6c61636f6c2f6572 <Address 0x6c61636f6c2f6572 out of bounds>}, { > name = 0x73752f2075682f65 <Address 0x73752f2075682f65 out of bounds>, func = 0x2f65726168732f72, opts = 0x682f656c61636f6c <Address 0x682f656c61636f6c out of bounds>, > desc = 0x732f7273752f2079 <Address 0x732f7273752f2079 out of bounds>}, {name = 0x636f6c2f65726168 <Address 0x636f6c2f65726168 out of bounds>, func = 0x2f2064692f656c61, > opts = 0x726168732f727375 <Address 0x726168732f727375 out of bounds>, desc = 0x656c61636f6c2f65 <Address 0x656c61636f6c2f65 out of bounds>}, { > name = 0x7273752f2073692f <Address 0x7273752f2073692f out of bounds>, func = 0x6c2f65726168732f, opts = 0x74692f656c61636f <Address 0x74692f656c61636f out of bounds>, > desc = 0x68732f7273752f20 <Address 0x68732f7273752f20 out of bounds>}, {name = 0x61636f6c2f657261 <Address 0x61636f6c2f657261 out of bounds>, func = 0x752f2075692f656c, > opts = 0x65726168732f7273 <Address 0x65726168732f7273 out of bounds>, desc = 0x2f656c61636f6c2f <Address 0x2f656c61636f6c2f out of bounds>}, { > name = 0x2f7273752f20616b <Address 0x2f7273752f20616b out of bounds>, func = 0x6f6c2f6572616873, opts = 0x206b6b2f656c6163 <Address 0x206b6b2f656c6163 out of bounds>, > desc = 0x6168732f7273752f <Address 0x6168732f7273752f out of bounds>}, {name = 0x6c61636f6c2f6572 <Address 0x6c61636f6c2f6572 out of bounds>, func = 0x73752f206c6b2f65, > opts = 0x2f65726168732f72 <Address 0x2f65726168732f72 out of bounds>, desc = 0x6b2f656c61636f6c <Address 0x6b2f656c61636f6c out of bounds>}, { > name = 0x732f7273752f206d <Address 0x732f7273752f206d out of bounds>, func = 0x636f6c2f65726168, opts = 0x2f206e6b2f656c61 <Address 0x2f206e6b2f656c61 out of bounds>, > desc = 0x726168732f727375 <Address 0x726168732f727375 out of bounds>}, {name = 0x410065 "\227W��\204�\017\204r\002", func = 0x4106b9 <qsearch_main>, > opts = 0x41ef53 "<regex>", desc = 0x41ef5b "search pkgname/desc"}, {name = 0x41ef6f "qsize", func = 0x410f5f <qsize_main>, opts = 0x41eded "<pkgname>", > desc = 0x41ef75 "calculate size usage"}, {name = 0x41ef8a "qtbz2", func = 0x411bf7 <qtbz2_main>, opts = 0x41ee8e "<misc args>", > desc = 0x41ef90 "manipulate tbz2 packages"}, {name = 0x41efa9 "quse", func = 0x412d6a <quse_main>, opts = 0x41efae "<useflag>", > desc = 0x41efb8 "find pkgs using useflags"}, {name = 0x41efd1 "qxpak", func = 0x414b5a <qxpak_main>, opts = 0x41ee8e "<misc args>", > desc = 0x41efd7 "manipulate xpak archives"}, {name = 0x41eff0 "belongs", func = 0x40d001 <qfile_main>, opts = 0x0, desc = 0x0}, {name = 0x41eff8 "check", > func = 0x408d2e <qcheck_main>, opts = 0x0, desc = 0x0}, {name = 0x41effe "depends", func = 0x40b267 <qdepends_main>, opts = 0x0, desc = 0x0}, {name = 0x41f006 "files", > func = 0x40df43 <qlist_main>, opts = 0x0, desc = 0x0}, {name = 0x41f00c "hasuse", func = 0x412d6a <quse_main>, opts = 0x0, desc = 0x0}, {name = 0x41f013 "size", > func = 0x410f5f <qsize_main>, opts = 0x0, desc = 0x0}, {name = 0x41f018 "uickpkg", func = 0x41542b <qpkg_main>, opts = 0x0, desc = 0x0}, {name = 0x0, func = 0, > opts = 0x0, desc = 0x0}} > >Does the above make any sense to you? The same action from the command line produce the following proper output: > >(gdb) p applets >$1 = {{name = 0x41ed75 "q", func = 0x408839 <q_main>, opts = 0x41ed77 "<applet> <args>", desc = 0x41ed87 "virtual applet"}, {name = 0x41ed96 "qatom", > func = 0x41634d <qatom_main>, opts = 0x41ed9c "<pkg>", desc = 0x41eda2 "split atom strings"}, {name = 0x41edb5 "qcache", func = 0x41e371 <qcache_main>, > opts = 0x41edbc "<action> <args>", desc = 0x41edcc "search the metadata cache"}, {name = 0x41ede6 "qcheck", func = 0x408d2e <qcheck_main>, opts = 0x41eded "<pkgname>", (skip the rest) > >I did what I could. Best of luck to you guys. > >I'll attach emerge --info after posting (this post got bloated enough as it is).
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 Raw
Actions:
View
Attachments on
bug 168334
: 111201 |
111202
|
111448