LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 08-30-2012, 10:07 PM   #1
gozes
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Rep: Reputation: Disabled
Post Can you help track down a bug :-)


Hello everyone:

I have been on the hunt for a bug for the past few days and I seem to have gotten stuck. After the last two disupgrades; the first one being about two weeks ago and the second being yesturday. After the first one, gpodder had stop recognizing my iPod classic because of it I was unable to copy stuff to it and still can't at this momment. When the second disupgrade came around, banshee stopped copying to the iPod as well. I have had this issue in other distros as well, but not limited to Fedora and Arch and in those ocassions, no amount of googling helped and I had to reinstall my system to get it fixed. This time, however, I have decided to attempt to find the bug or thing causing this problem and fix it, or if the bug is on a lib or packege, revert back to the previous version and open a ticket with the dev.

Now, let't get to the fun part.

Given that this has happened before, I knew that the quick fix to the problem was to backup and reinstall my system and wait for the issue to show up again. But, I don't want to do this because this is Linux after all: if I can find the root of the issue, I can revert or fix it and report the issue. Now, here is where I'm at after having a quick look at my log and grepping it (shown below) to find the relevant info about the iPod. I can't really see any major issues with it, so I moved on to look at the packages that are giveing me issues (gpodder, banshee). A quick look at with apt-get does not show any missing dependencies. And, here is where I get stuck and run out of ideas as to where else to look. I would like to ask for your help on tracking this bug down.

Code:
Aug 30 12:39:05 GITS kernel: [49353.660702] sde: detected capacity change from 79824777216 to 0
Aug 30 12:39:08 GITS kernel: [49356.693709] usb 2-5: USB disconnect, device number 2
Aug 30 12:40:40 GITS kernel: [49448.800157] usb 2-5: new high-speed USB device number 3 using ehci_hcd
Aug 30 12:40:40 GITS kernel: [49448.934235] usb 2-5: New USB device found, idVendor=05ac, idProduct=1261
Aug 30 12:40:40 GITS kernel: [49448.934245] usb 2-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Aug 30 12:40:40 GITS kernel: [49448.934252] usb 2-5: Product: iPod
Aug 30 12:40:40 GITS kernel: [49448.934257] usb 2-5: Manufacturer: Apple Inc.
Aug 30 12:40:40 GITS kernel: [49448.934261] usb 2-5: SerialNumber: 000A2700155C87C0
Aug 30 12:40:40 GITS kernel: [49448.942389] scsi9 : usb-storage 2-5:1.0
Aug 30 12:40:40 GITS mtp-probe: checking bus 2, device 3: "/sys/devices/pci0000:00/0000:00:13.2/usb2/2-5"
Aug 30 12:40:40 GITS mtp-probe: bus: 2, device: 3 was not an MTP device
Aug 30 12:40:41 GITS kernel: [49449.948053] scsi 9:0:0:0: Direct-Access     Apple    iPod             1.62 PQ: 0 ANSI: 0
Aug 30 12:40:41 GITS kernel: [49449.949649] sd 9:0:0:0: Attached scsi generic sg5 type 0
Aug 30 12:40:46 GITS kernel: [49449.952046] sd 9:0:0:0: [sde] Spinning up disk....ready
Aug 30 12:40:46 GITS kernel: [49455.393372] sd 9:0:0:0: [sde] 19488471 4096-byte logical blocks: (79.8 GB/74.3 GiB)
Aug 30 12:40:46 GITS kernel: [49455.394611] sd 9:0:0:0: [sde] Write Protect is off
Aug 30 12:40:46 GITS kernel: [49455.395862] sd 9:0:0:0: [sde] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Aug 30 12:40:46 GITS kernel: [49455.398589] sd 9:0:0:0: [sde] 19488471 4096-byte logical blocks: (79.8 GB/74.3 GiB)
Aug 30 12:40:46 GITS kernel: [49455.412696]  sde: sde1
Aug 30 12:40:46 GITS kernel: [49455.414830] sd 9:0:0:0: [sde] 19488471 4096-byte logical blocks: (79.8 GB/74.3 GiB)
Aug 30 12:40:46 GITS kernel: [49455.417313] sd 9:0:0:0: [sde] Attached SCSI removable disk
Aug 30 12:40:47 GITS kernel: [49455.853622] FAT-fs (sde1): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
Aug 30 12:41:03 GITS kernel: [49472.624570] FAT-fs (sde1): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
 
Old 09-01-2012, 06:22 PM   #2
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
You might get a quicker response if your thread title stated your actual problem

What is your distro? What are the versions of the apps giving problems?

What do you mean by "disupgrade"?

Good that you've posted log entries (and used CODE tags ), but which log is it - syslog? And is this with the iPod being recognised, because it certainly shows up? (If not, can you reinstall / install in a VM and show corresponding lines from when it does work?)
 
Old 09-01-2012, 10:35 PM   #3
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,245
Blog Entries: 15

Rep: Reputation: 233Reputation: 233Reputation: 233
@gozes: Could it be that you're making your iPod work with the kernel? Were there some other applications you used? What were the errors shown, especially what where the firsts, and what were the changes in the system that were made e.g. applications and kernel configurations? Have you tried another kernel? If the softwares you use have caches, or are using a different configuration directory '~/.<application>' for every user, perhaps you could just delete those and try to run the applications again from start (of course, you should consider as well if there are some important data in your sessions). You might as well just rename those directories to '.<application>-old' first. Some applications also store data or caches in /var.
 
Old 09-02-2012, 12:13 AM   #4
gozes
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
hello thanks for the reply to both of you,



@SecretCode: I'm running debian sid, the apps giving problems are gpodder 3.2.0 and banshee 2.4.1.The iPod will show up fine under almost all(with the exception of gpodder) multimedia apps like banshee or gtkpod I can even play back stuff from it. The problmen is that after the first update gpodder stop seeing the iPod under the divces tab then after the second update banshee will hang while copying files to it. The log output that you see is from messeges but I can pust syslog or any other log if it will help.

For the record and don't take this the wrong way, I didn't post it that way for the reason you imaged. I post it that way because I truly want to find this bug and kill it, it has being hunting me on all the distros I run. Also I'm not new to Linux, forums and building my own systems is just this bug that has being annoying me for far to long


@konsolebox: As far as the kernel goes I'm using the default for debina sid(3.2.0-3-amd64 at the moment of this writing) and nor banshee or gpodder are saving anything in to /var/cache or a .dir for their config. The are no visible errors I can repeat the process and look at syslog if it will help. For errors look at my comment to SecretCode


thank you aging to both for the reply :-)
 
Old 09-02-2012, 12:47 AM   #5
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,245
Blog Entries: 15

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by gozes View Post
The problmen is that after the first update gpodder stop seeing the iPod under the divces tab then after the second update banshee will hang while copying files to it. The log output that you see is from messeges but I can pust syslog or any other log if it will help.
This implies first update of gpodder right?
 
Old 09-02-2012, 02:26 AM   #6
gozes
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by konsolebox View Post
This implies first update of gpodder right?
Nop,the problem start about a week or two ago after I did a disupgrad. After that was when I notice the issue because gpodder stop reconnecting my iPod. I wait it to see If the issue will go away with the next update to my system. It didn't, after that second update was when banshee start it to hang. I have the theory that it may be a lib causing the issue. Why a lib?, because the issue has presented itself in both programs and in multiple distros. Three weeks ago both programs ware working fine.

Last edited by gozes; 09-02-2012 at 02:28 AM.
 
Old 09-02-2012, 05:00 AM   #7
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
So you haven't gone through a kernel upgrade? That's quite a likely cause of this kind of thing. Any older kernels in your GRUB menu?

Since other apps can see the ipod perfectly, I don't think the system level (messages or syslog) is likely to show a problem. At most it may be mounting it with a subtly different option.

My approach to this would be to do a detailed comparison of a working setup with the non-working setup - and to keep everything else identical as far as possible - ideally same software on your current hardware. You mentioned a reinstall ... how keen are you to do that? Or otherwise an install in another partition, or on a vm.

Then: record the relevant lines from /var/log/messages and /var/log/syslog (I can't think of any other important logs) plus any config or log lines from gpodder, plus the output of lsusb. Then do the upgrades to reproduce the problem, capture the same information, and compare. (Ideally you'd keep both installations on separate partitions so if you later find that ~/.gconf/apps/unusual-errors/gpodder/secret.log contains the important data, you can compare working and non-working versions.

What other distros have you seen this in? If it occurs on different kinds of system then as you suggest a particular upgrade to a lib or other shared component might be the cause. Could be worth checking your /var/log/dpkg.log (maybe including logrotated /var/log/dpkg.log.1 etc for older messages).

Quote:
Originally Posted by gozes View Post
For the record and don't take this the wrong way, I didn't post it that way for the reason you imaged. I post it that way because I truly want to find this bug and kill it, it has being hunting me on all the distros I run. Also I'm not new to Linux, forums and building my own systems is just this bug that has being annoying me for far to long
Not at all. All I'm saying is that (from my perspective at least!) a thread title "fix a bug" is less likely to get my attention that something like "help fix a bug with gpodder recognising iPod". Bug hunting is a worthy pursuit but some forums members may not be interested right now, but would be if they have specific knowledge.
 
Old 09-02-2012, 01:22 PM   #8
gozes
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by SecretCode View Post
So you haven't gone through a kernel upgrade? That's quite a likely cause of this kind of thing. Any older kernels in your GRUB menu?

Since other apps can see the ipod perfectly, I don't think the system level (messages or syslog) is likely to show a problem. At most it may be mounting it with a subtly different option.

My approach to this would be to do a detailed comparison of a working setup with the non-working setup - and to keep everything else identical as far as possible - ideally same software on your current hardware. You mentioned a reinstall ... how keen are you to do that? Or otherwise an install in another partition, or on a vm.

Then: record the relevant lines from /var/log/messages and /var/log/syslog (I can't think of any other important logs) plus any config or log lines from gpodder, plus the output of lsusb. Then do the upgrades to reproduce the problem, capture the same information, and compare. (Ideally you'd keep both installations on separate partitions so if you later find that ~/.gconf/apps/unusual-errors/gpodder/secret.log contains the important data, you can compare working and non-working versions.

What other distros have you seen this in? If it occurs on different kinds of system then as you suggest a particular upgrade to a lib or other shared component might be the cause. Could be worth checking your /var/log/dpkg.log (maybe including logrotated /var/log/dpkg.log.1 etc for older messages).


Not at all. All I'm saying is that (from my perspective at least!) a thread title "fix a bug" is less likely to get my attention that something like "help fix a bug with gpodder recognising iPod". Bug hunting is a worthy pursuit but some forums members may not be interested right now, but would be if they have specific knowledge.
Hello again SecretCode,

I just had a look at my grub.conf and I have:

3.2.0-3-amd64
3.2.0-3-amd64 (recovery mode)
3.2.0-2-amd64
3.2.0-2-amd64 (recovery mode)

I think we can rule out hardware because I had this issue with my old motherboard that fried a while ago after a storm. Also the issue is present on my laptop and this motherboard. Furthermore, if hardware is rule out I don't mind doing reinstall on my laptop and using that as test bed. Also is worth point out that I just repeated the process(trying to copy something to the iPod with banshee) and neither /var/log/messeges or /var/log/syslog show any errors when trying to copy stuff to the iPod it just hangs there waiting for Godot. However, I had a look at the dpkg logs and found this after greping for gpodder(shown below) also there is nothing related to gpodder or banshee as far config goes in my .gconf


Code:
2012-08-02 22:04:46 upgrade gpodder:all 2.20.1-1 3.2.0-1
2012-08-02 22:04:46 status half-configured gpodder:all 2.20.1-1
2012-08-02 22:04:46 status unpacked gpodder:all 2.20.1-1
2012-08-02 22:04:46 status half-installed gpodder:all 2.20.1-1
2012-08-02 22:04:46 status half-installed gpodder:all 2.20.1-1
2012-08-02 22:04:46 status half-installed gpodder:all 2.20.1-1
2012-08-02 22:04:46 status half-installed gpodder:all 2.20.1-1
2012-08-02 22:04:47 status half-installed gpodder:all 2.20.1-1
2012-08-02 22:04:47 status half-installed gpodder:all 2.20.1-1
2012-08-02 22:04:47 status half-installed gpodder:all 2.20.1-1
2012-08-02 22:04:47 status unpacked gpodder:all 3.2.0-1
2012-08-02 22:04:47 status unpacked gpodder:all 3.2.0-1
2012-08-02 22:07:38 configure gpodder:all 3.2.0-1 <none>
2012-08-02 22:07:38 status unpacked gpodder:all 3.2.0-1
2012-08-02 22:07:38 status half-configured gpodder:all 3.2.0-1
2012-08-02 22:07:38 status installed gpodder:all 3.2.0-1
2012-08-05 23:00:21 upgrade gpodder:all 3.2.0-1 3.2.0-1
2012-08-05 23:00:21 status half-configured gpodder:all 3.2.0-1
2012-08-05 23:00:21 status unpacked gpodder:all 3.2.0-1
2012-08-05 23:00:21 status half-installed gpodder:all 3.2.0-1
2012-08-05 23:00:21 status half-installed gpodder:all 3.2.0-1
2012-08-05 23:00:21 status half-installed gpodder:all 3.2.0-1
2012-08-05 23:00:22 status half-installed gpodder:all 3.2.0-1
2012-08-05 23:00:22 status half-installed gpodder:all 3.2.0-1
2012-08-05 23:00:22 status half-installed gpodder:all 3.2.0-1
2012-08-05 23:00:22 status half-installed gpodder:all 3.2.0-1
2012-08-05 23:00:22 status unpacked gpodder:all 3.2.0-1
2012-08-05 23:00:22 status unpacked gpodder:all 3.2.0-1
2012-08-05 23:00:34 configure gpodder:all 3.2.0-1 <none>
2012-08-05 23:00:34 status unpacked gpodder:all 3.2.0-1
2012-08-05 23:00:34 status half-configured gpodder:all 3.2.0-1
2012-08-05 23:00:34 status installed gpodder:all 3.2.0-1
Almost forgot, I have alos seen this issue on Fedora and Arch

Last edited by gozes; 09-02-2012 at 01:32 PM.
 
Old 09-02-2012, 03:31 PM   #9
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
If you reboot into kernel 3.2.0-2 do you get the same issue?

Removing and reinstalling the older version of gpodder might also be worth trying.
 
Old 09-02-2012, 08:50 PM   #10
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,245
Blog Entries: 15

Rep: Reputation: 233Reputation: 233Reputation: 233
Just curious. Why do you have to disupgrade, or downgrade?
 
Old 09-03-2012, 12:28 AM   #11
gozes
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
@SecretCode tried both thing didn't work


@konsolebox disupgrade will remove the old version of the package and install the new one. upgrade alone will install the new one, but keep the old one. I like to keep my system as clean as possible. Downgrade, if it terns out that a new version of a lib has the bug. I will go back to the privies.
 
Old 09-03-2012, 09:09 PM   #12
gozes
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Here's a new development, for some reason the kernel is sending reset message to the usb hub that the iPod is connect to
 
Old 09-03-2012, 09:19 PM   #13
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,245
Blog Entries: 15

Rep: Reputation: 233Reputation: 233Reputation: 233
@gozes: bad wire? tried other socket?
 
Old 09-03-2012, 10:05 PM   #14
gozes
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
did that same thing
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Track Me! Just Track Me, GNOME Project! LXer Syndicated Linux News 0 03-02-2011 02:41 AM
Bug#314905 bug fix for Ubuntu and gcc is 4.4.1 bostan Linux - General 1 12-11-2010 01:35 PM
[BUG] Current pkgtools installpkg bug jazzor Slackware 7 04-16-2009 06:30 AM
How to track the bug? maradnus Linux - Newbie 6 03-13-2009 06:57 AM
LXer: 2008 CES: Bug Labs Introduces BUG, BUGbase. So Cool! LXer Syndicated Linux News 0 01-09-2008 02:21 AM


All times are GMT -5. The time now is 09:46 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration