Bug 184245
Summary: | highlight crashes on x86_64 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Eric Hopper <eric-bugs> |
Component: | highlight | Assignee: | Jochen Schmitt <jochen> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4 | CC: | extras-qa |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-03-15 16:43:51 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
Eric Hopper
2006-03-07 17:40:13 UTC
The upstream author has released version 2.4.4 of highlight. I have create a new package which should be available in few days. Becouse I don't have a 64-bit system, It may be nice, If you can check this package. So far, I get a problem that looks almost exactly identical in behavior. Not sure if it's the same stack trace yet though. Still basically the same trace. Addresses of things are a bit different is all. I have forwarded the bug to the upstream author. Created attachment 126137 [details]
This SRPM includes a patch that fixes the problem: highlight-2.4.4-2.src.rpm
I've attached an SRPM that fixed this bug by patching the source slightly. I
will also attach the .spec file and the patch.
Created attachment 126138 [details]
The new .spec file that was used to build the attached SRPM.
Here is the .spec file I used.
Created attachment 126139 [details]
This patch fixes the problem (i.e. highlight-2.4-fixcodegen.patch).
This is the patch referenced by the .spec file and included in the new SRPM.
The read of the very first line resulted in line (since it had never had
anything before) containing nothing, and lineIndex being 0. This caused a
SEGFAULT on my x86_64 system as addr + 0xffffffff wasn't a valid address. But
it worked fine on an x86 platform because addr - 1 (i.e. addr + 0xffffffff on a
32 bit system) IS a valid address.
The fix is kind of ugly, and just special cases the previously failing case.
I have integrated the sugg. patch in the package. In the next day you may found highlight 2.4.4-2 in the repositories of FE. If the fixed didn't solve your problem, you may reopen this bug. It works. It would've been nice to have my name in the changelog entry, but that's OK. :-) Thanks. |