Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 287506 - media-video/motion-3.2.11 segfaults in media-libs/jpeg-7
Summary: media-video/motion-3.2.11 segfaults in media-libs/jpeg-7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-03 14:55 UTC by Markus
Modified: 2009-10-09 09:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,4.38 KB, text/plain)
2009-10-03 14:56 UTC, Markus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus 2009-10-03 14:55:43 UTC
I updated media-libs/jpeg, ran the revdep-rebuild command and deleted the preserved lib. Then I reran a plain revdep-rebuild to check if nothing is broken: Everything was fine.
But motion still segfaults. I then rebuilt both packages but nothing changed. So I rebuilt the lib with debug infos (because it segfaults in the library) and attached gdb (It segfaults when it tries to save a snapshot.)

So I came to:
0x00007fc492d00181 in nanosleep () from /lib/libpthread.so.0
(gdb) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fc48ece3950 (LWP 335)]
jpeg_fdct_16x16 (data=0x7fc48ecdf200, sample_data=0x7fc48ecdf790, start_col=<value optimized out>) at jfdctint.c:2188
2188        tmp0 = GETJSAMPLE(elemptr[0]) + GETJSAMPLE(elemptr[15]);
(gdb) print ctr
$1 = <value optimized out>


Unfortunatelly I am not very used to debug. So any further hints are appreciated.
Comment 1 Markus 2009-10-03 14:56:25 UTC
Created attachment 205922 [details]
emerge --info
Comment 2 Markus 2009-10-03 15:10:34 UTC
A bit more from gdb:

(gdb) print elemptr
$2 = (JSAMPROW) 0x0
(gdb) bt
#0  jpeg_fdct_16x16 (data=0x7fc48ecdf200, sample_data=0x7fc48ecdf790, start_col=<value optimized out>) at jfdctint.c:2188
#1  0x00007fc492ac330e in forward_DCT (cinfo=<value optimized out>, compptr=0x1b626c8, sample_data=0x7fc48ecdf790, coef_blocks=<value optimized out>, start_row=<value optimized out>,
    start_col=0, num_blocks=1) at jcdctmgr.c:82
#2  0x00007fc492ac29de in compress_data (cinfo=0x7fc48ecdf420, input_buf=0x7fc48ecdf890) at jccoefct.c:180
#3  0x00007fc492ac07c6 in jpeg_write_raw_data (cinfo=0x7fc48ecdf420, data=0x7fc48ecdf890, num_lines=16) at jcapistd.c:153
#4  0x000000000041ac12 in ?? ()
#5  0x000000000041b04a in ?? ()
#6  0x000000000041b2b4 in ?? ()
#7  0x0000000000419f33 in ?? ()
#8  0x000000000041920d in ?? ()
#9  0x000000000040583d in ?? ()
#10 0x000000000040708e in ?? ()
#11 0x00007fc492cf9007 in start_thread () from /lib/libpthread.so.0
#12 0x00007fc49129448d in clone () from /lib/libc.so.6
#13 0x0000000000000000 in ?? ()

And it worked with media-libs/jpeg-6b-r8.
Comment 3 Markus 2009-10-03 15:48:53 UTC
Upstream has a new bug-fix-release.
http://www.lavrsen.dk/foswiki/bin/view/Motion/ReleaseNoteMotion3x2x11x1
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2009-10-09 09:40:35 UTC
+*motion-3.2.11.1 (09 Oct 2009)
+
+  09 Oct 2009; Samuli Suominen <ssuominen@gentoo.org>
+  +motion-3.2.11.1.ebuild:
+  Version bump wrt #287506, thanks to Markus for reporting.