upowerd crashed with SIGSEGV in __stpcpy_chk()

Bug #1034005 reported by Chanchao
742
This bug affects 111 people
Affects Status Importance Assigned to Milestone
Libimobiledevice
New
Undecided
Unassigned
upower (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Crashed after coming back from standby and watching a youtube vid in Chrome. No other apps running.

ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: upower 0.9.17-1build1
ProcVersionSignature: Ubuntu 3.5.0-8.8-generic 3.5.0
Uname: Linux 3.5.0-8-generic x86_64
ApportVersion: 2.4-0ubuntu6
Architecture: amd64
Date: Tue Aug 7 08:53:52 2012
ExecutablePath: /usr/lib/upower/upowerd
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120301)
ProcCmdline: /usr/lib/upower/upowerd
ProcEnviron:

SegvAnalysis:
 Segfault happened at: 0x7f7860e71c70 <__stpcpy_chk+80>: mov (%rsi),%rax
 PC (0x7f7860e71c70) ok
 source "(%rsi)" (0x00000000) not located in a known VMA region (needed readable region)!
 destination "%rax" ok
SegvReason: reading NULL VMA
Signal: 11
SourcePackage: upower
StacktraceTop:
 __stpcpy_chk () from /lib/x86_64-linux-gnu/libc.so.6
 ?? () from /usr/lib/libimobiledevice.so.3
 userpref_get_host_id () from /usr/lib/libimobiledevice.so.3
 lockdownd_client_new_with_handshake () from /usr/lib/libimobiledevice.so.3
 ?? ()
Title: upowerd crashed with SIGSEGV in __stpcpy_chk()
UpgradeStatus: Upgraded to quantal on 2012-07-28 (9 days ago)
UserGroups:

Revision history for this message
Chanchao (custom) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 __stpcpy_chk () at ../sysdeps/x86_64/strcpy_chk.S:71
 strcpy (__src=<optimized out>, __dest=0x7f786154a620 "") at /usr/include/x86_64-linux-gnu/bits/string3.h:105
 userpref_get_config_dir () at userpref.c:128
 userpref_get_config_dir () at userpref.c:105
 userpref_get_host_id (host_id=host_id@entry=0x7fffd7b120d0) at userpref.c:406

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : StacktraceSource.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in upower (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in upower (Ubuntu):
status: New → Confirmed
Revision history for this message
Julien Lavergne (gilir) wrote :

Also crashing when plug in my iphone, on my desktop computer

tags: added: bugpattern-needed
visibility: private → public
Revision history for this message
bar (barhofesh) wrote :

after deleting KDE desktop packages

Revision history for this message
shawnlandden (shawnlandden) wrote :

This NULL deference when HOME is not defined appears to be fixed in the latest version of libmobiledevice (or rather libmobiledevice git) in src/usrprefs.c:userprefs_get_config_dir()

reassigneing to where bug is coming from

Revision history for this message
shawnlandden (shawnlandden) wrote :

actually, I still don't like the user of getenv("HOME"); over

               struct passwd pwd;
               errno = 0;
               pwd = getpwuid(getuid());
               if (pwd)
                       cdir = pwd->pw_dir;
               else {
                       //error handling
               }

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Raising to High.. 412 affected == a big problem

Changed in upower (Ubuntu):
importance: Medium → High
Revision history for this message
Stefan Stutz (sstutz) wrote :

crashed after plugging in my iPhone

Revision history for this message
Adam Dingle (adam-yorba) wrote :

Just like the previous commenter, I saw this crash right after I plugged in my iPhone.

Changed in upower (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Wolf Rogner (war-rsb) wrote :

I have upowerd 0.9.17-1build1 installed.

It crashes on every resume from RAM (even when the monitor just dimms).

afaic this is not fixed at all

(12.10 64bit Mac running the latest patches)

Revision history for this message
mauriicio (mauriicio) wrote : Re: [Bug 1034005] Re: upowerd crashed with SIGSEGV in __stpcpy_chk()

hi,
for me, this bug happened after lubuntu-upgrade to 12.10
then, i made a fresh install, from mini.iso, only with the necessary
packages for me, and the problems disappear.

2012/11/10 Wolf Rogner <email address hidden>

> I have upowerd 0.9.17-1build1 installed.
>
> It crashes on every resume from RAM (even when the monitor just dimms).
>
> afaic this is not fixed at all
>
> (12.10 64bit Mac running the latest patches)
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1062276).
> https://bugs.launchpad.net/bugs/1034005
>
> Title:
> upowerd crashed with SIGSEGV in __stpcpy_chk()
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/libimobiledevice/+bug/1034005/+subscriptions
>

To post a comment you must log in.