Bug#485061: fenix: pixbros segfaults on level completion

Darren Salt linux at youmustbejoking.demon.co.uk
Sat Jun 7 22:18:41 UTC 2008

Package: fenix
Version: 0.92a.dfsg1-3
Severity: serious
Tags: patch

pixbros 100% repeatably crashes with a segfault upon level completion. I've
tracked this down (with a local debuggable fenix build) to this:

  Program received signal SIGSEGV, Segmentation fault.
  [Switching to Thread 0x7fd7a105b6f0 (LWP 6775)]
  0x00007fd7a0a28cd5 in free () from /lib/libc.so.6
  (gdb) bt
  #0  0x00007fd7a0a28cd5 in free () from /lib/libc.so.6
  #1  0x0000000000409f96 in string_coalesce () at strings.c:335
  #2  0x000000000041e224 in gr_wait_frame () at g_main.c:1000
  #3  0x000000000040bc86 in instance_go_all () at i_main.c:298
  #4  0x0000000000405873 in main (argc=3, argv=0x7fffa91d07d8) at main.c:406

The segfault is caused by a pointer into hyperspace; the attached patch fixes
it by ensuring that the memory is initialised.

| Darren Salt    | linux or ds at              | nr. Ashington, | Toon
| RISC OS, Linux | youmustbejoking,demon,co,uk | Northumberland | Army
| + Travel less. Share transport more.           PRODUCE LESS CARBON DIOXIDE.

Everything bows to success, even grammar.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: string_alloc_crash.patch
Type: application/octet-stream
Size: 1959 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20080607/2c8ca8d7/attachment.obj 

More information about the Pkg-games-devel mailing list