I had a bus error. Please help!

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Seagaetcm
Posts: 10
Joined: Sat Jun 30, 2007 2:09 pm
Location: Peking, China

I had a bus error. Please help!

Post by Seagaetcm »

I render a model with PSPGL. But there is a Bus error when called function glDrawRangeElements:

Code: Select all

glDrawRangeElements (mode=4, start=53, end=464, count=1884, type=5123,
    indices=0x8a28ff0) at pspgl_varray_draw_range_elts.c:199
199             __pspgl_varray_draw_range_elts(mode, type, indices, count, start
, end);
Current language:  auto; currently c
(gdb) n
__pspgl_varray_draw_range_elts (mode=4, idx_type=5123, indices=0x8a28ff0,
    count=1884, minidx=53, maxidx=464) at pspgl_varray_draw_range_elts.c:77
77      {
(gdb)
90              prim = __pspgl_glprim2geprim(mode);
(gdb)
91              if &#40;unlikely&#40;prim < 0&#41;&#41;
&#40;gdb&#41;
94              if &#40;unlikely&#40;count == 0&#41;&#41;
&#40;gdb&#41;
102             if &#40;__pspgl_cache_arrays&#40;&#41;&#41; &#123;
&#40;gdb&#41;
117                     __pspgl_ge_vertex_fmt&#40;pspgl_curctx, &vfmt&#41;;
&#40;gdb&#41;
119                     if &#40;vfmt.hwformat == 0&#41;
&#40;gdb&#41;
122                     if &#40;minidx == -1 || maxidx == -1&#41; &#123;
&#40;gdb&#41;

Program received signal SIGBUS, Bus error.
0x08999828 in memcpy &#40;&#41;
the memory Partitions is

Code: Select all

N |    BASE    |   SIZE   | TOTALFREE |  MAXFREE  | ATTR |
--|------------|----------|-----------|-----------|------|
1 | 0x88000000 |  3145728 |    388352 |    378368 | 000C |
2 | 0x08800000 | 25165824 |   1015040 |    752896 | 000F |
3 | 0x88000000 |  3145728 |    388352 |    378368 | 000C |
4 | 0x88300000 |  1048576 |   1048576 |   1048576 | 000C |
Maybe someone can help me.
thanks!
Seagaetcm
Posts: 10
Joined: Sat Jun 30, 2007 2:09 pm
Location: Peking, China

Post by Seagaetcm »

I think this infor will be useful for help

Code: Select all

Exception - Bus error &#40;data&#41;
Thread ID - 0x04D55737
Th Name   - GDBServer
Module ID - 0x0280F875
Mod Name  - GDBServer
EPC       - 0x088232E8
Cause     - 0x1000001C
BadVAddr  - 0x00010004
Status    - 0x20088613
zr&#58;0x00000000 at&#58;0x0008FF00 v0&#58;0x08836ED0 v1&#58;0x00000000
a0&#58;0x0882FA38 a1&#58;0x00000000 a2&#58;0x0060F809 a3&#58;0x089317C4
t0&#58;0x00000030 t1&#58;0x00000000 t2&#58;0x0000001C t3&#58;0x00000007
t4&#58;0x09F7FB60 t5&#58;0x00000E00 t6&#58;0x08821AD0 t7&#58;0x00088600
s0&#58;0x00000070 s1&#58;0x08830000 s2&#58;0x00000073 s3&#58;0x08830250
s4&#58;0x00000023 s5&#58;0x08836EC4 s6&#58;0x09F7FB80 s7&#58;0x08830000
t8&#58;0x00000001 t9&#58;0x880107E0 k0&#58;0x09F7FF00 k1&#58;0x00000000
gp&#58;0x08836870 sp&#58;0x09F7FB70 fp&#58;0x08830000 ra&#58;0x0882321C
jockyw2001
Posts: 339
Joined: Thu Sep 29, 2005 4:19 pm

Post by jockyw2001 »

Do a search in the forum and search for "addr2line"
Post Reply