ó ‰P[c@sddlZddlZddlZddlZddlZddlZddlZddlZddlZddl Z yddl m Z e Wn!e k r³ddl m Z nXddlZddlZddlZdejfd„ƒYZedkr ejƒndS(iÿÿÿÿN(tStringIOtTcBs—eZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z e d,d d d „ƒZe d „ƒZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d „Z"d!„Z#d"„Z$d#„Z%d$„Z&d%„Z'd&„Z(d'„Z)d(„Z*d)„Z+d*„Z,d+„Z-RS(-cCsZtjjdƒ}tjjƒ}|jdƒ|j|dd|jƒƒ|j|ddƒ|jd|dkƒtjjƒ}|j t |jƒd|d<|jƒ|j|dd|jƒƒ|j|ddƒ|jd|dkƒ|jd |dkƒ|jd |kƒtjjƒ}d |d<|jƒ|jd|kƒd S( sadd_package_info().tbashtPackagesbash t SourcePackagetlibct Dependenciess /bin/bashtExecutablePaths tPackageArchitectures /nonexistingN( tapportt packagingt get_versiontreporttReporttadd_package_infot assertEqualtstript assertTruet assertRaisestKeyError(tselft bashversiontpr((s*/usr/share/apport/testsuite/test_report.pyttest_add_package_infos&     cCsÉtjjƒ}|jƒ|j|djdƒƒ|jt|ddƒƒ|jt|dƒdƒ|j|dƒd|d<|d}|d=|jƒ|j |ddƒ|j |d|ƒdS( sadd_os_info().tUnametLinuxt DistroReleaset startswithit Architectures foonux 1.2N( R R R t add_os_infoRRthasattrt assertGreatertlenR(RRtdr((s*/usr/share/apport/testsuite/test_report.pyttest_add_os_info-s    cCs“tjjƒ}|jƒ|jd|kƒx7|djƒD]%}|jtj|ƒjdkƒq=W|jtj t j ƒƒj |dkƒdS(sadd_user_info().t UserGroupsièN( R R R t add_user_infoRtsplittgrptgetgrnamtgr_gidtgetgrgidtostgetgidtgr_name(RRtg((s*/usr/share/apport/testsuite/test_report.pyttest_add_user_info?s  #c Csítjjƒ}|j|jd ƒ|jƒ|j|jtjƒƒ|j t ddddgƒj t |j ƒƒƒdƒdtj kr°|j dtj d|dkƒn|jd|dkƒ|j d|dkƒ|j d|dkƒ|j d |d kƒ|jt|d ƒttjtƒjƒƒtjjƒ}|jd dgƒ|j d|dkƒdtj kr¥|j d tj d|dkƒnt}tjƒdkrÙtjdddƒt}ntjjƒ}|jt|jdƒ|rtjdddƒn|j|jdƒ|j d|dk|dƒ|j |djdƒ|dƒ|j d|kƒtjdddddgdtjdtjdtjƒ}|jsÇt‚xCtr td|jƒ$}|jƒröPnt j!dƒWd QXqÊWtjjƒ}|jd!|jƒ|j|j|jƒ|j"d"ƒ|j|dd#ƒ|j|d d$ƒ|j d|kƒ|j d$|dkƒ|j d%|dkƒtj#j$d&ƒsÙtd'ƒ‚tjd(gdtjƒ}|jst‚xCtrHtd|jƒ$}|jƒr2Pnt j!dƒWd QXqWtjjƒ}|j|_|jƒ|j"d)ƒ|jd|k|j%dƒƒ|j|d tj#j&d&ƒƒ|jt|d ƒttjtj#j&d&ƒƒjƒƒtjd*d+gdtjƒ}|jst‚xCtrdtd|jƒ$}|jƒrNPnt j!dƒWd QXq"Wtjjƒ}|jd!|jƒ|j"d"ƒ|j |d j'd,ƒƒt|d ƒ7}|j|dtj#j&|j(ƒj)ƒd-ƒƒWd QX|jt|d ƒttj|d ƒjƒƒ|j d%|dkƒt*j+ƒ\}}tj,|d.tj-d/d0ƒj.d1ƒƒtj/|ƒtj0|d2ƒtj|gdtjdtjƒ}|jsÉt‚xCtrtd|jƒ$}|jƒrøPnt j!dƒWd QXqÌWtjjƒ}|jd!|jƒ|j"d"ƒ|j|d |ƒ|jt|d ƒttj|ƒjƒƒtj1|ƒ|j d3|dkƒ|j d3|dkƒ|j d%|dkƒ|jt2|j|jƒd S(4sadd_proc_info().t ProcEnvirontProcMapst ProcCmdlinesreport has required fieldstLANGsLANG=tUSERtPWDs report.pyRtExecutableTimestamptextraenvsPWD=iiiÿÿÿÿitinitt ProcStatussError:tInterpreterPathtcats/foo bars\hs\ \t-tstdintstdouttstderrs/proc/%i/cmdlinegš™™™™™¹?Ntpids scat /foo\ bar \\h \\\ \\ -s/bin/cats[stack]s/bin/shs+/bin/sh needs to be a symlink for this testtshsexit tzgreptfoos bin/zgrepis.#!/usr/bin/%s import sys sys.stdin.readline() tPYTHONtpython3tasciiiítpython(3R R R RR?tNonet add_proc_infoR*tgetpidRtsettissubsettkeystenviront assertFalsetinttstatt__file__tst_mtimetFalsetgetuidt setresuidtTrueRtOSErrorRt subprocesstPopentPIPEtAssertionErrortopentreadttimetsleept communicatetpathtislinktgettrealpathtendswithtreadlineRttempfiletmkstemptwritetgetenvtencodetclosetchmodtunlinkt ValueError(RRt restore_roottptfdt testscript((s*/usr/share/apport/testsuite/test_report.pyttest_add_proc_infoKsÔ %%% !          %    )        cCsºd}tjdgdtjdidd6dd6|d 6ƒ}tjd ƒtjjƒ}|jd |j ƒ|j d ƒ|j ||d j dƒkƒ|j d|d k|d ƒdS(s$add_proc_info() for non-ASCII valuess nö_vølidR:R<tenvs Jürgen-RenétMYNAMEs/aïbtXDG_RUNTIME_DIRR2gš™™™™™¹?R?tR/sUTF-8sXDG_RUNTIME_DIR=N( RXRYRZR^R_R R R tadd_proc_environR?R`RRk(RtlangRqtr((s*/usr/share/apport/testsuite/test_report.pyttest_add_proc_info_nonasciiÑs     cCs%tjdgdtjdidd6ƒ}tjdƒtjjƒ}|jd|j ƒ|j dƒ|j |d d ƒ|j d |k|ƒtjdgdtjdidd6d d 6ƒ}tjdƒtjjƒ}|jd|j ƒ|j dƒ|j |d d ƒ|j |d d ƒdS(sadd_proc_info() CurrentDesktopR:R<Rus xx_YY.UTF-8R2gš™™™™™¹?R?RxR/sLANG=xx_YY.UTF-8tCurrentDesktops Pixel PushertXDG_CURRENT_DESKTOPN( RXRYRZR^R_R R R RHR?R`RRN(RRqR{((s*/usr/share/apport/testsuite/test_report.pyt"test_add_proc_info_current_desktopãs"      cCs~tjdgdtjdidd6ƒ}tjdƒtjjƒ}|jd|j ƒ|j dƒ|j d|d kd ƒtjdgdtjdid d6ƒ}tjdƒtjjƒ}|jd|j ƒ|j dƒ|j d |d kd ƒtjdgdtjdidd6ƒ}tjdƒtjjƒ}|jd|j ƒ|j dƒ|j d|d kdƒdS(sclassification of $PATH.R:R<RusG/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/gamestPATHgš™™™™™¹?R?RxR/s+system default $PATH should be filtered outs/usr/sbin:/usr/bin:/sbin:/binsPATH=(custom, no user)s%PATH is customized without user pathss)/home/pitti:/usr/sbin:/usr/bin:/sbin:/binsPATH=(custom, user)s"PATH is customized with user pathsN( RXRYRZR^R_R R R RyR?R`RNR(RRqR{((s*/usr/share/apport/testsuite/test_report.pyttest_add_path_classificationùs0      cCsåt}tjƒdkr4tjdddƒt}nztjƒ}tjj ƒ}d|d#!/bin/bash cd `dirname $0` ulimit -c unlimited kill -SEGV $$ Niíis /bin/bashR9RR¡slibc.soR¼sin execute_command(RgRhR*RaR­tdirnameR«R[RlR\RiRmRXRªR¬R R R R®RnRÄR(RRrtscripttcoredumpR((s*/usr/share/apport/testsuite/test_report.pyttest_add_gdb_info_scriptŸs(!        cCs>tjƒ\}}tjjdƒ s+t‚z¢tj|ƒt|dƒ}|jdƒWdQXtj |dƒt j |gƒdksŽt‚|j dƒt jjƒ}|d|d int main() { assert(1 < 0); } EOF ulimit -c unlimited $0.bin 2>/dev/null Niíis.binRR¡s*:2: main: Assertion `1 < 0' failed.RÅt$s= 0xs\ns#!/bin/sh gcc -O2 -D_FORTIFY_SOURCE=2 -o $0.bin -x c - < int main(int argc, char *argv[]) { char buf[8]; strcpy(buf, argv[1]); return 0; } EOF ulimit -c unlimited LIBC_FATAL_STDERR_=1 $0.bin aaaaaaaaaaaaaaaa 2>/dev/null s2** buffer overflow detected ***: %s.bin terminateds|#!/bin/sh gcc -o $0.bin -x c - < int main() { abort(); } EOF ulimit -c unlimited $0.bin 2>/dev/null (score(score(score(RgRhR*RaR«R[RlR\RiRmRXRªR¬R R R R®RnRÄRRNRReRc(RRrRÖR((s*/usr/share/apport/testsuite/test_report.pyttest_add_gdb_info_abortÁs‚       !!       !!      cCs!tjƒ\}}tjjdƒ s+t‚z•tj|ƒt|dƒ}|jdƒWdQXt j d|gƒdkst‚|j dƒt j jƒ}|d|d int main() { g_assert_cmpint(1, <, 0); } EOF ulimit -c unlimited $0.bin 2>/dev/null Ns/bin/shis.binRR¡RÅs/ERROR::2:main: assertion failed (1 < 0):(score(RgRhR*RaR«R[RlR\RiRXRªR¬R R R R®RnRÄRR(RRrRÖR((s*/usr/share/apport/testsuite/test_report.pyttest_add_gdb_info_abort_glib9s&  !    cCstjƒ\}}tjjdƒ s+t‚z•tj|ƒt|dƒ}|jdƒWdQXt j d|gƒdkst‚|j dƒt j jƒ}|d|d int main() { nih_assert (1 < 0); } EOF ulimit -c unlimited $0.bin 2>/dev/null Ns/bin/shis.binRR¡sAssertion failed in main: 1 < 0RÅ(score(RgRhR*RaR«R[RlR\RiRXRªR¬R R R R®RnRÄR(RRrRÖR((s*/usr/share/apport/testsuite/test_report.pyttest_add_gdb_info_abort_libnih[s&  !    c CsÑtjddƒ}|jdƒ|jƒtjddƒ}|jdƒ|jƒtjjƒ}d|d ^bash ba.*r ^bash 1-2$ write_(hello|goodbye) ^coreutils ^1$ ^coreutils * +[1^ ^bazaar$ AssertionError ^update-notifier AssertionError ‽ s! sbash 1-2RtbazaartFoos bazaar 2-1RR[tLogFiles coreutils 1RÐtBars invalid 1supdate-notifiersAssertionError ‽sfile://shttp://bugtracker.net/bugs/1t write_goodbyeshttp://bugtracker.net/bugs/2shttp://bugtracker.net/bugs/3shttp://bugtracker.net/bugs/5shttp://bugtracker.net/bugs/6sbash-static 1-2s bash 1-21s$does not match on wrong bash versiontzzs!does not match on wrong Foo values'does not match on wrong Foo UTF-8 valuesÿs(does not match on wrong Foo binary valueRšs!does not match on wrong Bar valuet launchpads&does not match on wrong source packageRxs!does not match on empty attributes!does not match on nonexisting keysgracefully handles invalid XMLsother 2sfile:///nonexisting/directory/s(gracefully handles nonexisting base pathshttp://security.ubuntu.com/s1gracefully handles base path without bug patternsshttp://nonexisting.domain/s)gracefully handles nonexisting URL domainN(RgRRiR¯R R R RŽRtsearch_bug_patternstcopytproblem_reporttCompressedValueRG( Rtpatternstinvalidtr_bashtr_bazaart r_coreutilst r_invalidt r_unicodet pattern_urltr_bash_compressedt r_bash_utf8((s*/usr/share/apport/testsuite/test_report.pyttest_search_bug_patterns}sœ                          cCsžtjj}tjƒtj_tjj}tjƒtj_zttjj tjjdƒdƒ}|j dƒWdQXttjj tjjdƒdƒ}|j dƒWdQXttjj tjjdƒdƒ}|j dƒWdQXttjj tjjd ƒdƒ}|j d ƒWdQXttjj tjjd ƒdƒ}|j d ƒWdQXtjj ƒ}d |d<|j |j dƒtƒ|j t|jƒƒtddddddgƒdƒtjj ƒ}d|d<|j |j dƒtƒ|j t|jƒƒtddddddgƒdƒtjj ƒ}d|d<|j |j dƒtƒ|j t|jƒƒtddddddddgƒdƒ|j |ddƒ|j |ddƒ|j |ddƒ|j |ddƒ|j |ddƒtjj ƒ}d|d<|j |j dƒtƒ|j t|jƒƒtddddddddgƒdƒ|j |ddƒ|j |ddƒ|j |ddƒ|j |ddƒd|d <|j |j dƒtƒtjj ƒ}d!|d<|j |j dƒtƒttjj tjjd"ƒdƒ}|j d#ƒWdQXtjj ƒ}d|d$RR\R*RaR­RiR RRÓRStgetvalueRÎRRNR§R¨(RRRt orig_stderrRrR{terr((s*/usr/share/apport/testsuite/test_report.pyttest_add_hooks_info_errorsªsP    ' '           c CsVtjjjj}tjƒ}tjj|dƒtjjj_zðttjj|dƒdƒ}|j dƒWdQXttjj|dƒdƒ}|j dƒWdQXtjj ƒ}tjj|dƒ|d 0RÅs)bash assert failure: foo.c:42 main: i > 0s/usr/share/apport/apport-gtksATraceback (most recent call last): File "/usr/share/apport/apport-gtk", line 202, in app.run_argv() File "/var/lib/python-support/python2.5/apport/ui.py", line 161, in run_argv self.run_crashes() File "/var/lib/python-support/python2.5/apport/ui.py", line 104, in run_crashes self.run_crash(f) File "/var/lib/python-support/python2.5/apport/ui.py", line 115, in run_crash response = self.ui_present_crash(desktop_entry) File "/usr/share/apport/apport-gtk", line 67, in ui_present_crash subprocess.call(['pgrep', '-x', NameError: global name 'subprocess' is not definedt Tracebacks`apport-gtk crashed with NameError in ui_present_crash(): global name 'subprocess' is not defineds|TypeError: Cannot create a consistent method resolution order (MRO) for bases GObject, CanvasGroupableIface, CanvasGroupablesOapport-gtk crashed with TypeError: Cannot create a consistent method resolutionskTraceback (most recent call last): File "/x/foo.py", line 242, in setup_chooser raise "Moo" Mo?o[a-1]s4apport-gtk crashed with Mo?o[a-1] in setup_chooser()sTraceback (most recent call last): File "/x/foo.py", line 242, in setup_chooser raise " Key: "+key+" isn't set. Restarting AWN usually solves this issue " Key: /apps/avant-window-navigator/app/active_png isn't set. Restarting AWN usually solves this issuesapport-gtk crashed withssetup_chooser()s/usr/bin/gnome-aboutsíTraceback (most recent call last): File "/usr/bin/gnome-about", line 30, in import pygtk File "/usr/lib/pymodules/python2.6/pygtk.py", line 28, in import nonexistent ImportError: No module named nonexistent sjgnome-about crashed with ImportError in /usr/lib/pymodules/python2.6/pygtk.py: No module named nonexistents /usr/bin/dcutsTraceback (most recent call last): File "/usr/bin/dcut", line 28, in import nonexistent ImportError: No module named nonexistent sFdcut crashed with ImportError in __main__: No module named nonexistentRRs&package bash failed to install/upgradet ErrorMessagesbotched not found s1package bash failed to install/upgrade: not foundtamd64RRti386s<bash crashed with SIGSEGV in foo() [non-native i386 package]tallt KernelOopss_------------[ cut here ]------------ kernel BUG at /tmp/oops.c:5! invalid opcode: 0000 [#1] SMPtOopsTextskernel BUG at /tmp/oops.c:5!N( R R R Rtstandard_titleRGRRRe(RR tt((s*/usr/share/apport/testsuite/test_report.pyttest_standard_title™s                                  cCs:tjjƒ}|j|jƒgƒd|d<|j|jƒdgƒd|d<|j|jƒdgƒdtjjdƒ|d<|j|jƒgƒd|d<|j|jƒdd gƒd tjjdƒ|d<|j|jƒd gƒd tjjdƒtjjd ƒf|d<|j|jƒgƒd S( sobsolete_packages().sbash 0RRsbash 0 [modified: /bin/bash]sbash scoreutils 0 cron 0 Rt coreutilstcrons+coreutils %s [modified: /bin/mount] cron 0 scoreutils %s cron %s N(R R R Rtobsolete_packagesR tget_available_version(RR ((s*/usr/share/apport/testsuite/test_report.pyttest_obsolete_packages:s"   cCs*tjjƒ}d|d<|jƒ|j|ddƒtjjƒ}d|d<|jƒ|j|ddƒtjjƒ}d|d<|jƒ|j|ddƒtjjƒ}d|d<|jƒ|j|ddƒtjjƒ}d |d<|jƒ|j|dd ƒtjjƒ}d |d<|jƒ|j|dd ƒtjjƒ}d |d<|jƒ|j|ddƒtjjƒ}d|d<|jƒ|j|ddƒtjjƒ}d|d<|jƒ|j|ddƒtjjƒ}d|d<|jƒ|j|ddƒdS(s_gen_stacktrace_top().s #0 0x10000488 in h (p=0x0) at crash.c:25 #1 0x100004c8 in g (x=1, y=42) at crash.c:26 #2 0x10000514 in f (x=1) at crash.c:27 #3 0x10000530 in e (x=1) at crash.c:28 #4 0x10000530 in d (x=1) at crash.c:29 #5 0x10000530 in c (x=1) at crash.c:30 #6 0x10000550 in main () at crash.c:31 R¼R¾suh (p=0x0) at crash.c:25 g (x=1, y=42) at crash.c:26 f (x=1) at crash.c:27 e (x=1) at crash.c:28 d (x=1) at crash.c:29s#0 h (p=0x0) at crash.c:25 #1 0x100004c8 in g (x=1, y=42) at crash.c:26 #2 f (x=1) at crash.c:27 #3 0x10000530 in e (x=1) at crash.c:28 #4 0x10000530 in d (x=1) at crash.c:29 #5 0x10000530 in c (x=1) at crash.c:30 #6 0x10000550 in main () at crash.c:31 s#0 0x10000488 in raise () from /lib/libpthread.so.0 #1 0x100004c8 in ?? #2 #3 0x10000530 in e (x=1) at crash.c:28 #4 0x10000530 in d (x=1) at crash.c:29 #5 0x10000530 in c (x=1) at crash.c:30 #6 0x10000550 in main () at crash.c:31 sWe (x=1) at crash.c:28 d (x=1) at crash.c:29 c (x=1) at crash.c:30 main () at crash.c:31sê#0 0x10000488 in raise () from /lib/libpthread.so.0 #1 ?? #2 #3 0x10000530 in e (x=1) at crash.c:28 #4 d (x=1) at crash.c:29 #5 0x10000530 in c (x=1) at crash.c:30 #6 0x10000550 in main () at crash.c:31 sW#0 0x10000488 in raise () from /lib/libpthread.so.0 #1 0x100004c8 in ?? #2 #3 0x10000530 in e (x=1) at crash.c:28 #4 0x10000530 in d (x=1) at crash.c:29 #5 0x10000123 in raise () from /lib/libpthread.so.0 #6 #7 0x10000530 in c (x=1) at crash.c:30 #8 0x10000550 in main () at crash.c:31 s|e (x=1) at crash.c:28 d (x=1) at crash.c:29 raise () from /lib/libpthread.so.0 c (x=1) at crash.c:30sT#0 0xb7d39cab in IA__g_logv (log_domain=, log_level=G_LOG_LEVEL_ERROR, format=0xb7d825f0 "file %s: line %d (%s): assertion failed: (%s)", args1=0xbfee8e3c "xxx") at /build/buildd/glib2.0-2.13.5/glib/gmessages.c:493 #1 0xb7d39f29 in IA__g_log (log_domain=0xb7edbfd0 "libgnomevfs", log_level=G_LOG_LEVEL_ERROR, format=0xb7d825f0 "file %s: line %d (%s): assertion failed: (%s)") at /build/buildd/glib2.0-2.13.5/glib/gmessages.c:517 #2 0xb7d39fa6 in IA__g_assert_warning (log_domain=0xb7edbfd0 "libgnomevfs", file=0xb7ee1a26 "gnome-vfs-volume.c", line=254, pretty_function=0xb7ee1920 "gnome_vfs_volume_unset_drive_private", expression=0xb7ee1a39 "volume->priv->drive == drive") at /build/buildd/glib2.0-2.13.5/glib/gmessages.c:552 No locals. #3 0xb7ec6c11 in gnome_vfs_volume_unset_drive_private (volume=0x8081a30, drive=0x8078f00) at gnome-vfs-volume.c:254 __PRETTY_FUNCTION__ = "gnome_vfs_volume_unset_drive_private" #4 0x08054db8 in _gnome_vfs_volume_monitor_disconnected (volume_monitor=0x8070400, drive=0x8078f00) at gnome-vfs-volume-monitor.c:963 vol_list = (GList *) 0x8096d30 current_vol = (GList *) 0x8097470 #5 0x0805951e in _hal_device_removed (hal_ctx=0x8074da8, udi=0x8093be4 "/org/freedesktop/Hal/devices/volume_uuid_92FC9DFBFC9DDA35") at gnome-vfs-hal-mounts.c:1316 backing_udi = #6 0xb7ef1ead in filter_func (connection=0x8075288, message=0x80768d8, user_data=0x8074da8) at libhal.c:820 udi = object_path = 0x8076d40 "/org/freedesktop/Hal/Manager" error = {name = 0x0, message = 0x0, dummy1 = 1, dummy2 = 0, dummy3 = 0, dummy4 = 1, dummy5 = 0, padding1 = 0xb7e50c00} #7 0xb7e071d2 in dbus_connection_dispatch (connection=0x8075288) at dbus-connection.c:4267 #8 0xb7e33dfd in ?? () from /usr/lib/libdbus-glib-1.so.2sïgnome_vfs_volume_unset_drive_private (volume=0x8081a30, drive=0x8078f00) at gnome-vfs-volume.c:254 _gnome_vfs_volume_monitor_disconnected (volume_monitor=0x8070400, drive=0x8078f00) at gnome-vfs-volume-monitor.c:963 _hal_device_removed (hal_ctx=0x8074da8, udi=0x8093be4 "/org/freedesktop/Hal/devices/volume_uuid_92FC9DFBFC9DDA35") filter_func (connection=0x8075288, message=0x80768d8, user_data=0x8074da8) at libhal.c:820 dbus_connection_dispatch (connection=0x8075288) at dbus-connection.c:4267sC#0 0x007cf416 in __kernel_vsyscall () No symbol table info available. #1 0x01017c8f in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #2 0x0101b2b5 in __GI_abort () at abort.c:92 #3 0x0807daab in meta_bug (format=0x80b0c60 "Unexpected X error: %s serial %ld error_code %d request_code %d minor_code %d) ") at core/util.c:398 #4 0x0806989c in x_error_handler (error=0xbf924acc, xdisplay=0x9104b88) at core/errors.c:247 #5 x_error_handler (xdisplay=0x9104b88, error=0xbf924acc) at core/errors.c:203 #6 0x00e97d3b in _XError (dpy=0x9104b88, rep=0x9131840) at ../../src/XlibInt.c:1583 #7 0x00e9490d in handle_error (dpy=0x9104b88, err=0x9131840, in_XReply=0) at ../../src/xcb_io.c:212 #8 0x00e94967 in handle_response (dpy=0x9104b88, response=0x9131840, in_XReply=0) at ../../src/xcb_io.c:324 #9 0x00e952fe in _XReadEvents (dpy=0x9104b88) at ../../src/xcb_io.c:425 #10 0x00e93663 in XWindowEvent (dpy=0x9104b88, w=16777220, mask=4194304, event=0xbf924c6c) at ../../src/WinEvent.c:79 #11 0x0806071c in meta_display_get_current_time_roundtrip (display=0x916d7d0) at core/display.c:1217 #12 0x08089f64 in meta_window_show (window=0x91ccfc8) at core/window.c:2165 #13 implement_showing (window=0x91ccfc8, showing=1) at core/window.c:1583 #14 0x080879cc in meta_window_flush_calc_showing (window=0x91ccfc8) at core/window.c:1806smeta_display_get_current_time_roundtrip (display=0x916d7d0) at core/display.c:1217 meta_window_show (window=0x91ccfc8) at core/window.c:2165 implement_showing (window=0x91ccfc8, showing=1) at core/window.c:1583 meta_window_flush_calc_showing (window=0x91ccfc8) at core/window.c:1806ss#0 g_logv (log_domain=0x7fd41db08a46 "Gdk", log_level=, format=0x7fd41db12e87 "%s", args1=0x7fff50bf0c18) at /build/buildd/glib2.0-2.29.16/./glib/gmessages.c:577 #1 0x00007fd42006bb92 in g_log (log_domain=, log_level=, format=) at /build/buildd/glib2.0-2.29.16/./glib/gmessages.c:591 #2 0x00007fd41dae86f3 in _gdk_x11_display_error_event (display=, error=) at /build/buildd/gtk+3.0-3.1.12/./gdk/x11/gdkdisplay-x11.c:2374 #3 0x00007fd41daf5647 in gdk_x_error (error=0x7fff50bf0dc0, xdisplay=) at /build/buildd/gtk+3.0-3.1.12/./gdk/x11/gdkmain-x11.c:312 #4 gdk_x_error (xdisplay=, error=0x7fff50bf0dc0) at /build/buildd/gtk+3.0-3.1.12/./gdk/x11/gdkmain-x11.c:275 #5 0x00007fd41d5a301f in _XError (dpy=0x2425370, rep=) at ../../src/XlibInt.c:1583 #6 0x00007fd41d59fdd1 in handle_error (dpy=0x2425370, err=0x7fd408707980, in_XReply=) at ../../src/xcb_io.c:212 #7 0x00007fd41d5a0d27 in _XReply (dpy=0x2425370, rep=0x7fff50bf0f60, extra=0, discard=0) at ../../src/xcb_io.c:698 #8 0x00007fd41d5852fb in XGetWindowProperty (dpy=0x2425370, w=0, property=348, offset=0, length=2, delete=, req_type=348, actual_type=0x7fff50bf1038, actual_format=0x7fff50bf105c, nitems=0x7fff50bf1040, bytesafter=0x7fff50bf1048, prop=0x7fff50bf1050) at ../../src/GetProp.c:61 #9 0x00007fd41938269e in window_is_xembed (w=, d=) at canberra-gtk-module.c:373 #10 dispatch_sound_event (d=0x32f6a30) at canberra-gtk-module.c:454 #11 dispatch_queue () at canberra-gtk-module.c:815sÎXGetWindowProperty (dpy=0x2425370, w=0, property=348, offset=0, length=2, delete=, req_type=348, actual_type=0x7fff50bf1038, actual_format=0x7fff50bf105c, nitems=0x7fff50bf1040, bytesafter=0x7fff50bf1048, prop=0x7fff50bf1050) at ../../src/GetProp.c:61 window_is_xembed (w=, d=) at canberra-gtk-module.c:373 dispatch_sound_event (d=0x32f6a30) at canberra-gtk-module.c:454 dispatch_queue () at canberra-gtk-module.c:815sî#0 0x00987416 in __kernel_vsyscall () No symbol table info available. #1 0x00ebecb1 in *__GI_raise (sig=6) selftid = 945 #2 0x00ec218e in *__GI_abort () at abort.c:59 save_stage = Unhandled dwarf expression opcode 0x9f Rxsª#0 0x00987416 in __kernel_vsyscall () #1 __strchr_sse42 () at strchr.S:97 #2 h (p=0x0) at crash.c:25 #3 0x100004c8 in g (x=1, y=42) at crash.c:26 #4 0x10000999 in __memmove_ssse3 () #5 f (x=1) at crash.c:27 #6 0x10000530 in e (x=1) at crash.c:28 #7 0x10000999 in __strlen_sse2_back () at strchr.S:42 #8 0x10000530 in d (x=1) at crash.c:29 #9 0x10000530 in c (x=1) at crash.c:30 #10 0x10000550 in main () at crash.c:31 N(R R R t_gen_stacktrace_topR(RR{((s*/usr/share/apport/testsuite/test_report.pyttest_gen_stacktrace_topTsb                             cCs£tjjƒ}|j|jƒdƒd|d __frob::~frob (x=1) at crash.c:30R¾sE/bin/crash:42:foo_bar:d01:raise::__frob::~frobstfoo_bar (x=1) at crash.c:28 ?? raise () from /lib/libpthread.so.0 __frob (x=1) at crash.c:30RxsûTraceback (most recent call last): File "test.py", line 7, in print(_f(5)) File "test.py", line 5, in _f return g_foo00(x+1) File "test.py", line 2, in g_foo00 return x/0 ZeroDivisionError: integer division or modulo by zeroR1s1/bin/crash:ZeroDivisionError:test.py@7:_f:g_foo00s7TypeError: function takes exactly 0 arguments (1 given)s/bin/crash:TypeErrortFooBart KernelCrashRös· crash 4.0-8.9 GNU gdb 6.1 GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"... KERNEL: /usr/lib/debug/boot/vmlinux-2.6.31-2-generic DUMPFILE: /tmp/tmpRJZy_O CPUS: 1 DATE: Thu Jul 9 12:58:08 2009 UPTIME: 00:00:57 LOAD AVERAGE: 0.15, 0.05, 0.02 TASKS: 173 NODENAME: egon-desktop RELEASE: 2.6.31-2-generic VERSION: #16-Ubuntu SMP Mon Jul 6 20:38:51 UTC 2009 MACHINE: i686 (2137 Mhz) MEMORY: 2 GB PANIC: "[ 57.879776] Oops: 0002 [#1] SMP " (check log for details) PID: 0 COMMAND: "swapper" TASK: c073c180 [THREAD_INFO: c0784000] CPU: 0 STATE: TASK_RUNNING (PANIC) PID: 0 TASK: c073c180 CPU: 0 COMMAND: "swapper" #0 [c0785ba0] sysrq_handle_crash at c03917a3 [RA: c03919c6 SP: c0785ba0 FP: c0785ba0 SIZE: 4] c0785ba0: c03919c6 #1 [c0785ba0] __handle_sysrq at c03919c4 [RA: c0391a91 SP: c0785ba4 FP: c0785bc8 SIZE: 40] c0785ba4: c06d4bab c06d42d2 f6534000 00000004 c0785bb4: 00000086 0000002e 00000001 f6534000 c0785bc4: c0785bcc c0391a91 #2 [c0785bc8] handle_sysrq at c0391a8c [RA: c0389961 SP: c0785bcc FP: c0785bd0 SIZE: 8] c0785bcc: c0785c0c c0389961 #3 [c0785bd0] kbd_keycode at c038995c [RA: c0389b8b SP: c0785bd4 FP: c0785c10 SIZE: 64] c0785bd4: c056f96a c0785be4 00000096 c07578c0 c0785be4: 00000001 f6ac6e00 f6ac6e00 00000001 c0785bf4: 00000000 00000000 0000002e 0000002e c0785c04: 00000001 f70d6850 c0785c1c c0389b8b #4 [c0785c10] kbd_event at c0389b86 [RA: c043140c SP: c0785c14 FP: c0785c20 SIZE: 16] c0785c14: c0758040 f6910900 c0785c3c c043140c #5 [c0785c20] input_pass_event at c0431409 [RA: c04332ce SP: c0785c24 FP: c0785c40 SIZE: 32] c0785c24: 00000001 0000002e 00000001 f70d6000 c0785c34: 00000001 0000002e c0785c64 c04332ce #6 [c0785c40] input_handle_event at c04332c9 [RA: c0433ac6 SP: c0785c44 FP: c0785c68 SIZE: 40] c0785c44: 00000001 ffff138d 0000003d 00000001 c0785c54: f70d6000 00000001 f70d6000 0000002e c0785c64: c0785c84 c0433ac6 #7 [c0785c68] input_event at c0433ac1 [RA: c0479806 SP: c0785c6c FP: c0785c88 SIZE: 32] c0785c6c: 00000001 00000092 f70d677c f70d70b4 c0785c7c: 0000002e f70d7000 c0785ca8 c0479806 #8 [c0785c88] hidinput_hid_event at c0479801 [RA: c0475b31 SP: c0785c8c FP: c0785cac SIZE: 36] c0785c8c: 00000001 00000007 c0785c00 f70d6000 c0785c9c: f70d70b4 f70d5000 f70d7000 c0785cc4 c0785cac: c0475b31 [RA: 0 SP: c0785ffc FP: c0785ffc SIZE: 0] PID PPID CPU TASK ST %MEM VSZ RSS COMM > 0 0 0 c073c180 RU 0.0 0 0 [swapper] 1 0 1 f7038000 IN 0.1 3096 1960 init 2 0 0 f7038c90 IN 0.0 0 0 [kthreadd] 271 2 1 f72bf110 IN 0.0 0 0 [bluetooth] 325 2 1 f71c25b0 IN 0.0 0 0 [khungtaskd] 1404 2 0 f6b5bed0 IN 0.0 0 0 [kpsmoused] 1504 2 1 f649cb60 IN 0.0 0 0 [hd-audio0] 2055 1 0 f6a18000 IN 0.0 1824 536 getty 2056 1 0 f6a1d7f0 IN 0.0 1824 536 getty 2061 1 0 f6a1f110 IN 0.1 3132 1604 login 2062 1 1 f6a18c90 IN 0.0 1824 540 getty 2063 1 1 f6b58c90 IN 0.0 1824 540 getty 2130 1 0 f6b5f110 IN 0.0 2200 1032 acpid 2169 1 0 f69ebed0 IN 0.0 2040 664 syslogd 2192 1 1 f65b3ed0 IN 0.0 1976 532 dd 2194 1 1 f6b5a5b0 IN 0.1 3996 2712 klogd 2217 1 0 f6b74b60 IN 0.1 3008 1120 dbus-daemon 2248 1 0 f65b7110 IN 0.2 6896 4304 hald 2251 1 1 f65b3240 IN 0.1 19688 2604 console-kit-dae RUNQUEUES[0]: c6002320 RT PRIO_ARRAY: c60023c0 CFS RB_ROOT: c600237c PID: 9 TASK: f703f110 CPU: 0 COMMAND: "events/0" R¼sŽkernel:sysrq_handle_crash:__handle_sysrq:handle_sysrq:kbd_keycode:kbd_event:input_pass_event:input_handle_event:input_event:hidinput_hid_eventR0s /bin/bashsfoo.c:42 main: i > 0RÅs/bin/bash:foo.c:42 main: i > 0R6si BUG: unable to handle kernel paging request at ffffb4ff IP: [] ext4_get_acl+0x80/0x210 *pde = 01874067 *pte = 00000000 Oops: 0000 [#1] SMP Modules linked in: bnep rfcomm bluetooth dm_crypt olpc_xo1 scx200_acb snd_cs5535audio snd_ac97_codec ac97_bus snd_pcm snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device snd cs5535_gpio soundcore snd_page_alloc binfmt_misc geode_aes cs5535_mfd geode_rng msr vesafb usbhid hid 8139too pata_cs5536 8139cp Pid: 1798, comm: gnome-session-c Not tainted 3.0.0-11-generic #17-Ubuntu First International Computer, Inc. ION603/ION603 EIP: 0060:[] EFLAGS: 00010286 CPU: 0 EIP is at ext4_get_acl+0x80/0x210 EAX: f5d3009c EBX: f5d30088 ECX: 00000000 EDX: f5d301d8 ESI: ffffb4ff EDI: 00008000 EBP: f29b3dc8 ESP: f29b3da4 DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 Process gnome-session-c (pid: 1798, ti=f29b2000 task=f2bd72c0 task.ti=f29b2000) Stack: f29b3db0 c113bb90 f5d301d8 f29b3de4 c11b9016 f5d3009c f5d30088 f5d30088 00000001 f29b3ddc c11e4cca 00000001 f5d30088 000081ed f29b3df0 c11313b7 00000021 00000021 f5d30088 f29b3e08 c1131b45 c11e4c80 f5d30088 00000021 Call Trace: [] ? d_splice_alias+0x40/0x50 [] ? ext4_lookup.part.30+0x56/0x120 [] ext4_check_acl+0x4a/0x90 [] acl_permission_check+0x97/0xa0 [] generic_permission+0x25/0xc0 [] ? ext4_xattr_set_acl+0x160/0x160 [] inode_permission+0x99/0xd0 [] ? ext4_xattr_set_acl+0x160/0x160 [] may_open+0x6b/0x110 [] do_last+0x1a6/0x640 [] path_openat+0x9d/0x350 [] ? unlock_page+0x42/0x50 [] ? __do_fault+0x3b0/0x4b0 [] do_filp_open+0x31/0x80 [] ? aa_dup_task_context+0x33/0x60 [] ? apparmor_cred_prepare+0x2d/0x50 [] open_exec+0x2f/0x110 [] ? check_unsafe_exec+0xb7/0xf0 [] do_execve_common+0x8a/0x270 [] do_execve+0x17/0x20 [] sys_execve+0x37/0x70 [] ptregs_execve+0x12/0x18 [] ? syscall_call+0x7/0xb Code: 8d 76 00 8d 93 54 01 00 00 8b 32 85 f6 74 e2 8d 43 14 89 55 e4 89 45 f0 e8 2e 7e 34 00 8b 55 e4 8b 32 83 fe ff 74 07 85 f6 74 03 <3e> ff 06 8b 45 f0 e8 25 19 e4 ff 90 83 fe ff 75 b5 81 ff 00 40 EIP: [] ext4_get_acl+0x80/0x210 SS:ESP 0068:f29b3da4 CR2: 00000000ffffb4ff ---[ end trace b567e6a3070ffb42 ]--- R7sekernel paging request:ext4_get_acl+0x80/0x210:ext4_check_acl+0x4a/0x90:acl_permission_check+0x97/0xa0:generic_permission+0x25/0xc0:inode_permission+0x99/0xd0:may_open+0x6b/0x110:do_last+0x1a6/0x640:path_openat+0x9d/0x350:do_filp_open+0x31/0x80:open_exec+0x2f/0x110:do_execve_common+0x8a/0x270:do_execve+0x17/0x20:sys_execve+0x37/0x70:ptregs_execve+0x12/0x18N(R R R Rtcrash_signatureRG(RR{R ((s*/usr/share/apport/testsuite/test_report.pyttest_crash_signatures8         ]    / csòtjƒ‰ˆddjdƒˆdˆdˆdf‰tj}‡fd†t_zŒtjjƒ}dˆd jdƒd }|jdƒ|d <||d <|jƒd }|j|d |jdƒƒ|j|d |ƒWd|t_XdS(s%methods get along with non-ASCII dataist♪xsUTF-8iiicsˆS(N(((tuname(s*/usr/share/apport/testsuite/test_report.pytéssä is ♥ tProcUnicodeValuetProcByteArrayValuesä hostname ♥ N( R*RFtdecodeR R R Rkt anonymizeR(Rt orig_unameRtutf8_valtexp_utf8((RFs*/usr/share/apport/testsuite/test_report.pyttest_nonascii_dataâs .   cCstjjƒ}|jt|jdƒd|d<|j|jdƒdƒ|j|jdƒdƒ|j|jdƒdƒ|j|jd ƒd ƒ|j|jd ƒd ƒ|j|jd ƒdƒ|j|jdƒdƒ|j|jdƒdƒ|j|jdƒdƒdS(s_address_to_offset()isU 00400000-004df000 r-xp 00000000 08:02 1044485 /bin/bash 006de000-006df000 r--p 000de000 08:02 1044485 /bin/bash 01596000-01597000 rw-p 00000000 00:00 0 01597000-015a4000 rw-p 00000000 00:00 0 [heap] 7f491f868000-7f491f88a000 r-xp 00000000 08:02 526219 /lib/x86_64-linux-gnu/libtinfo.so.5.9 7f491fa8f000-7f491fc24000 r-xp 00000000 08:02 522605 /lib/x86_64-linux-gnu/libc-2.13.so 7f491fc24000-7f491fe23000 ---p 00195000 08:02 522605 /lib/with spaces !/libfoo.so 7fff6e57b000-7fff6e59c000 rw-p 00000000 00:00 0 [stack] 7fff6e5ff000-7fff6e600000 r-xp 00000000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] R0i×As/bin/bash+1d703I‡V¬Is(/lib/x86_64-linux-gnu/libc-2.13.so+36687iÿßmiàms /bin/bash+0iðms/bin/bash+1000iðmiI@ÂIs/lib/with spaces !/libfoo.so+10N(R R R RR[t_address_to_offsetRRG(RR((s*/usr/share/apport/testsuite/test_report.pyttest_address_to_offsetùs cCsOtjjƒ}d|d<|j|jdƒdƒ|j|jdƒdƒdS(s+_address_to_offset() for ARM /proc/pid/mapssë 00008000-0000e000 r-xp 00000000 08:01 13243326 /usr/lib/dconf/dconf-service 00017000-00038000 rw-p 00000000 00:00 0 [heap] 40017000-4001d000 rw-p 00000000 00:00 0 40026000-400f2000 r-xp 00000000 08:01 13110792 /usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0.3400.0 400f2000-400f9000 ---p 000cc000 08:01 13110792 /usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0.3400.0 4020d000-4020f000 rw-p 00000000 00:00 0 4020f000-402e5000 r-xp 00000000 08:01 13108294 /lib/arm-linux-gnueabihf/libc-2.15.so 402e5000-402ed000 ---p 000d6000 08:01 13108294 /lib/arm-linux-gnueabihf/libc-2.15.so 40d21000-40e00000 ---p 00000000 00:00 0 befdf000-bf000000 rw-p 00000000 00:00 0 [stack] ffff0000-ffff1000 r-xp 00000000 00:00 0 [vectors] R0iæa"@s+/lib/arm-linux-gnueabihf/libc-2.15.so+171e6i`@s6/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0.3400.0+1fN(R R R RRP(RR((s*/usr/share/apport/testsuite/test_report.pyttest_address_to_offset_arms  cCs©tjjƒ}|jƒ|j|jdƒd ƒ|jt|djddƒddƒdƒ}|j|jddƒddƒ|j d |jddƒdkƒd S( s/_address_to_offset() for current /proc/pid/mapsiR0R;iiit+t5RFN( R R R RHRRPRGROR%R(RRtres((s*/usr/share/apport/testsuite/test_report.pyttest_address_to_offset_live1s  0 cCstjjƒ}|j|jƒdƒd|ds&x    ÿÿÿÿÿÿÿÿÌ