Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208314 - net-p2p/linuxdcpp-1.0.1 memleak in hasher
Summary: net-p2p/linuxdcpp-1.0.1 memleak in hasher
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-31 15:48 UTC by Alexey B. Bychko
Modified: 2008-02-01 03:48 UTC (History)
0 users

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


Attachments
scr (linuxdcpp.png,156.59 KB, image/png)
2008-01-31 15:50 UTC, Alexey B. Bychko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey B. Bychko 2008-01-31 15:48:18 UTC
linuxdcpp-1.0.1 (only this version) fall in cycle on symlinks. After that, hashing thread(?) tries to allocate all possible memory. Seems like where is a bug in directory delimiter handling - '/' (see attached scr)

Reproducible: Always

Steps to Reproduce:
1. Create symbolic link for directory with lot of files - e.g with name "ISO"
2. Share directory symbolic link in linuxdcpp
3. See cycle in status bar and hashing form and available system memory (free -m)


Actual Results:  
memleak + 100% CPU is used. Hashing is not completed

Expected Results:  
linuxdcpp must not infinitely add '/' in directory path, if share is symlink
Comment 1 Alexey B. Bychko 2008-01-31 15:50:36 UTC
Created attachment 142293 [details]
scr
Comment 2 Alexey B. Bychko 2008-01-31 16:20:20 UTC
probably, real bug in linuxdcpp - incorrect handling of unknown encoding in directory name. I find 2 directory with cyrillic name and broken encoding (my locale is ru_RU.utf8, these directory names looks like '??????????').
After renaming these dirs, hashing completed successfully.

expected result: if linuxdcpp unable to hash directory, it have to skip it
Comment 3 Raúl Porcel (RETIRED) gentoo-dev 2008-01-31 16:53:21 UTC
Report this upstream, please.