[Bf-committers] New text issues

Matthew H. Plough mplough at Princeton.EDU
Mon Jun 20 00:22:32 CEST 2005


Alexander Ewering wrote:

> Concerning 2)
>
> I don't know why this button crashes for everyone. I have looked for
> bugs, and not found any. It didn't ever crash for me, not directly
> after entering editmode on a new font, and not while editing.
>
> I need someone to provide a backtrace. 


Your backtrace follows.  Looks like you're trying to dereference a null 
pointer.  BIF_lorem, p2, and p are all NULL.

$ gdb 
/cygdrive/c/projects/bfblender/blender/obj/windows/debug/bin/blender.exe
GNU gdb 6.3.50_2004-12-28-cvs (cygwin-special)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
(gdb) break main
Breakpoint 1 at 0x40153b: file creator.c, line 210.
(gdb) break add_lorem
Breakpoint 2 at 0x41d602: file editfont.c, line 257.
(gdb) c
The program is not being run.
(gdb) r
Starting program: 
/cygdrive/c/projects/bfblender/blender/obj/windows/debug/bin/b
lender.exe

Breakpoint 1, main (argc=1, argv=0x30940b8) at creator.c:210
210             int audio = 1;
(gdb) c
Continuing.
Shortname = 'c:\projects\BFBLEN~1\blender\obj\windows\debug\bin\blender.exe'
Using Python version 2.3
'import site' failed; use -v for traceback
No installed Python found.
Only built-in modules are available.  Some scripts may not run.
Continuing happily.

Breakpoint 2, add_lorem () at editfont.c:257
257             Curve *cu=G.obedit->data;
(gdb) bt
#0  add_lorem () at editfont.c:257
#1  0x00522dfb in do_fontbuts (event=2208) at buttons_editing.c:989
#2  0x0054c27a in do_butspace (event=2208) at butspace.c:288
#3  0x0045bfd6 in winqreadbutspace (sa=0x1cd6e24c, spacedata=0x1cd7284c,
    evt=0x22fe90) at space.c:3078
#4  0x004d6686 in scrarea_do_winhandle (area=0x1cd6e24c, evt=0x22fe90)
    at spacetypes.c:144
#5  0x00403ea4 in scrarea_dispatch_events (sa=0x1cd6e24c) at 
editscreen.c:563
#6  0x004051a5 in screen_dispatch_events () at editscreen.c:1122
#7  0x00405928 in screenmain () at editscreen.c:1366
#8  0x00401e5b in main (argc=1, argv=0x30940b8) at creator.c:586
(gdb) n
260             if (lastlorem)
(gdb)
263                     p= BIF_lorem;
(gdb)
265             i= rand()/(RAND_MAX/6)+4;
(gdb)
267             for (p2=p; *p2 && i; p2++) {
(gdb)

Program received signal SIGSEGV, Segmentation fault.
0x0041d659 in add_lorem () at editfont.c:267
267             for (p2=p; *p2 && i; p2++) {
(gdb) bt
#0  0x0041d659 in add_lorem () at editfont.c:267
#1  0x00522dfb in do_fontbuts (event=2208) at buttons_editing.c:989
#2  0x0054c27a in do_butspace (event=2208) at butspace.c:288
#3  0x0045bfd6 in winqreadbutspace (sa=0x1cd6e24c, spacedata=0x1cd7284c,
    evt=0x22fe90) at space.c:3078
#4  0x004d6686 in scrarea_do_winhandle (area=0x1cd6e24c, evt=0x22fe90)
    at spacetypes.c:144
#5  0x00403ea4 in scrarea_dispatch_events (sa=0x1cd6e24c) at 
editscreen.c:563
#6  0x004051a5 in screen_dispatch_events () at editscreen.c:1122
#7  0x00405928 in screenmain () at editscreen.c:1366
#8  0x00401e5b in main (argc=1, argv=0x30940b8) at creator.c:586
(gdb) print p2
$1 = 0x0
(gdb) print p
$2 = 0x0
(gdb) print *p2
Cannot access memory at address 0x0
(gdb)




More information about the Bf-committers mailing list