First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 79692
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: PPC Porters <ppc@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: John Steele Scott <toojays@toojays.net>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
pbbuttonsd.conf Config that causes segfaults text/plain Joe Jezak 2005-01-28 16:48 0000 3.59 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 79692 depends on: Show dependency tree
Show dependency graph
Bug 79692 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-01-27 02:49 0000
This version includes my patch for ALSA support. :)
It also adds support to switch on/off display mirroring using hotkeys, but I haven't tried this feature, not sure how/if it will work on my iBook G4.

------- Comment #1 From Luca Barbato 2005-01-27 04:18:35 0000 -------
Anybody with a working laptop is willing to test?

------- Comment #2 From Joe Jezak 2005-01-27 08:27:45 0000 -------
Tests okay here.  I had to change my config to reflect the ALSA changes (I was
getting segfaults with my old config), but that was probably user error.

------- Comment #3 From John Steele Scott 2005-01-27 23:16:41 0000 -------
Joe,

If you are getting segfaults, can you writeup a report for me or Matthias? A problem with the config file should not be causing a segfault.

------- Comment #4 From John Steele Scott 2005-01-27 23:18:06 0000 -------
To clarify my last comment: It is probably true that the config file is causing
the segfault, but we consider that to be a bug in the program, and would like
to fix it.

------- Comment #5 From Joe Jezak 2005-01-28 16:48:16 0000 -------
Created an attachment (id=49783) [edit]
Config that causes segfaults

Okay, here is the config that causes segfaults here.  I was using this config
sucessfully on previous versions of pbbuttonsd.  Switching the config to the
ALSA settings that are commented out stops the segfaults.  I do use ALSA and
not OSS, but I would think that OSS should still work since I have OSS
emulation enabled.  If I get a chance, I'll try and look at it.

------- Comment #6 From John Steele Scott 2005-01-30 03:06:05 0000 -------
I haven't had a chance to test this patch against Joe's config, but it may be
the same issue reported by debian:

http://sourceforge.net/mailarchive/forum.php?thread_id=6430700&forum_id=40677

The patch looks like:
--- pbbuttonsd-0.6.7/src/module_alsamixer.c     2005-01-24 19:50:37.000000000
+0100
+++ pbbuttonsd-0.6.7-new/src/module_alsamixer.c 2005-01-27 16:24:18.000000000
+0100
@@ -434,9 +434,15 @@
 alsamixer_exit ()
 {
        struct moddata_alsamixer *base = &modbase_alsamixer;
-       free (base->elements);
-       base->elements = NULL;
-       snd_mixer_free (base->mixer);
+
+       if (base->elements) {
+               free (base->elements);
+               base->elements = NULL;
+       }
+
+       if (base->mixer)
+               snd_mixer_free (base->mixer);
+       
        base->init_complete = 0;
        return 0;
 }

------- Comment #7 From Joe Jezak 2005-02-18 20:16:36 0000 -------
Okay, the patch supplied fixed the problem, I've added the new version of
pbbuttonsd to CVS as ~ppc, along with the patch.

First Last Prev Next    No search results available      Search page      Enter new bug