Bug 45 - Segmentation fault on sparc and IA64
: Segmentation fault on sparc and IA64
Status: RESOLVED FIXED
Product: SWI-Prolog
Classification: Unclassified
Component: core
: 6.2.x
: PC Linux
: Highest normal
Assigned To: Jan Wielemaker
:
:
:
  Show dependency treegraph
 
Reported: 2012-07-24 00:05 CEST by Eugeniy Meshcheryakov
Modified: 2012-10-12 00:19 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugeniy Meshcheryakov 2012-07-24 00:05:15 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
Comment 1 Eugeniy Meshcheryakov 2012-08-01 22:48:35 CEST
The person reported this bug indicated that it also happens with version 6.0.2.
Comment 2 Jan Wielemaker 2012-10-02 13:05:54 CEST
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
Comment 3 Jan Wielemaker 2012-10-05 11:18:27 CEST
This might well be fixed by all recent version.  Can someone test this
on the latest git version (devel or stable)?
Comment 4 Eugeniy Meshcheryakov 2012-10-12 00:19:57 CEST
(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.