Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 653350 - app-portage/portage-utils-0.70 - qcache -s: malloc(): memory corruption: 0xNNNN....
Summary: app-portage/portage-utils-0.70 - qcache -s: malloc(): memory corruption: 0xNN...
Status: RESOLVED NEEDINFO
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-16 23:45 UTC by Devang M
Modified: 2018-10-28 10:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge info (emerge-info,7.14 KB, text/plain)
2018-04-16 23:45 UTC, Devang M
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Devang M 2018-04-16 23:45:45 UTC
Created attachment 527662 [details]
emerge info

qcache -s and qcache -a show memory corruption errors after running q -r (to rebuild cache): 

# qcache -s

*** Error in `qcache': malloc(): memory corruption: 0x0000560e77153d40 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x305dc77cdc)[0x7f5bb9076cdc]
/lib64/libc.so.6(+0x305dc7f91b)[0x7f5bb907e91b]
/lib64/libc.so.6(+0x305dc82599)[0x7f5bb9081599]
/lib64/libc.so.6(__libc_malloc+0x88)[0x7f5bb9082fb8]
/lib64/libc.so.6(+0x305dcbfca8)[0x7f5bb90beca8]
/lib64/libc.so.6(+0x305dcbfddd)[0x7f5bb90beddd]
/lib64/libc.so.6(scandir+0x26)[0x7f5bb90bf536]
qcache(+0xfff0)[0x560e76cc9ff0]
qcache(+0x10bac)[0x560e76ccabac]
qcache(+0x7750)[0x560e76cc1750]
/lib64/libc.so.6(__libc_start_main+0xea)[0x7f5bb901f44a]
qcache(+0x797a)[0x560e76cc197a]
======= Memory map: ========
560e76cba000-560e76cee000 r-xp 00000000 fd:00 2892841                    /usr/bin/q
560e76eee000-560e76ef1000 r--p 00034000 fd:00 2892841                    /usr/bin/q
560e76ef1000-560e76ef2000 rw-p 00037000 fd:00 2892841                    /usr/bin/q
560e76ef2000-560e76ff8000 rw-p 00000000 00:00 0 
560e7714a000-560e7716b000 rw-p 00000000 00:00 0                          [heap]
7f5bb4000000-7f5bb4021000 rw-p 00000000 00:00 0 
7f5bb4021000-7f5bb8000000 ---p 00000000 00:00 0 
7f5bb8c07000-7f5bb8c1d000 r-xp 00000000 fd:00 3766000                    /usr/lib64/gcc/x86_64-pc-linux-gnu/7.3.0/libgcc_s.so.1
7f5bb8c1d000-7f5bb8e1c000 ---p 00016000 fd:00 3766000                    /usr/lib64/gcc/x86_64-pc-linux-gnu/7.3.0/libgcc_s.so.1
7f5bb8e1c000-7f5bb8e1d000 r--p 00015000 fd:00 3766000                    /usr/lib64/gcc/x86_64-pc-linux-gnu/7.3.0/libgcc_s.so.1
7f5bb8e1d000-7f5bb8e1e000 rw-p 00016000 fd:00 3766000                    /usr/lib64/gcc/x86_64-pc-linux-gnu/7.3.0/libgcc_s.so.1
7f5bb8e1e000-7f5bb8fff000 r--p 00000000 fd:00 401706                     /usr/lib64/locale/locale-archive
7f5bb8fff000-7f5bb91a6000 r-xp 00000000 fd:00 1838790                    /lib64/libc-2.25.so
7f5bb91a6000-7f5bb93a5000 ---p 001a7000 fd:00 1838790                    /lib64/libc-2.25.so
7f5bb93a5000-7f5bb93a9000 r--p 001a6000 fd:00 1838790                    /lib64/libc-2.25.so
7f5bb93a9000-7f5bb93ab000 rw-p 001aa000 fd:00 1838790                    /lib64/libc-2.25.so
7f5bb93ab000-7f5bb93af000 rw-p 00000000 00:00 0 
7f5bb93af000-7f5bb93b3000 r-xp 00000000 fd:00 4458619                    /usr/lib64/libiniparser.so.0.0.0
7f5bb93b3000-7f5bb95b2000 ---p 00004000 fd:00 4458619                    /usr/lib64/libiniparser.so.0.0.0
7f5bb95b2000-7f5bb95b3000 r--p 00003000 fd:00 4458619                    /usr/lib64/libiniparser.so.0.0.0
7f5bb95b3000-7f5bb95b4000 rw-p 00004000 fd:00 4458619                    /usr/lib64/libiniparser.so.0.0.0
7f5bb95b4000-7f5bb95d7000 r-xp 00000000 fd:00 1838789                    /lib64/ld-2.25.so
7f5bb9777000-7f5bb977a000 rw-p 00000000 00:00 0 
7f5bb97d3000-7f5bb97d6000 rw-p 00000000 00:00 0 
7f5bb97d6000-7f5bb97d7000 r--p 00022000 fd:00 1838789                    /lib64/ld-2.25.so
7f5bb97d7000-7f5bb97d8000 rw-p 00023000 fd:00 1838789                    /lib64/ld-2.25.so
7f5bb97d8000-7f5bb97d9000 rw-p 00000000 00:00 0 
7fff9c17a000-7fff9c19c000 rw-p 00000000 00:00 0                          [stack]
7fff9c19f000-7fff9c1a2000 r--p 00000000 00:00 0                          [vvar]
7fff9c1a2000-7fff9c1a4000 r-xp 00000000 00:00 0                          [vdso]
Aborted
Comment 1 Fabian Groffen gentoo-dev 2018-04-17 20:01:57 UTC
did you run egencache to populate /var/cache/edb/dep/....?
Comment 2 Devang M 2018-04-17 23:10:10 UTC
Yes, I ran egencache --repo=gentoo --update, also for every layman repo I have.
Comment 3 Devang M 2018-05-14 20:52:48 UTC
I also run q -r after every sync.
Comment 4 Fabian Groffen gentoo-dev 2018-05-15 06:45:18 UTC
I'll release v0.71, that one contains a couple of changes that may affect this.  If you can, please compile portage-utils, with debug symbols and produce the crash within gdb.
Comment 5 Fabian Groffen gentoo-dev 2018-05-18 12:28:50 UTC
please test with 0.71, if it crashes, please consider making a crashdump.
Comment 6 Fabian Groffen gentoo-dev 2018-10-28 10:21:37 UTC
I can't get this to reproduce