[Bug 396837] Re: hdparm crashed with SIGSEGV in __libc_start_main()

2009-07-14 Thread Colin Watson
The bug itself is easy to fix, but I'd like to get a bit of extra detail
while people's attention is on this bug, just in case this is triggered
by some underlying problem that we can fix at the same time. Could
somebody who can reproduce this bug please run:

  for device in /dev/[sh]d[a-z]; do sudo DEVNAME=$device strace -f -o
hdparm-$(basename $device).trace -s 1024 /lib/udev/hdparm; done

... and then attach all the hdparm-*.trace files to this bug?

** Changed in: hdparm (Ubuntu Karmic)
   Status: Confirmed = Incomplete

-- 
hdparm crashed with SIGSEGV in __libc_start_main()
https://bugs.launchpad.net/bugs/396837
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 396837] Re: hdparm crashed with SIGSEGV in __libc_start_main()

2009-07-14 Thread Colin Watson
Oh, please also attach /etc/hdparm.conf.

-- 
hdparm crashed with SIGSEGV in __libc_start_main()
https://bugs.launchpad.net/bugs/396837
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 396837] Re: hdparm crashed with SIGSEGV in __libc_start_main()

2009-07-14 Thread Colin Watson
Actually, on investigation, I don't think it's the udev rule that's
firing, but rather /etc/acpi/start.d/90-hdparm.sh or similar. It'd be
best to get an strace of whichever hdparm -B command is being used in
there ...

-- 
hdparm crashed with SIGSEGV in __libc_start_main()
https://bugs.launchpad.net/bugs/396837
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 396837] Re: hdparm crashed with SIGSEGV in __libc_start_main()

2009-07-14 Thread Launchpad Bug Tracker
This bug was fixed in the package hdparm - 9.15-1ubuntu2

---
hdparm (9.15-1ubuntu2) karmic; urgency=low

  * Fix crash with -B when HDIO_DRIVE_CMD(identify) fails (LP: #396837).

 -- Colin Watson cjwat...@ubuntu.com   Tue, 14 Jul 2009 14:04:15 +0100

** Changed in: hdparm (Ubuntu Karmic)
   Status: Incomplete = Fix Released

-- 
hdparm crashed with SIGSEGV in __libc_start_main()
https://bugs.launchpad.net/bugs/396837
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 396837] Re: hdparm crashed with SIGSEGV in __libc_start_main()

2009-07-14 Thread Nick Ellery
Fix works for me, no more crash upon resuming from suspend.

-- 
hdparm crashed with SIGSEGV in __libc_start_main()
https://bugs.launchpad.net/bugs/396837
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 396837] Re: hdparm crashed with SIGSEGV in __libc_start_main()

2009-07-13 Thread Robbie Williamson
I see you had the 2.6.30 kernel running, is this reproducible with the
latest Karmic kernel (2.6.31-2.17)?

-- 
hdparm crashed with SIGSEGV in __libc_start_main()
https://bugs.launchpad.net/bugs/396837
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 396837] Re: hdparm crashed with SIGSEGV in __libc_start_main()

2009-07-13 Thread Martin Pitt
Robbie Williamson [2009-07-13 14:27 -]:
 I see you had the 2.6.30 kernel running, is this reproducible with the
 latest Karmic kernel (2.6.31-2.17)?

Yes, I'm on 2.6.31-2.17.

-- 
hdparm crashed with SIGSEGV in __libc_start_main()
https://bugs.launchpad.net/bugs/396837
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 396837] Re: hdparm crashed with SIGSEGV in __libc_start_main()

2009-07-11 Thread Martin Pitt
Got a local retrace which is better:

--- stack trace ---
#0  0x004044d8 in process_dev (devname=0x0) at hdparm.c:1826
fd = 3
err = 52
parm = 0
multcount = 0
id = 0x0
#1  0x00406d29 in main (_argc=value optimized out, _argv=value 
optimized out) at hdparm.c:2399
no_more_flags = 0
disallow_flags = 0
c = value optimized out
name = \1\0\0\0}0\264,0\344@, '\0' repeats 13 times, 
;\...@\0\0\0\0
--- thread stack trace ---
.
Thread 1 (Thread 3074):
#0  0x004044d8 in process_dev (devname=0x0) at hdparm.c:1826
fd = 3
err = 52
parm = 0
multcount = 0
id = 0x0
#1  0x00406d29 in main (_argc=value optimized out, _argv=value 
optimized out) at hdparm.c:2399
no_more_flags = 0
disallow_flags = 0
c = value optimized out
name = \1\0\0\0}0\264,0\344@, '\0' repeats 13 times, 
;\...@\0\0\0\0
--- source code stack trace ---
#0  0x004044d8 in process_dev (devname=0x0) at hdparm.c:1826
  1821: }
  1822: }
  1823: if (get_apmmode) {
  1824: id = get_identify_data(fd, id);
  1825: printf( APM_level  = );
  1826: if((id[83]  0xc008) == 0x4008) {
  1827: if (id[86]  0x0008)
  1828: printf(%u\n, id[91]  0xff);
  1829: else
  1830: printf(off\n);
  1831: } else
#1  0x00406d29 in main (_argc=value optimized out, _argv=value 
optimized out) at hdparm.c:2399
  2394: while (argc--) {
  2395: argp = *argv++;
  2396: if (no_more_flags || argp[0] != '-') {
  2397: if (!num_flags_processed)
  2398: do_defaults = 1;
  2399: process_dev(argp);
  2400: continue;
  2401: }
  2402: if (0 == strcmp(argp, --)) {
  2403: no_more_flags = 1;
  2404: continue;

So clearly id == NULL here, and id[83] crashes.

** Changed in: hdparm (Ubuntu)
   Importance: Undecided = High

** Changed in: hdparm (Ubuntu)
 Assignee: (unassigned) = Canonical Foundations Team 
(canonical-foundations)

** Also affects: hdparm (Ubuntu Karmic)
   Importance: High
 Assignee: Canonical Foundations Team (canonical-foundations)
   Status: Confirmed

-- 
hdparm crashed with SIGSEGV in __libc_start_main()
https://bugs.launchpad.net/bugs/396837
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 396837] Re: hdparm crashed with SIGSEGV in __libc_start_main()

2009-07-10 Thread Nick Ellery
Got the same crash coming out of suspend.

** Changed in: hdparm (Ubuntu)
   Status: New = Confirmed

-- 
hdparm crashed with SIGSEGV in __libc_start_main()
https://bugs.launchpad.net/bugs/396837
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 396837] Re: hdparm crashed with SIGSEGV in __libc_start_main()

2009-07-10 Thread William Bohn
I get the same crash coming out of suspend on an i386 architecture.

-- 
hdparm crashed with SIGSEGV in __libc_start_main()
https://bugs.launchpad.net/bugs/396837
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 396837] Re: hdparm crashed with SIGSEGV in __libc_start_main()

2009-07-07 Thread arand

** Attachment added: CoreDump.gz
   http://launchpadlibrarian.net/28782220/CoreDump.gz

** Attachment added: Disassembly.txt
   http://launchpadlibrarian.net/28782221/Disassembly.txt

** Attachment added: ProcMaps.txt
   http://launchpadlibrarian.net/2878/ProcMaps.txt

** Attachment added: ProcStatus.txt
   http://launchpadlibrarian.net/28782223/ProcStatus.txt

** Attachment added: Registers.txt
   http://launchpadlibrarian.net/28782224/Registers.txt

** Attachment added: Stacktrace.txt
   http://launchpadlibrarian.net/28782225/Stacktrace.txt

** Attachment added: ThreadStacktrace.txt
   http://launchpadlibrarian.net/28782226/ThreadStacktrace.txt

** Visibility changed to: Public

-- 
hdparm crashed with SIGSEGV in __libc_start_main()
https://bugs.launchpad.net/bugs/396837
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs