Bugzilla – Bug 45
Segmentation fault on sparc and IA64
Last modified: 2012-10-12 00:19:57 CEST
A Debian user reported a bug in SWI-prolog 5.10.4. He writes: * What led up to the situation? My package logol fails to build on IA64 and Sparc, some tests are failing while ok on other archs * What exactly did you do (or not do) that was effective (or ineffective)? I analysed the reason of failing tests and found that a seg fault occurs during the treatment * What was the outcome of this action? Basically, I parse a file, extract some chars at a position and do some treatment. On those archs, I end with a segmentation fault always at the same "time". I added some logs and it appears it occurs when calling a predicate. I added a write as first instruction of the predicate and it is not executed. Could be a memory allocation issue? See sample log below * What outcome did you expect instead? Treatment should be as on other archs He also provided a gdb backtrace on ia64: Program received signal SIGSEGV, Segmentation fault. 0x400000000007ce21 in into_relocation_chain () (gdb) backtrace #0 0x400000000007ce21 in into_relocation_chain () #1 0x4000000000088370 in garbageCollect () #2 0x400000000008a3a0 in ensureGlobalSpace () #3 0x4000000000046170 in PL_next_solution () #4 0x4000000000010360 in main () The entire bug log is available here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=680116
The person reported this bug indicated that it also happens with version 6.0.2.
I'm afraid is is hard to deal with this without the failing program and hardware on which it fails. It _might_ be related to #44, but I doubt it. If you have the opportunity to provide me access to a debugging environment, please contact me at bugs@swi-prolog.org to exchange ssh keys and machine locations. Cheers --- Jan
This might well be fixed by all recent version. Can someone test this on the latest git version (devel or stable)?
(In reply to comment #3) > This might well be fixed by all recent version. Can someone test this > on the latest git version (devel or stable)? logol package now compiled successfully on those architectures.