[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#46111: Reverting fns.c hash function due to OpenBSD/SPARC64 compile
From: |
Ahmed Khanzada |
Subject: |
bug#46111: Reverting fns.c hash function due to OpenBSD/SPARC64 compile breaking |
Date: |
Mon, 25 Jan 2021 22:57:18 -0800 |
Not sure if the patch attached correctly. Trying again.
On Mon, Jan 25, 2021 at 10:37 PM Ahmed Khanzada <me@enzu.ru> wrote:
>
> I'm not an expert on C, OpenBSD, or SPARC64, but I did notice
> emacs-current was not compiling.
>
> During a gmake, bootstrap-emacs would get a SIGBUS and fail. Running
> gdb led me to the hash_string function where it seemed to be failing.
>
> Reverting the hash_string function to a previous version seems to have
> fixed the issue.
>
> If I had to guess, it may have something to do with SPARC64 alignment.
>
> I don't have an updated AMD64 OpenBSD box running at the moment, but if you
> would like me to test there, I could find a way.
>
> I understand that reverting this function might not be the best way
> forward, but wrote a patch just in case that reverts hash_string to an
> earlier version that compiles on OpenBSD/SPARC64.
>
> I am already signed all my GNU contributor docs.
>
> --[[text/plain; type=patch;
> name="0001-Reverting-hash_string-function-due-to-problem-on-Ope.patch"
> Content-Disposition: attachment; filename="0001-Reverting-hasattach
> filh_string-function-due-to-problem-on-Ope.patch"][base64]]
> RnJvbSBkOTM4NzQ1Y2U1NjA1OGJlMjQwNzhlYzUyZDk3Mzk4Njk3ZGI0Yjc2IE1vbiBTZXAgMTcg
> MDA6MDA6MDAgMjAwMQpGcm9tOiBBaG1lZCBLaGFuemFkYSA8bWVAZW56dS5ydT4KRGF0ZTogTW9u
> LCAyNSBKYW4gMjAyMSAyMToxNjo0OCAtMDgwMApTdWJqZWN0OiBbUEFUQ0hdIFJldmVydGluZyBo
> YXNoX3N0cmluZyBmdW5jdGlvbiBkdWUgdG8gcHJvYmxlbSBvbgogT3BlbkJTRC9TUEFSQzY0Cgot
> LS0KIHNyYy9mbnMuYyB8IDMyICsrKysrKystLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tCiAxIGZp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hpbGUgKHAgIT0gZW5k
> KQogICAgIHsKLSAgICAgIEVNQUNTX1VJTlQgYyA9ICpwOwotICAgICAgcCArPSBzdGVwOworICAg
> ICAgYyA9ICpwKys7CiAgICAgICBoYXNoID0gc3hoYXNoX2NvbWJpbmUgKGhhc2gsIGMpOwogICAg
> IH0KLSAgaWYgKHAgPCBlbmQpCi0gICAgeyAvKiBBIGZldyBsYXN0IGJ5dGVzIHJlbWFpbiAoc21h
> bGxlciB0aGFuIGFuIEVNQUNTX1VJTlQpLiAgKi8KLSAgICAgIC8qIEZJWE1FOiBXZSBjb3VsZCBk
> byB0aGlzIHdpdGhvdXQgYSBsb29wLCBidXQgaXQnZCByZXF1aXJlCi0gICAgICAgICBlbmRpYW4t
> ZGVwZW5kZW50IGNvZGUgOi0oICAqLwotICAgICAgY2hhciBjb25zdCAqcDEgPSAoY2hhciBjb25z
> dCAqKXA7Ci0gICAgICBjaGFyIGNvbnN0ICplbmQxID0gKGNoYXIgY29uc3QgKillbmQ7Ci0gICAg
> ICBkbwotICAgICAgICB7Ci0gICAgICAgICAgdW5zaWduZWQgY2hhciBjID0gKnAxKys7Ci0gICAg
> ICAgICAgaGFzaCA9IHN4aGFzaF9jb21iaW5lIChoYXNoLCBjKTsKLSAgICAgICAgfQotICAgICAg
> d2hpbGUgKHAxIDwgZW5kMSk7Ci0gICAgfQogCiAgIHJldHVybiBoYXNoOwogfQotLSAKMi4yOC4w
> Cgo=
0001-Reverting-hash_string-function-due-to-problem-on-Ope.patch
Description: Binary data
- bug#46111: Reverting fns.c hash function due to OpenBSD/SPARC64 compile breaking, Ahmed Khanzada, 2021/01/26
- bug#46111: Reverting fns.c hash function due to OpenBSD/SPARC64 compile breaking,
Ahmed Khanzada <=
- bug#46111: Reverting fns.c hash function due to OpenBSD/SPARC64 compile breaking, Eli Zaretskii, 2021/01/26
- bug#46111: Reverting fns.c hash function due to OpenBSD/SPARC64 compile breaking, Ahmed Khanzada, 2021/01/27
- bug#46111: Reverting fns.c hash function due to OpenBSD/SPARC64 compile breaking, Eli Zaretskii, 2021/01/28
- bug#46111: Reverting fns.c hash function due to OpenBSD/SPARC64 compile breaking, Stefan Monnier, 2021/01/28
- bug#46111: Reverting fns.c hash function due to OpenBSD/SPARC64 compile breaking, Eli Zaretskii, 2021/01/28
- bug#46111: Reverting fns.c hash function due to OpenBSD/SPARC64 compile breaking, Stefan Monnier, 2021/01/28
- bug#46111: Reverting fns.c hash function due to OpenBSD/SPARC64 compile breaking, Stefan Monnier, 2021/01/28
- bug#46111: Reverting fns.c hash function due to OpenBSD/SPARC64 compile breaking, Stefan Monnier, 2021/01/28
- bug#46111: Reverting fns.c hash function due to OpenBSD/SPARC64 compile breaking, Andreas Schwab, 2021/01/28
- bug#46111: Reverting fns.c hash function due to OpenBSD/SPARC64 compile breaking, Eli Zaretskii, 2021/01/28