Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23514 - ethereal-installation: ACCESS VIOLATION
Summary: ethereal-installation: ACCESS VIOLATION
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Brad Cowan (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-26 02:27 UTC by Christian Strauf
Modified: 2003-06-27 00:22 UTC (History)
2 users (show)

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


Attachments
Fix for access violation (ethereal-0.9.13.ebuild.patch.gz,335 bytes, patch)
2003-06-26 06:18 UTC, Christian Strauf
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Strauf 2003-06-26 02:27:31 UTC
When trying to "emerge ethereal" (version 0.9.13), during the build process the
file /usr/share/snmp/mibs/.index is touched which leads to an access violation.
Here's the log:
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-ethereal-0.9.13-8654.log"

open_wr:   /usr/share/snmp/mibs/.index
open_wr:   /usr/share/snmp/mibs/.index
--------------------------------------------------------------------------------

Unfortunately I currently don't have an idea for a workaround/fix for this.

Christian
Comment 1 Ming-Wei 2003-06-26 03:27:39 UTC
I can comfirm this

creating dftest
ACCESS DENIED  open_wr:   /usr/share/snmp/mibs/.index
/usr/bin/pod2man                     \
--center="The Ethereal Network Analyzer" \
--release=0.9.13                         \
tethereal.pod > ../tethereal.1
make[3]: Leaving directory `/var/tmp/portage/ethereal-0.9.13/work/ethereal-0.9.13/doc'
make[2]: Leaving directory `/var/tmp/portage/ethereal-0.9.13/work/ethereal-0.9.13'
make[1]: Leaving directory `/var/tmp/portage/ethereal-0.9.13/work/ethereal-0.9.13'
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-ethereal-0.9.13-15041.log"

open_wr:   /usr/share/snmp/mibs/.index
--------------------------------------------------------------------------------
lappie root # more /tmp/sandbox-ethereal-0.9.13-15041.log
open_wr:   /usr/share/snmp/mibs/.index
Comment 2 Patrick Kursawe (RETIRED) gentoo-dev 2003-06-26 04:17:31 UTC
Looks like the inverted version of bug #22233 - seems bug #17310 is back and alive. Please try where the "addwrite...." line mentioned there is actually necessary.
Comment 3 Christian Strauf 2003-06-26 06:18:52 UTC
Created attachment 13893 [details, diff]
Fix for access violation
Comment 4 Christian Strauf 2003-06-26 06:20:48 UTC
Thanks for the hint. The attached patch fixes the problem:
- Edit ethereal-0.9.13.ebuild
- Move addwrite ... from src_install() to src_compile().

From my side, the issue is resolved. Thanks for the help!

Christian
Comment 5 Patrick Kursawe (RETIRED) gentoo-dev 2003-06-26 08:13:44 UTC
Just for the case the addwrite line was not moved to src_compile without reason, I'd say we better put it in both functions. Btw, your attachment is garbled - did you compress it and upload as text/plain or what did you do?
Comment 6 Christian Strauf 2003-06-26 09:50:43 UTC
I did the following before moving the line:
- Checked with addwrite in src_install() => access violation
- Removed addwrite from both src_compile() and src_install() => access violation
- Added addwrite just to src_compile() (_not_ to src_install()) => no problem!

So I think it is safe to assume that you only need the addwrite in src_compile(). Please correct me if I'm wrong.

For the attachment: I gzipped the patch and uploaded it as "patch" (not as "text/plain") which seems to break the upload -- I'm sorry for that, I won't gzip a patch again before uploading it (this was the first time I attached something). If you download it with right-click and "Save Link As..." it seems to work. Please let me know if you want me to upload it again.

Christian
Comment 7 SpanKY gentoo-dev 2003-06-26 14:52:53 UTC
maybe better idea is just to put it before all functions ... ive seen this error in 
src_compile and src_install 
Comment 8 Brad Cowan (RETIRED) gentoo-dev 2003-06-26 22:21:34 UTC
see Phosphan fixed it thanks :)
Comment 9 Patrick Kursawe (RETIRED) gentoo-dev 2003-06-27 00:22:06 UTC
Since this version was marked stable (security update), I wanted to be 150% sure that it does not break, so I just added it to both functions. Quite likely not necessary, but definitely not harmful :-)