Bug 93178 - patch for sysutils/portmanager crash when trying to remove a MOVED port with -y option
Summary: patch for sysutils/portmanager crash when trying to remove a MOVED port with ...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Emanuel Haupt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-11 11:50 UTC by Eric
Modified: 2006-02-23 02:15 UTC (History)
0 users

See Also:


Attachments
file.diff (676 bytes, patch)
2006-02-11 11:50 UTC, Eric
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric 2006-02-11 11:50:03 UTC
portmanager -v:
rParseCommandLine 0.4.1_4

portmanager will always crash (bus error) when:
-y option is provided, and
an installed port was moved to other category, so portmanager trying to remove it.

BackTrace shows the error happends at line 183 in libMGPM/src/MGPMrGetPortName.c

Fix: Patch: 
(This is the first time I submit PR, so not sure if this is correct)
--------PATCH START---------
How-To-Repeat: execute: portmanager -u -bu -l -y
and you have one installed port (ex, tomcat)  which was moved to another category.


portmanager will crash during cache building stage.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2006-02-11 20:31:48 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-ports-bugs

Make this a ports bug.
Comment 2 Emanuel Haupt freebsd_committer freebsd_triage 2006-02-23 02:10:24 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ehaupt

Take.
Comment 3 Emanuel Haupt freebsd_committer freebsd_triage 2006-02-23 02:15:45 UTC
State Changed
From-To: open->closed

Committed, thanks!