Your message dated Sat, 6 Apr 2019 06:43:20 +0200
with message-id <[email protected]>
and subject line apport was removed from Debian
has caused the Debian Bug report #775327,
regarding apport: Unicode exception when parsing some crashes
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
775327: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=775327
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: apport
Version: 2.15.1-1
Severity: important

This behavior seems to be very racy.


ERROR: apport (pid 1148) Wed Jan 14 12:46:21 2015: pid: 1148, uid: 1000, gid: 
1000, euid: 0, egid: 0
ERROR: apport (pid 1148) Wed Jan 14 12:46:21 2015: environment: environ({})
ERROR: apport (pid 1278) Wed Jan 14 12:48:05 2015: called for pid 1264, signal 
11, core limit 0
ERROR: apport (pid 1278) Wed Jan 14 12:48:05 2015: executable: /bin/sleep 
(command line "sleep 900")
ERROR: apport (pid 1278) Wed Jan 14 12:48:05 2015: Unhandled exception:
Traceback (most recent call last):
  File "/usr/share/apport/apport", line 389, in <module>
    if is_closing_session(pid, pidstat.st_uid):
  File "/usr/share/apport/apport", line 213, in is_closing_session
    env = e.read().split('\0').decode('utf-8')
  File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 2646: 
ordinal not in range(128)
ERROR: apport (pid 1278) Wed Jan 14 12:48:05 2015: pid: 1278, uid: 1000, gid: 
1000, euid: 0, egid: 0
ERROR: apport (pid 1278) Wed Jan 14 12:48:05 2015: environment: environ({})





If the same code is manualy run, e.read() succeeds. 

In [4]: pid = "1543"

In [5]: with open('/proc/%s/environ' % pid) as e:
            env = e.read().split('\0')
...:     

In [6]: 


-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages apport depends on:
ii  gir1.2-glib-2.0  1.42.0-2.2
ii  lsb-base         4.1+Debian13+nmu1
ii  python3          3.4.2-2
ii  python3-apport   2.15.1-1
ii  python3-gi       3.14.0-1
pn  python:any       <none>

Versions of packages apport recommends:
ii  policykit-1  0.105-8

Versions of packages apport suggests:
ii  apport-gtk  2.15.1-1
ii  apport-kde  2.15.1-1

-- Configuration Files:
/etc/apport/crashdb.conf changed:
default = 'debian-debug'
databases = {
    'ubuntu': {
        'impl': 'launchpad',
        'bug_pattern_url': 
'http://people.canonical.com/~ubuntu-archive/bugpatterns/bugpatterns.xml',
        'dupdb_url': 
'http://people.canonical.com/~ubuntu-archive/apport-duplicates',
        'distro': 'ubuntu',
        'escalation_tag': 'bugpattern-needed',
        'escalated_tag': 'bugpattern-written',
    },
    'fedora': {
         # NOTE this will change Fall '07 when RHT switches to bugzilla 3.x!
        'impl': 'rhbugzilla',
        'bug_pattern_url': 'http://qa.fedoraproject.org/apport/bugpatterns.xml',
        'distro': 'fedora'
    },
    'debian': {
        'impl': 'debian',
        'distro': 'debian',
        'smtphost': 'reportbug.debian.org',
        'recipient': '[email protected]',
        'sender': ''
    },
    'debian-debug': {
        'impl': 'debian',
        'distro': 'debian',
        'smtphost': 'localhost',
        'recipient': '[email protected]',
        'sender': '[email protected]'
    },
    'debug': {
        # for debugging
        'impl': 'memory',
        'bug_pattern_url': '/tmp/bugpatterns.xml',
        'distro': 'debug'
    },
}

/etc/init.d/apport changed:
PATH=/sbin:/bin:/usr/sbin:/usr/bin
. /lib/lsb/init-functions
if [ -f /etc/default/apport ]; then
        . /etc/default/apport
fi
start() {
    [ "$enabled" = "1" ] || [ "$force_start" = "1" ] || exit 0
    mkdir -p -m 1777 /var/crash
    ulimit -c "unlimited"
    # check for kernel crash dump, convert it to apport report
    if [ -e /var/crash/vmcore ]
    then
    log_daemon_msg "Checking for kernel crash dumps"
        /usr/share/apport/kernel_crashdump || true
    log_end_msg 0
    fi
    log_daemon_msg "Enabling apport service"
    echo "|/usr/share/apport/apport %p %s %c" > /proc/sys/kernel/core_pattern
    log_end_msg 0
}
stop() {
    log_daemon_msg "Disabling apport service"
    if [ "`dd if=/proc/sys/kernel/core_pattern count=1 bs=1 2>/dev/null`" != 
"|" ]
    then
        exit 1
    else
        echo "core" > /proc/sys/kernel/core_pattern
    fi
    log_end_msg 0
}
restart() {
    stop
    start
}
status() {
    log_daemon_msg "Checking apport service"
    grep -qi "|/usr/share/apport/apport" /proc/sys/kernel/core_pattern && 
log_end_msg 0 || log_end_msg 1
}
case "$1" in
    start|stop|restart)
        $1
        ;;
    force-reload)
        restart
        ;;
    status)
        status
        ;;
    *)
        echo "Usage: $0 {start|stop|restart|force-reload|status}"
        exit 1;
        ;;
esac


-- debconf-show failed

--- End Message ---
--- Begin Message ---
Version: 2.20.4-5+rm

apport has been removed from Debian/experimental, it was never part of
unstable. See https://bugs.debian.org/924960 for details on the removal.
I'm therefore closing the remaining bugs.

Andreas

--- End Message ---

Reply via email to