On Fri, 2009-03-06 at 22:05 +0100, Carsten Gnörlich wrote:
> Hi Nathan,
> > Compiling the debian source with -ggdb in CFLAGS gets me to
> spiral.c:
> >
> > Program received signal SIGILL, Illegal instruction.
> > [Switching to Thread 0xb7469710 (LWP 31121)]
> > 0x080c4e7e in CreateSpiral (outline=0x83026e8, fill=0x83026c8, 
> >     start_radius=10, segment_size=5, n_segments=1000) at spiral.c:59
> > 59     spiral->diameter = 2.0 * scale_o*cos(0);
> >
> > Commenting out that line gets me to the GUI, but it dies again later
> on
> > when it tries to draw the spiral when attempting to scan a disc (at
> line
> > 119 in spiral.c).
> >   
> Very strange. This part of the code has not been changed for ages;
> however I realize some typecasting sloppiness there.
> Actually segment_size should be cast to (double), and the cosine's arg
> better be 0.0. The corrected code fragment looks like:
> 
>      scale_o = (double)start_radius + ring_expand + (double)segment_size;
>    }
> 
>    spiral->diameter = 2.0 * scale_o*cos(0.0);
> 
> If that does not help, try commenting out the above line and hardcode a 
> reasonable value:
> 
>   spiral->diameter = 180;
> 
> In that case I would like to see the value of spiral->diameter and 
> scale_o leading to the crash.
> 
> 
> And some completely different idea: SIGILL could be a sign of trying to 
> execute a non existing
> instruction. As dvdisaster has been made SSE2-aware since 0.71.27, maybe
> 
> ./configure --with-sse2=no
> 
> will change something?
> 
> Cheers,
>   Carsten
> 

Carsten,

Ding!

My Athlon XP doesn't have SSE2 support, but the configure script detects
that it does.  This is surely the problem:

stiner...@stine-1:~$ cat /proc/cpuinfo 
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 8
model name      : AMD Athlon(tm)  2400+
stepping        : 1
cpu MHz         : 2000.271
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow up
bogomips        : 4000.54
clflush size    : 32
power management: ts

Using --with-sse2=no gives normal operation after a standard compile.

Glad we finally got this nailed down!

Nathan A. Stine




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to