|
From: David E. <tw...@us...> - 2003-10-16 18:17:09
|
On Thu, 2003-10-16 at 18:58, Nicholas Nethercote wrote:
> On Thu, 16 Oct 2003 aho...@es... wrote:
>
> > I get the following log and segfault when running glxgears (or any other
> > GL program it seems) with valgrind. My machine config is:
>
> [snip]
>
> > ==10543== Syscall param ioctl(generic) contains uninitialised or unaddressable byte(s)
> > ==10543== at 0x404BAD24: __GI___ioctl (in /lib/libc-2.3.2.so)
> > ==10543== by 0x417C6B65: r200CreateScreen (r200_screen.c:185)
> > ==10543== by 0x417C6E93: r200InitDriver (r200_screen.c:301)
> > ==10543== by 0x416B2AF8: __driUtilCreateScreen (dri_util.c:1201)
> > ==10543== Address 0xBFFFED94 is on thread 1's stack
> > ==10543==
> > ==10543== Use of uninitialised value of size 4
> > ==10543== at 0x417A9D4A: sigfpe_handler (common_x86.c:118)
> > ==10543== by 0x4017EF2F: ??? (vg_hashtable.c:213)
> > ==10543== by 0x417A9F6B: _mesa_init_all_x86_transform_asm (common_x86.c:275)
> > ==10543== by 0x4172D95A: _math_init (m_xform.c:218)
> > ==10543==
> > ==10543== Invalid read of size 2
> > ==10543== at 0x417A9D4A: sigfpe_handler (common_x86.c:118)
> > ==10543== by 0x4017EF2F: ??? (vg_hashtable.c:213)
> > ==10543== by 0x417A9F6B: _mesa_init_all_x86_transform_asm (common_x86.c:275)
> > ==10543== by 0x4172D95A: _math_init (m_xform.c:218)
> > ==10543== Address 0x6E is not stack'd, malloc'd or free'd
> > Segmentation fault
>
> Strange. It looks like vg_hashtable.c is causing a FP exception, which
> glxgears is catching, or something like that. But line 213 of
> vg_hashtable.c is the closing brace of VG_(HT_destruct)(), and
> vg_hashtable.c doesn't contain and FP arithmetic. Hmm.
It is probably a division by zero that causes the SIGFPE (Arithmetic
exception).
--
Regards,
-\- David Eriksson -/-
SynCE - http://synce.sourceforge.net
CalcEm - http://calcem.sourceforge.net
Desquirr - http://desquirr.sourceforge.net
SetiWrapper - http://setiwrapper.sourceforge.net
|