By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 2722

Summary: kscd hangs and leaves a defunkt process on startup
Product: TDE Reporter: Martin Hodges <martinhodges479>
Component: tdemultimediaAssignee: Timothy Pearson <kb9vqf>
Status: NEW ---    
Severity: major CC: bugwatch, martinhodges479
Priority: P5    
Version: R14.0.x [Trinity]   
Hardware: All   
OS: Linux   
Compiler Version: TDE Version String:
Application Version: Application Name:
Bug Depends on:    
Bug Blocks: 2968    

Description Martin Hodges 2016-10-29 13:24:45 CDT
Starting kscd from the menu results in no visible actions.
These are the relevant lines from 'ps ux'.

martin    3250  0.1  0.3  36908 14636 ?        S    20:21   0:00 kscd -caption KsCD -icon kscd -miniicon kscd
martin    3251  0.0  0.0      0     0 ?        Z    20:21   0:00 [kscd] <defunct>

Running the program with gdb did not give much info.

(gdb) run
Starting program: /opt/trinity/bin/kscd
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1".
TQWidget::setProperty( "text", value ) failed: property invalid, read-only or does not exist
kscd: ERROR: Invalid reply from mediamanager


q
^C
Program received signal SIGINT, Interrupt.
0xf7fdad70 in __kernel_vsyscall ()
(gdb)
(gdb) q
A debugging session is active.

        Inferior 1 [process 3141] will be killed.

Quit anyway? (y or n) y
Comment 1 Martin Hodges 2016-11-12 05:02:01 CST
Kscd will start if the /opt/trinity/share/apps/profiles and ...share/config.kcfg
kscd files are moved to another location.

The following was observed when started via a terminal.

martin@nusse:~$ kscd
TQWidget::setProperty( "text", value ) failed: property invalid, read-only or does not exist
audio: unknown soundsystem ''
cdda: setup_soundsystem failed
audio: unknown soundsystem ''
cdda: setup_soundsystem failed
martin@nusse:~$ audio: unknown soundsystem ''
cdda: setup_soundsystem failed
audio: unknown soundsystem ''
cdda: setup_soundsystem failed
audio: unknown soundsystem ''
cdda: setup_soundsystem failed
....last two lines repeated etc etc etc.

The program works when the 'Select audio device' is set to '/dev/dsp'.
Comment 2 Martin Hodges 2016-11-12 12:01:09 CST
Ha ha. Kscd will not launch unless an audio cd is already present and detected by the media manager, i.e. an audio cd icon is displayed on the desktop.

I am de-bugging but the process involves re-booting as it causes a kernel oops.


Nov 12 18:47:12 nusse kernel: [ 4098.285004] BUG: unable to handle kernel NULL pointer dereference at 0000000000000002
Nov 12 18:47:12 nusse kernel: [ 4098.285067] IP: [<ffffffffa007204a>] mmc_ioctl_cdrom_read_audio+0x23a/0x3e0 [cdrom]
Nov 12 18:47:12 nusse kernel: [ 4098.285125] PGD b7a9f067 PUD b7ca7067 PMD 0
Nov 12 18:47:12 nusse kernel: [ 4098.285165] Oops: 0000 [#1] SMP
Nov 12 18:47:12 nusse kernel: [ 4098.285184] Modules linked in: rpcsec_gss_krb5 nfsv4 dns_resolver ctr ccm bnep snd_hrtimer snd_seq_midi snd_seq_midi_event snd_rawm
idi snd_seq snd_seq_device autofs4 uinput nfsd auth_rpcgss oid_registry nfs_acl nfs lockd fscache sunrpc loop fuse dm_crypt dm_mod cdc_ether cdc_wdm usbnet cdc_acm
mii ecb btusb bluetooth 6lowpan_iphc iTCO_wdt iTCO_vendor_support pcmcia ppdev coretemp kvm arc4 uvcvideo pcspkr videobuf2_vmalloc videobuf2_memops videobuf2_core v
4l2_common videodev iwldvm media evdev serio_raw mac80211 r592 snd_hda_codec_conexant i2c_i801 r852 snd_hda_codec_generic sm_common nand nand_ecc nand_bch bch nand_
ids yenta_socket mtd memstick pcmcia_rsrc pcmcia_core lpc_ich mfd_core i915 snd_hda_intel iwlwifi snd_hda_controller snd_hda_codec cfg80211 snd_hwdep snd_pcm_oss sh
pchp snd_mixer_oss snd_pcm snd_timer wmi drm_kms_helper thinkpad_acpi nvram snd ac drm soundcore rfkill battery i2c_algo_bit parport_pc i2c_core parport tpm_tis mei
_me tpm mei video button acpi_cpufreq processor ext4 crc16 mbcache jbd2 sg sd_mod crc_t10dif crct10dif_generic sr_mod cdrom crct10dif_common psmouse ahci libahci li
bata scsi_mod firewire_ohci sdhci_pci sdhci mmc_core firewire_core crc_itu_t ehci_pci uhci_hcd ehci_hcd e1000e usbcore ptp pps_core usb_common thermal thermal_sys
Nov 12 18:47:12 nusse kernel: [ 4098.285920] CPU: 0 PID: 4311 Comm: kscd Not tainted 3.16.0-4-amd64 #1 Debian 3.16.36-1+deb8u2
Nov 12 18:47:12 nusse kernel: [ 4098.285952] Hardware name: LENOVO 20828WG/20828WG, BIOS 7VET93WW (3.23 ) 10/13/2011
Nov 12 18:47:12 nusse kernel: [ 4098.285981] task: ffff8800b83f6150 ti: ffff8800b7c94000 task.ti: ffff8800b7c94000
Nov 12 18:47:12 nusse kernel: [ 4098.286008] RIP: 0010:[<ffffffffa007204a>]  [<ffffffffa007204a>] mmc_ioctl_cdrom_read_audio+0x23a/0x3e0 [cdrom]
Nov 12 18:47:12 nusse kernel: [ 4098.286050] RSP: 0018:ffff8800b7c97d10  EFLAGS: 00210282
Nov 12 18:47:12 nusse kernel: [ 4098.286072] RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
Nov 12 18:47:12 nusse kernel: [ 4098.286107] RDX: 0000000000003a96 RSI: 0000000000200206 RDI: ffff8800b7c97c70
Nov 12 18:47:12 nusse kernel: [ 4098.286134] RBP: 00000000000000c8 R08: ffff8800b7c94000 R09: 0000000000000008
Nov 12 18:47:12 nusse kernel: [ 4098.286161] R10: ffffffff818e2ee0 R11: 0000000000000006 R12: ffff880036c17f78
Nov 12 18:47:12 nusse kernel: [ 4098.286189] R13: 00000000fffffffb R14: ffff8800b7c2d4c0 R15: ffff8800b8301460
Nov 12 18:47:12 nusse kernel: [ 4098.286216] FS:  0000000000000000(0000) GS:ffff88013bc00000(0063) knlGS:00000000f53d2a40
Nov 12 18:47:12 nusse kernel: [ 4098.286249] CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
Nov 12 18:47:12 nusse kernel: [ 4098.286272] CR2: 0000000000000002 CR3: 00000000b6ef8000 CR4: 00000000000407f0
Nov 12 18:47:12 nusse kernel: [ 4098.286300] Stack:
Nov 12 18:47:12 nusse kernel: [ 4098.286315]  ffff880036c197c8 0000000009978880 0000000000000930 00000001b83f6150
Nov 12 18:47:12 nusse kernel: [ 4098.286353]  00000001000000c8 0000000009978880 00000001000000c8 00005be000000001
Nov 12 18:47:12 nusse kernel: [ 4098.286390]  0000000009978880 00000000ffffffe7 000000000000530e 00000000ffde5140
Nov 12 18:47:12 nusse kernel: [ 4098.286427] Call Trace:
Nov 12 18:47:12 nusse kernel: [ 4098.286443]  [<ffffffffa0073688>] ? cdrom_ioctl+0xd38/0x1189 [cdrom]
Nov 12 18:47:12 nusse kernel: [ 4098.286472]  [<ffffffff811c054f>] ? dput+0x1f/0x170
Nov 12 18:47:12 nusse kernel: [ 4098.286495]  [<ffffffffa00bad0c>] ? sr_block_ioctl+0x5c/0xc0 [sr_mod]
Nov 12 18:47:12 nusse kernel: [ 4098.286521]  [<ffffffff812aa43e>] ? compat_blkdev_ioctl+0x87e/0x1530
Nov 12 18:47:12 nusse kernel: [ 4098.286549]  [<ffffffff811f7bca>] ? compat_SyS_ioctl+0xba/0x10b0
Nov 12 18:47:12 nusse kernel: [ 4098.286575]  [<ffffffff811a9b15>] ? do_sys_open+0x195/0x220
Nov 12 18:47:12 nusse kernel: [ 4098.286598]  [<ffffffff8151ad7a>] ? sysenter_dispatch+0x7/0x21
Nov 12 18:47:12 nusse kernel: [ 4098.286621] Code: 98 3a 00 00 66 41 89 87 20 01 00 00 49 8b 74 24 18 4d 8b 77 68 e8 a7 5a 21 e1 85 c0 74 19 49 8b 87 30 01 00 00 41
 bd fb ff ff ff <0f> b6 40 02 83 e0 0f 41 88 44 24 60 4c 89 f7 e8 42 53 21 e1 85
Nov 12 18:47:12 nusse kernel: [ 4098.286842] RIP  [<ffffffffa007204a>] mmc_ioctl_cdrom_read_audio+0x23a/0x3e0 [cdrom]
Nov 12 18:47:12 nusse kernel: [ 4098.286879]  RSP <ffff8800b7c97d10>
Nov 12 18:47:12 nusse kernel: [ 4098.286893] CR2: 0000000000000002
Nov 12 18:47:12 nusse kernel: [ 4098.294837] ---[ end trace 05497ea88d8342a4 ]---