Bug#690171:

2015-04-01 Thread Ine Ya
I have met a similar crash too:
motion[4059]: segfault at b444513f ip b769ee8a sp b5440b40 error 4 in
libjpeg.so.8.4.0[b7682000+38000]

I think that in my case the problem was that width and height in config did
not match resolution supported by my camera.

I had 800x608 in config, which worked until I started to pause/resume
detection or disconnect/reconnect my camera while motion was running. My
suspicion was that motion mmaps buffer for picture according to camera
supported resolution, but passes that buffer with config resolution to
libjpeg. E.g. allocates 800x600, and then passes it to libjpeg with 800x608.

I re-compiled motion with -g3 and -O0 and captured a core when this
happened:
(gdb) bt

#0  jpeg_fdct_ifast (data=data@entry=0xb5d36b90,
sample_data=sample_data@entry=0xb5d36fa8,

start_col=start_col@entry=0) at jfdctfst.c:132

#1  0xb7f7e92c in forward_DCT (cinfo=cinfo@entry=0xb5d36df0,
compptr=compptr@entry=0x80c16bc,
sample_data=0xb5d36fa8, coef_blocks=0x80c224c, start_row=start_row@entry=0,
start_col=start_col@entry=0,
num_blocks=num_blocks@entry=1) at jcdctmgr.c:82

#2  0xb7f7dd6c in compress_data (cinfo=0xb5d36df0, input_buf=0xb5d36f9c) at
jccoefct.c:181
#3  0xb7f7bc07 in jpeg_write_raw_data (cinfo=0xb5d36df0, data=0xb5d36f9c,
num_lines=16) at jcapistd.c:153

#4  0x080674f0 in put_jpeg_yuv420p_file (fp=0x80c1440,


image=0xb4c8b008
\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200...,
width=800, height=600, quality=85) at picture.c:264
#5  0x08067d7c in put_picture_fd (cnt=0x80ba7d8, picture=0x80c1440,
image=0xb4c8b008
\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200...,
quality=85) at picture.c:517
#6  0x08067eb7 in put_picture (cnt=0x80ba7d8, file=0xb5d3a11c
/motion/01-20150326165903-snapshot.jpg,
image=0xb4c8b008
\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200...,
ftype=2) at picture.c:550
---Type return to continue, or q return to quit---
#7  0x08066028 in event_image_snapshot (cnt=0x80ba7d8, type=1024,
img=0xb4c8b008

Bug#569683: linux-image-2.6.26-2-686: /proc/pid/maps is empty for all processes

2010-02-13 Thread Ine Ya
Package: linux-2.6
Version: 2.6.26-21
Severity: normal
Tags: patch

/proc/pid/maps is empty for all processes, only /proc/self/maps works.

The following patch helped me to fix the problem:
--- linux-2.6-2.6.26/fs/proc/base.c 2008-07-13 16:51:29.0 -0500
+++ linux/fs/proc/base.c2009-12-26 02:14:58.0 -0600
@@ -251,7 +251,8 @@
task_lock(task);
if (task-mm != mm)
goto out;
-   if (task-mm != current-mm  __ptrace_may_attach(task)  0)
+   if (task-mm != current-mm  ((mm-flags  MMF_IN_EXEC) ||
+   __ptrace_may_attach(task)  0))
goto out;
task_unlock(task);
return mm;

I'm writing this report from modified kernel, which contains this
patch, and I test like 'cat /proc/1/maps' works now.

-- Package-specific info:
** Kernel log: boot messages should be attached


-- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26cust1
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages linux-image-2.6.26-2-686 depends on:
ii  debconf [debconf-2.0] 1.5.24 Debian configuration management sy
ii  initramfs-tools [linux-initra 0.92o  tools for generating an initramfs
ii  module-init-tools 3.4-1  tools for managing Linux kernel mo

Versions of packages linux-image-2.6.26-2-686 recommends:
ii  libc6-i686  2.7-18lenny2 GNU C Library: Shared libraries [i

Versions of packages linux-image-2.6.26-2-686 suggests:
ii  grub   0.97-47lenny2 GRand Unified Bootloader (Legacy v
pn  linux-doc-2.6.26   none(no description available)

Versions of packages linux-image-2.6.26-2-686 is related to:
pn  firmware-bnx2 none (no description available)
pn  firmware-bnx2xnone (no description available)
pn  firmware-ipw2x00  none (no description available)
pn  firmware-ivtv none (no description available)
pn  firmware-iwlwifi  none (no description available)
pn  firmware-linuxnone (no description available)
pn  firmware-linux-nonfreenone (no description available)
pn  firmware-qlogic   none (no description available)
pn  firmware-ralink   none (no description available)

-- debconf information:
  linux-image-2.6.26-2-686/postinst/bootloader-error-2.6.26-2-686:
  shared/kernel-image/really-run-bootloader: true
  linux-image-2.6.26-2-686/postinst/old-dir-initrd-link-2.6.26-2-686: true
  linux-image-2.6.26-2-686/preinst/initrd-2.6.26-2-686:
  linux-image-2.6.26-2-686/preinst/overwriting-modules-2.6.26-2-686: true
  linux-image-2.6.26-2-686/postinst/bootloader-test-error-2.6.26-2-686:
  linux-image-2.6.26-2-686/preinst/lilo-has-ramdisk:
  linux-image-2.6.26-2-686/postinst/depmod-error-2.6.26-2-686: false
  linux-image-2.6.26-2-686/prerm/would-invalidate-boot-loader-2.6.26-2-686: true
  linux-image-2.6.26-2-686/postinst/kimage-is-a-directory:
  linux-image-2.6.26-2-686/postinst/old-initrd-link-2.6.26-2-686: true
  linux-image-2.6.26-2-686/preinst/bootloader-initrd-2.6.26-2-686: true
  linux-image-2.6.26-2-686/preinst/abort-overwrite-2.6.26-2-686:
  linux-image-2.6.26-2-686/preinst/abort-install-2.6.26-2-686:
  linux-image-2.6.26-2-686/preinst/elilo-initrd-2.6.26-2-686: true
  linux-image-2.6.26-2-686/postinst/depmod-error-initrd-2.6.26-2-686: false
  linux-image-2.6.26-2-686/postinst/create-kimage-link-2.6.26-2-686: true
  linux-image-2.6.26-2-686/preinst/lilo-initrd-2.6.26-2-686: true
  linux-image-2.6.26-2-686/prerm/removing-running-kernel-2.6.26-2-686: true
  linux-image-2.6.26-2-686/preinst/failed-to-move-modules-2.6.26-2-686:
  linux-image-2.6.26-2-686/postinst/old-system-map-link-2.6.26-2-686: true



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org