[Tioga-users] tioga 1.4 segmentation fault

Edwin edder at tkwsping.nl
Thu Feb 15 15:57:32 EST 2007


On Thu, 15 Feb 2007 20:08:29 -0000, Vincent Fourmond  
<vincent.fourmond at 9online.fr> wrote:

> Edwin wrote:
>> On Thu, 15 Feb 2007 01:35:56 -0000, Andreas S <andreas_s at hotmail.com>
>> wrote:
>>
>>> Following the tioga 1.4 thread on the similar issue, I thought another
>>> data
>>> point might be helpful since the last mail in the thread doesn't  
>>> indicate
>>> any insight on the source of the problem
>>
>> Another data point for me, I got it working on another machine (a 64bit
>> machine) without any problems, but my other two (32bit) are still not
>> working. All three are using gentoo and I also tried it with another
>> version of gcc (3.4.?).
>
>   Edwin, Andrea,
>
>   Could you both try this:
>
>   edit the file split/Dtable/dtable_intern.h to add the following lines
>
> #undef PRIVATE
> #define PRIVATE static
>
> just before
>
> #include "dvector.h"

#include <ruby.h>
#undef PRIVATE
#define PRIVATE static
#include "dvector.h"

>
> and the sames lines just before
>
> #include "dvector_intern.h"
>
> in split/Dvector/dvector.c

#include "intern.h"
#undef PRIVATE
#define PRIVATE static
#include "dvector_intern.h"

This causes the following warning at compilation:
In file included from Dvector/dvector_intern.h:25,
                  from Dvector/dvector.c:33:
./namespace.h:40:1: warning: "PRIVATE" redefined


>
>   It might not stop segfaults, but they really should appear on another
> test (not Dtable anymore).

The tests seem to run fine (not sure if they always did):
edwin at vimes:~/tmp/tioga-1.4/tests$ ruby ts_Tioga.rb
This is the test suite for Tioga 1.4
Loaded suite ts_Tioga
Started
...................................................................
compressed from 0 to 8
compressed from 13 to 21
compressed from 70 to 69
compressed from 3631 to 1642
.


>>> NOTE: please look at tests/Icon_Test.pdf and compare it to  
>>> samples/Icon.pdf
..........
Finished in 0.530279 seconds.

78 tests, 724 assertions, 0 failures, 0 errors


But still a segmentation fault while running tioga
(gdb) run /usr/bin/tioga sine.rb -0
Starting program: /usr/bin/ruby /usr/bin/tioga sine.rb -0
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
loading /home/edwin/tmp/samples/sine.rb

Program received signal SIGSEGV, Segmentation fault.
0x007d6630 in ?? ()

Edwin


More information about the Tioga-users mailing list