Bug 815742
Summary: | "realloc(): invalid pointer" whilst loading cert9.db in NSS_InitContext inside curl | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Masami Ichikawa <masami256> | ||||||||||||
Component: | sqlite | Assignee: | Panu Matilainen <pmatilai> | ||||||||||||
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||
Severity: | unspecified | Docs Contact: | |||||||||||||
Priority: | unspecified | ||||||||||||||
Version: | 17 | CC: | dmalcolm, emaldona, ivazqueznet, jonathansteffan, kdudka, kengert, paul, pmatilai, tomspur, wilmer5 | ||||||||||||
Target Milestone: | --- | ||||||||||||||
Target Release: | --- | ||||||||||||||
Hardware: | x86_64 | ||||||||||||||
OS: | Unspecified | ||||||||||||||
Whiteboard: | abrt_hash:d7b76134a58f5eb566d8e18186dce4f8eecf1d04 | ||||||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||||||
Doc Text: | Story Points: | --- | |||||||||||||
Clone Of: | Environment: | ||||||||||||||
Last Closed: | 2012-04-25 16:36:18 UTC | Type: | --- | ||||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||||
Documentation: | --- | CRM: | |||||||||||||
Verified Versions: | Category: | --- | |||||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||
Embargoed: | |||||||||||||||
Attachments: |
|
Description
Masami Ichikawa
2012-04-24 12:18:08 UTC
Created attachment 579837 [details]
File: core_backtrace
Created attachment 579838 [details]
File: backtrace
Created attachment 579839 [details]
File: maps
Created attachment 579840 [details]
File: dso_list
I have installed these package that related to fedora-easy-karma. fedora-cert-0.5.9.6-2.fc17.noarch python-fedora-0.3.28-1.fc17.noarch fedora-easy-karma-0-0.16.20110825git36efb338.fc17.noarch Thanks for filing this bug report. How reproducible is this problem? Are you able to try running the program under valgrind? Looking at the backtrace in attachment 579838 [details], reading it backwards I see: from frame 57 upwards: python code frame 56: /usr/lib/python2.7/site-packages/fedora/client/proxyclient.py, line 400, in send_request (self=<BodhiClient frames 54-55: call to "perform" method of a pycurl.Curl instance frames 54-44: within curl, about to set up an https connection frame 43: nss_init frame 41: NSS_InitContext, with sql:/etc/pki/nssdb various frames trying to load /home/masami/.pki/nssdb frames 23- : sdb_init with dbname="/home/masami/.pki/nssdb/cert9.db frame 5-: sqlite3Realloc, leading to "realloc(): invalid pointer" inside glibc's malloc implementation So *something* is going wrong with memory management, and the process' heap is becoming corrupt, but there are several components here, and I'm not sure which one is at fault. Reassigning component to "curl" for now, but it might be in one of the nss packages etc. (See attachment 579840 [details] for the list of DSOs and NVRs). NSS just crashes while loading the user database. This could hardly be a bug of curl. Is there anything confidential in your /home/masami/.pki/nssdb ? If not, could you please attach the database? Created attachment 580025 [details]
valgrind log file
Dave,
Thanks for quick response. I took valgrind log and attached it. Running fedora-easy-karma with valgring, I didn't get core dump so I sent Ctrl-D to stop it.
btw, how to reproduce is just run fedora-easy-karma without any arguments.
BR,
Kamil Thank you for checking. Sorry, I have some data in nssdb, so I don't upload it. However, if I rename $HOME/.pki/nssdb to $HOME/.pki/nssdb.bk then run fedora-easy-karma, I still got core dump. Hope it'll help. thanks, I checked curl 7.24.0-1 doesn't crash but 7.24.0-2 does. Current installed packages is this. curl.x86_64 0:7.24.0-2.fc17 libcurl.x86_64 0:7.24.0-2.fc17 Old packages that don't crash. curl.x86_64 0:7.24.0-1.fc17 libcurl.x86_64 0:7.24.0-1.fc17 (In reply to comment #8) > btw, how to reproduce is just run fedora-easy-karma without any arguments. This works just fine on my rawhide box: $ rpm -q curl libcurl curl-7.25.0-2.fc18.x86_64 libcurl-7.25.0-2.fc18.x86_64 $ fedora-easy-karma Getting list of installed packages... Getting list of packages in updates-testing... (In reply to comment #10) > I checked curl 7.24.0-1 doesn't crash but 7.24.0-2 does. The difference is that curl-7.24.0-1 does not use NSS_InitContext(). Please update to sqlite-3.7.11-2.fc17 and check whether it solves the problem. *** This bug has been marked as a duplicate of bug 801981 *** > Please update to sqlite-3.7.11-2.fc17 and check whether it solves the problem.
Thanks ! It solves the problem.
Thanks for testing it! |