Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with gvba
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
DarkWolfBG
n00b
n00b


Joined: 06 Mar 2006
Posts: 24

PostPosted: Mon Jan 15, 2007 12:41 am    Post subject: Problem with gvba Reply with quote

gvba (GUI to VisualBoyAdvance) don't work and always gives me segmentation fault.
This is the strace output(last lines not all):
Code:
stat64("/dev/sound", {st_mode=S_IFDIR|0755, st_size=160, ...}) = 0
stat64("/dev/sound/dsp", {st_mode=S_IFCHR|0660, st_rdev=makedev(14, 3), ...}) = 0
open("/dev/sound/dsp", O_WRONLY|O_NONBLOCK) = 7
fcntl64(7, F_GETFL)                     = 0x801 (flags O_WRONLY|O_NONBLOCK)
fcntl64(7, F_SETFL, O_WRONLY)           = 0
ioctl(7, SNDCTL_DSP_GETFMTS, 0xbff736a8) = 0
ioctl(7, SNDCTL_DSP_SETFMT or SOUND_PCM_READ_BITS, 0xbff736a8) = 0
ioctl(7, SOUND_PCM_READ_CHANNELS, 0xbff736a8) = 0
ioctl(7, SNDCTL_DSP_SPEED or SOUND_PCM_READ_RATE, 0xbff736a8) = 0
ioctl(7, SNDCTL_DSP_SETFRAGMENT, 0xbff736a4) = 0
clone(child_stack=0xb68944d4, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0xb6894be8, {entry_number:6, base_addr:0xb6894ba0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}, child_tidptr=0xb6894be8) = 30429
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 30427 detached

_________________
no windows, no gates, apache inside :)


Last edited by DarkWolfBG on Mon Jan 15, 2007 12:44 am; edited 1 time in total
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Mon Jan 15, 2007 12:43 am    Post subject: Reply with quote

I also get segmentation fault on AMD64. So i use the windows version, what a shame. :cry:
Back to top
View user's profile Send private message
code_raptor
n00b
n00b


Joined: 24 Jun 2005
Posts: 47

PostPosted: Sat Jan 27, 2007 3:39 am    Post subject: Reply with quote

Same problem "Segmentation fault " using 2.6.19-r4, i try to downgrade the kernel to stable version and test again
_________________
just feel the code...
Back to top
View user's profile Send private message
thomasvk
Guru
Guru


Joined: 19 Mar 2005
Posts: 597

PostPosted: Tue Feb 13, 2007 8:04 am    Post subject: Reply with quote

Same here with stable 2.6.19-gentoo-r5 kernel. No solutions?

Edit: 'gvba' command segfaults, 'VisualBoyAdvance' not... maybe this is GTK related?
Back to top
View user's profile Send private message
DataPath
n00b
n00b


Joined: 20 Sep 2003
Posts: 31

PostPosted: Sat Mar 17, 2007 1:19 am    Post subject: A quick peek at it in gdb Reply with quote

Code:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47401010838400 (LWP 7546)]
0x00002b1c65b96049 in g_hash_table_destroy () from /usr/lib/libglib-2.0.so.0
(gdb) bt
#0  0x00002b1c65b96049 in g_hash_table_destroy () from /usr/lib/libglib-2.0.so.0
#1  0x0000000000415b41 in ?? ()
#2  0x000000000042c99e in ?? ()
#3  0x0000000000413075 in ?? ()
#4  0x00002b1c66647374 in __libc_start_main () from /lib/libc.so.6
#5  0x000000000040d489 in ?? ()
#6  0x00007fff46e92e58 in ?? ()
#7  0x0000000000000000 in ?? ()
Back to top
View user's profile Send private message
Phenax
l33t
l33t


Joined: 10 Mar 2006
Posts: 972

PostPosted: Sat Mar 17, 2007 1:39 am    Post subject: Reply with quote

Helpful GDB debugging tips (IMO, GDB kills strace in actual human readability).

  • Don't compile with optimizations (Use -O0 and don't use -march or any of that crap)
  • Compile with -g and -ggdb CFLAGS
  • Compile with FEATURES="nostrip" in /etc/make.conf or heading your emerge line


It will give you usable results..
Back to top
View user's profile Send private message
DataPath
n00b
n00b


Joined: 20 Sep 2003
Posts: 31

PostPosted: Sat Mar 17, 2007 11:48 pm    Post subject: Reply with quote

I filed a bug and submitted a patch with a fix, bug #171293

The problem was an uninitialized variable.

Code:
  if (m_poKeymap != NULL)
  {
    delete m_poKeymap;
  }


m_poKeymap contained junk, because it wasn't initialized, and then this section of code would proceed to attempt to delete some random memory location according to whatever m_poKeymap happened to contain.
Back to top
View user's profile Send private message
thomasvk
Guru
Guru


Joined: 19 Mar 2005
Posts: 597

PostPosted: Sun Mar 18, 2007 11:05 am    Post subject: Reply with quote

Cool!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum