After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 672678 - tracker-extract always crashes.
tracker-extract always crashes.
Status: RESOLVED DUPLICATE of bug 660965
Product: tracker
Classification: Core
Component: Extractor
0.14.x
Other Linux
: Normal critical
: ---
Assigned To: tracker-extractor
Jamie McCracken
Depends on:
Blocks:
 
 
Reported: 2012-03-23 10:40 UTC by sangu
Modified: 2012-04-30 17:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Whenever doing /usr/libexec/tracker-extract -v 3 -f test.png, crashes (26.95 KB, image/png)
2012-04-20 01:19 UTC, sangu
Details

Description sangu 2012-03-23 10:40:34 UTC
tracker-extract always crashes.

Program terminated with signal 11, Segmentation fault.
  • #0 malloc_consolidate
    from /lib64/libc.so.6
  • #0 malloc_consolidate
    from /lib64/libc.so.6
  • #1 _int_malloc
    from /lib64/libc.so.6
  • #2 _int_realloc
    from /lib64/libc.so.6
  • #3 realloc
    from /lib64/libc.so.6
  • #4 g_realloc
    at gmem.c line 224
  • #5 g_string_maybe_expand
    at gstring.c line 102
  • #6 g_string_insert_len
    at gstring.c line 444
  • #7 g_string_insert_len
    at gstring.c line 392
  • #8 tracker_sparql_builder_predicate
    at /home/martyn/Source/tracker/src/libtracker-sparql/tracker-builder.vala line 454
  • #9 tracker_extract_get_metadata
    at tracker-extract-png.c line 903
  • #10 get_file_metadata
    at tracker-extract.c line 375
  • #11 get_metadata
    at tracker-extract.c line 588
  • #12 dispatch_task_cb
    at tracker-extract.c line 721
  • #13 g_main_dispatch
    at gmain.c line 2515
  • #14 g_main_context_dispatch
    at gmain.c line 3052
  • #15 g_main_context_iterate
    at gmain.c line 3123
  • #16 g_main_loop_run
    at gmain.c line 3317
  • #17 main
    at tracker-main.c line 451

tracker-0.14.0-1.fc17.x86_64
glibc-2.15-28.fc17.x86_64
Comment 1 Martyn Russell 2012-03-28 15:35:08 UTC
(In reply to comment #0)
> tracker-extract always crashes.
> 
> Program terminated with signal 11, Segmentation fault.
> 

Hello Sangu, if you can reproduce this every time, are you able to attach the file that causes this?

It looks like tracker-extract is extracting a PNG here and you should be able to reproduce using:

  /usr/lib/tracker/tracker-extract -v 3 -f $file

If you need to figure what the file is called, you can set the config to log verbosely using:

  tracker-control --set-log-verbosity=debug

the log should be in ~/.local/share/tracker/tracker-extract.log - or running tracker-extract as above with -d should allow you to start it BEFORE you start the miner-fs so you can watch requests coming in.

Let me know if you need more information here.
Comment 2 sangu 2012-04-20 01:19:30 UTC
Created attachment 212399 [details]
Whenever doing /usr/libexec/tracker-extract -v 3 -f test.png,  crashes

(gdb) r - v 3 -f test.png
Starting program: /usr/libexec/tracker-extract - v 3 -f test.png

Extracting...
  Using /usr/lib64/tracker-0.14/extract-modules/libextract-png.so...
Calling png_get_text() returned 0 (< 1)

Program received signal SIGSEGV, Segmentation fault.
malloc_consolidate (av=av@entry=0x7ffff53fe760) at malloc.c:4258
4258		  nextsize = chunksize(nextchunk);


(gdb) bt
  • #0 malloc_consolidate
    at malloc.c line 4258
  • #1 _int_free
    at malloc.c line 4164
  • #2 inflateEnd
    from /lib64/libz.so.1
  • #3 png_read_destroy
    at pngread.c line 1070
  • #4 png_destroy_read_struct
    at pngread.c line 971
  • #5 tracker_extract_get_metadata
    at tracker-extract-png.c line 909
  • #6 get_file_metadata
    at tracker-extract.c line 375
  • #7 tracker_extract_get_metadata_by_cmdline
    at tracker-extract.c line 865
  • #8 run_standalone
    at tracker-main.c line 304
  • #9 main
    at tracker-main.c line 392

test.png is from gnome-color-manager git trunk ( http://git.gnome.org/browse/gnome-color-manager/plain/data/tests/test.png )
Comment 3 Martyn Russell 2012-04-30 15:01:19 UTC
Hello Sangu,

What version of libpng are you using?

I am unable to reproduce this bug with libpng3 version 1.2.46-3ubuntu4 (on Pangolin).
Comment 4 Martyn Russell 2012-04-30 15:30:58 UTC

*** This bug has been marked as a duplicate of bug 660965 ***
Comment 5 sangu 2012-04-30 17:09:14 UTC
(In reply to comment #3)
> Hello Sangu,
> 
> What version of libpng are you using?

$ rpm -q libpng
libpng-1.5.10-1.fc17.x86_64

> I am unable to reproduce this bug with libpng3 version 1.2.46-3ubuntu4 (on
> Pangolin).