[poppler] unit test for GLib bindings

Carlos Garcia Campos carlosgc at gnome.org
Sat Jun 6 07:42:12 PDT 2009


Hey kou, 

I've just pulled again from you repo and it still crashes with
attachments:

$ CUTTER_DEBUG=yes glib/test/run-test.sh
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) r
Starting program: /home/carlos/gnome-cvs/bin/cutter --keep-opening-modules --verbose=verbose -s glib/test --exclude-directory lib --exclude-directory fixtures glib/test
[Thread debugging using libthread_db enabled]
[New Thread 0xb7c8d6c0 (LWP 10641)]
test-layer:
  test_nested:						.: (0.016063)
  test_title:						.: (0.018539)
  test_visible:						.: (0.001037)
test-form-field:
  test_multi_line_text:					.: (0.003734)
  test_combo_choice:					.: (0.003480)
  test_list_choice:					.: (0.005432)
  test_check_button:					.: (0.008952)
  test_radio_button:					.: (0.002963)
  test_general:						.: (0.002682)
  test_normal_text:					.: (0.002978)
  test_file_select_text:				.: (0.003110)
  test_push_button:					.: (0.002925)
  test_normal_password_text:				.: (0.003063)
test-page:
  test_index_multi_pages:				.: (0.000797)
  test_get_size:					.: (0.000638)
  test_render_pixbuf:					.: (0.029454)
  test_transition:					.: (0.000983)
  test_index_single_page:				.: (0.000672)
  test_get_form_field_mapping:				.: (0.002568)
  test_get_text:					.: (0.010651)
test-document:
  test_attachment:					
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7c8d6c0 (LWP 10641)]
attachment_equal (data1=0x0, data2=0x8c62e00) at test-document.c:494
494	  if ((attachment1->checksum != attachment2->checksum) &&
(gdb) bt
#0  attachment_equal (data1=0x0, data2=0x8c62e00) at test-document.c:494
#1  0xb80953ee in gcut_list_equal (list1=0x8c8a330, list2=0x8c67a80, equal_func=0xb7af9a50 <attachment_equal>) at gcut-list.c:40
#2  0xb80979b3 in gcut_assert_equal_list_helper (expected=0x8c8a330, actual=0x8c67a80, equal_function=0xb7af9a50 <attachment_equal>, 
    inspect_function=0xb7af9950 <attachment_inspect>, inspect_user_data=0x0, expression_expected=0xb7afb2a7 "expected", 
    expression_actual=0xb7afb2a0 "actual", expression_equal_function=0xb7afb28f "attachment_equal") at gcut-assertions-helper.c:92
#3  0xb7af993a in test_attachment () at test-document.c:552
#4  0xb8077039 in invoke (test=0x8c7f550, test_context=0x8c84340, run_context=0x8c71800) at cut-test.c:403
#5  0xb807772b in run (test=0x8c7f550, test_context=0x8c84340, run_context=0x8c71800) at cut-test.c:429
#6  0xb80766af in cut_test_run (test=0x8c7f550, test_context=0x8c84340, run_context=0x8c71800) at cut-test.c:461
#7  0xb807a3bb in cut_test_case_run_with_filter (test_case=0x8c7e140, run_context=0x8c71800, test_names=0x0) at cut-test-case.c:338
#8  0xb807ac5a in run (data=0x8c82bd8, user_data=0xbffbf4f8) at cut-test-suite.c:244
#9  0xb807b4af in cut_test_suite_run_test_cases (test_suite=0x8c74018, run_context=0x8c71800, test_cases=0x8c839b0, test_names=0x0) at cut-test-suite.c:290
#10 0xb807b759 in cut_test_suite_run_with_filter (test_suite=0x8c74018, run_context=0x8c71800, test_case_names=0x0, test_names=0x0) at cut-test-suite.c:582
#11 0xb807b7e6 in cut_test_suite_run (suite=0x8c74018, run_context=0x8c71800) at cut-test-suite.c:505
#12 0xb8073769 in cut_test_runner_run_test_suite (runner=0x8c71800, test_suite=0x8c74018) at cut-test-runner.c:767
#13 0xb807595c in runner_run (runner=0x8c71800) at cut-test-runner.c:722
#14 0xb807353e in cut_runner_run (runner=0x8c71800) at cut-runner.c:68
#15 0xb80700a4 in cut_run_context_start (context=0x8c71800) at cut-run-context.c:1758
#16 0xb8046f1d in run (ui=0x8c68a00, run_context=0x8c71800) at cut-console-ui.c:912
#17 0xb8083546 in cut_ui_run (ui=0x8c68a00, run_context=0x8c71800) at cut-ui.c:103
#18 0xb8075d8a in cut_start_run_context (run_context=0x8c71800) at cut-main.c:411
#19 0xb8075f72 in cut_run () at cut-main.c:439
#20 0x080485aa in main (argc=Cannot access memory at address 0x1
) at main.c:35
(gdb)

El mié, 29-04-2009 a las 09:58 +0200, Carlos Garcia Campos escribió:
> El mié, 29-04-2009 a las 09:54 +0900, Kouhei Sutou escribió:
> > Hi,
> > 
> > In <1240908768.4183.17.camel at charmaleon>
> >   "Re: [poppler] unit test for GLib bindings" on Tue, 28 Apr 2009 10:52:48 +0200,
> >   Carlos Garcia Campos <carlosgc at gnome.org> wrote:
> > 
> > > patch looks good to me, could you send it again attached to the mail and
> > > generated with git format-patch, please? 
> > 
> > Sure. I attach it.
> 
> Pushed to both branches, thank you very much!
> 
> > 
> > Thanks,
> > --
> > kou
> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/poppler


-- 
Carlos Garcia Campos
   elkalmail at yahoo.es
   carlosgc at gnome.org
   http://carlosgc.linups.org
PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x523E6462
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
 digitalmente
Url : http://lists.freedesktop.org/archives/poppler/attachments/20090606/e05593e4/attachment.pgp 


More information about the poppler mailing list