[Nautilus-list] Component Crash Problems



I am having trouble getting a rpm component to work properly. I am hoping 
that someone can help me, so I can continue working on it. Right now I am stumped.

When I take out the calls to rpmlib, the component acts properly. But when I add 
the rpmlib calls the component crashes upon loading. I have tried the 
sequence of rpmlib calls outside the component in a stand alone binary and it 
works fine. Are there issues with using shared libraries, file descriptors, etc 
inside a component?

Anyone have an idea what is going wrong here? 

[New Thread 1024 (LWP 4248)]
0x40a75669 in __wait4 () from /lib/i686/libc.so.6
#0  0x40a75669 in __wait4 () from /lib/i686/libc.so.6
#1  0x40af1154 in __DTOR_END__ () from /lib/i686/libc.so.6
#2  0x407e6523 in waitpid (pid=4249, stat_loc=0xbfffeb5c, options=0)
    at wrapsyscall.c:172
#3  0x400e1fa9 in libgnomeui_segv_handle (signum=11) at gnome-ui-init.c:598
#4  0x407e48d5 in pthread_sighandler (signo=11, ctx=
      {gs = 7, __gsh = 0, fs = 0, __fsh = 0, es = 43, __esh = 0, ds = 43, __dsh = 0, edi = 4294967295, esi = 0, ebp = 3221221144, esp = 3221221120, ebx = 1083932664, edx = 3221221200, ecx = 0, eax = 0, trapno = 14, err = 4, eip = 1083882364, cs = 35, __csh = 0, eflags = 2163218, esp_at_signal = 3221221120, ss = 43, __ssh = 0, fpstate = 0xbfffec80, oldmask = 2147483648, cr2 = 12}) at signals.c:97
#5  <signal handler called>
#6  0x409abb7c in Fileno () from /usr/lib/librpmio-4.0.3.so
#7  0x408db8d7 in readPackageHeaders () from /usr/lib/librpm-4.0.3.so
#8  0x408dbc17 in rpmReadPackageInfo () from /usr/lib/librpm-4.0.3.so
#9  0x080494fe in load_rpm_location (view=0x806c780, 
    location=0x80d23b8 "file:///home/aburr/naut-rpm.tar")
    at nautilus-rpm-view.c:85
#10 0x0804971c in rpm_load_location_callback (nautilus_view=0x806c780, 
    location=0x80d23b8 "file:///home/aburr/naut-rpm.tar", user_data=0x0)
    at nautilus-rpm-view.c:140
#11 0x4080e3e5 in g_cclosure_marshal_VOID__STRING (closure=0x8087250, 
    return_value=0x0, n_param_values=2, param_values=0xbffff3d0, 
    invocation_hint=0xbffff2d8, marshal_data=0x0) at gmarshal.c:496
#12 0x407f8fb2 in g_closure_invoke (closure=0x8087250, return_value=0x0, 
    n_param_values=2, param_values=0xbffff3d0, invocation_hint=0xbffff2d8)
    at gclosure.c:437
#13 0x4080cdbf in signal_emit_unlocked_R (node=0x806c1d0, detail=0, 
    instance=0x806c780, emission_return=0x0, instance_and_params=0xbffff3d0)
    at gsignal.c:2340
#14 0x4080b55e in g_signal_emit_valist (instance=0x806c780, signal_id=15, 
    detail=0, var_args=0xbffff560) at gsignal.c:2099
#15 0x4080b7db in g_signal_emit (instance=0x806c780, signal_id=15, detail=0)
    at gsignal.c:2143
#16 0x4076a414 in call_load_location (view=0x806c780, callback_data=0x8087728)
    at nautilus-view.c:159
#17 0x40768cff in execute_queued_functions (callback_data=0x806c8c8)
    at nautilus-idle-queue.c:66
#18 0x40850bd8 in g_idle_dispatch (source=0x80878e8, 
    callback=0x40768ca0 <execute_queued_functions>, user_data=0x806c8c8)
    at gmain.c:3128
#19 0x4084e5a6 in g_main_dispatch (context=0x805ed20) at gmain.c:1616
#20 0x4084f3bd in g_main_context_dispatch (context=0x805ed20) at gmain.c:2160
#21 0x4084f750 in g_main_context_iterate (context=0x805ed20, block=1, 
    dispatch=1, self=0x8051eb8) at gmain.c:2241
#22 0x4084fdf6 in g_main_loop_run (loop=0x806b118) at gmain.c:2461
#23 0x403e3623 in gtk_main () at gtkmain.c:882
#24 0x4076c0e5 in nautilus_view_standard_main_multi (
    executable_name=0x8049df2 "nautilus-rpm-view", version=0x804a046 "1.1.5", 
    gettext_package_name=0x0, gettext_locale_directory=0x0, argc=3, 
    argv=0xbffff824, 
    factory_iid=0x804a000 "OAFIID:nautilus_rpm_view_factory:f027cfe3-f1d9-4ee9-bcd4-ba922403f42a", view_iids=0xbffff750, 
    create_function=0x80491c0 <nautilus_view_create_from_get_type_function>, 
    post_initialize_callback=0, user_data=0x804935c)
    at nautilus-view-standard-main.c:228
#25 0x4076c2c9 in nautilus_view_standard_main (
    executable_name=0x8049df2 "nautilus-rpm-view", version=0x804a046 "1.1.5", 
    gettext_package_name=0x0, gettext_locale_directory=0x0, argc=3, 
    argv=0xbffff824, 
    factory_iid=0x804a000 "OAFIID:nautilus_rpm_view_factory:f027cfe3-f1d9-4ee9-bcd4-ba922403f42a", 
    view_iid=0x8049fc0 "OAFIID:nautilus_rpm_view:d19b086b-b50e-4a73-ade3-7ac942ff05e6", 
    create_function=0x80491c0 <nautilus_view_create_from_get_type_function>, 
    post_initialize_callback=0, user_data=0x804935c)
    at nautilus-view-standard-main.c:311
#26 0x08049bad in main (argc=3, argv=0xbffff824) at main.c:46
#27 0x409d7507 in __libc_start_main (main=0x8049b78 <main>, argc=3, 
    ubp_av=0xbffff824, init=0x8048f38 <_init>, fini=0x8049bf0 <_fini>, 
    rtld_fini=0x4000dc14 <_dl_fini>, stack_end=0xbffff81c)
    at ../sysdeps/generic/libc-start.c:129

Thread 1 (Thread 1024 (LWP 4248)):
#0  0x40a75669 in __wait4 () from /lib/i686/libc.so.6
#1  0x40af1154 in __DTOR_END__ () from /lib/i686/libc.so.6
#2  0x407e6523 in waitpid (pid=4249, stat_loc=0xbfffeb5c, options=0)
    at wrapsyscall.c:172
#3  0x400e1fa9 in libgnomeui_segv_handle (signum=11) at gnome-ui-init.c:598
#4  0x407e48d5 in pthread_sighandler (signo=11, ctx=
      {gs = 7, __gsh = 0, fs = 0, __fsh = 0, es = 43, __esh = 0, ds = 43, __dsh = 0, edi = 4294967295, esi = 0, ebp = 3221221144, esp = 3221221120, ebx = 1083932664, edx = 3221221200, ecx = 0, eax = 0, trapno = 14, err = 4, eip = 1083882364, cs = 35, __csh = 0, eflags = 2163218, esp_at_signal = 3221221120, ss = 43, __ssh = 0, fpstate = 0xbfffec80, oldmask = 2147483648, cr2 = 12}) at signals.c:97
#5  <signal handler called>
#6  0x409abb7c in Fileno () from /usr/lib/librpmio-4.0.3.so
#7  0x408db8d7 in readPackageHeaders () from /usr/lib/librpm-4.0.3.so
#8  0x408dbc17 in rpmReadPackageInfo () from /usr/lib/librpm-4.0.3.so
#9  0x080494fe in load_rpm_location (view=0x806c780, 
    location=0x80d23b8 "file:///home/aburr/naut-rpm.tar")
    at nautilus-rpm-view.c:85
#10 0x0804971c in rpm_load_location_callback (nautilus_view=0x806c780, 
    location=0x80d23b8 "file:///home/aburr/naut-rpm.tar", user_data=0x0)
    at nautilus-rpm-view.c:140
#11 0x4080e3e5 in g_cclosure_marshal_VOID__STRING (closure=0x8087250, 
    return_value=0x0, n_param_values=2, param_values=0xbffff3d0, 
    invocation_hint=0xbffff2d8, marshal_data=0x0) at gmarshal.c:496
#12 0x407f8fb2 in g_closure_invoke (closure=0x8087250, return_value=0x0, 
    n_param_values=2, param_values=0xbffff3d0, invocation_hint=0xbffff2d8)
    at gclosure.c:437
#13 0x4080cdbf in signal_emit_unlocked_R (node=0x806c1d0, detail=0, 
    instance=0x806c780, emission_return=0x0, instance_and_params=0xbffff3d0)
    at gsignal.c:2340
#14 0x4080b55e in g_signal_emit_valist (instance=0x806c780, signal_id=15, 
    detail=0, var_args=0xbffff560) at gsignal.c:2099
#15 0x4080b7db in g_signal_emit (instance=0x806c780, signal_id=15, detail=0)
    at gsignal.c:2143
#16 0x4076a414 in call_load_location (view=0x806c780, callback_data=0x8087728)
    at nautilus-view.c:159
#17 0x40768cff in execute_queued_functions (callback_data=0x806c8c8)
    at nautilus-idle-queue.c:66
#18 0x40850bd8 in g_idle_dispatch (source=0x80878e8, 
    callback=0x40768ca0 <execute_queued_functions>, user_data=0x806c8c8)
    at gmain.c:3128
#19 0x4084e5a6 in g_main_dispatch (context=0x805ed20) at gmain.c:1616
#20 0x4084f3bd in g_main_context_dispatch (context=0x805ed20) at gmain.c:2160
#21 0x4084f750 in g_main_context_iterate (context=0x805ed20, block=1, 
    dispatch=1, self=0x8051eb8) at gmain.c:2241
#22 0x4084fdf6 in g_main_loop_run (loop=0x806b118) at gmain.c:2461
#23 0x403e3623 in gtk_main () at gtkmain.c:882
#24 0x4076c0e5 in nautilus_view_standard_main_multi (
    executable_name=0x8049df2 "nautilus-rpm-view", version=0x804a046 "1.1.5", 
    gettext_package_name=0x0, gettext_locale_directory=0x0, argc=3, 
    argv=0xbffff824, 
    factory_iid=0x804a000 "OAFIID:nautilus_rpm_view_factory:f027cfe3-f1d9-4ee9-bcd4-ba922403f42a", view_iids=0xbffff750, 
    create_function=0x80491c0 <nautilus_view_create_from_get_type_function>, 
    post_initialize_callback=0, user_data=0x804935c)
    at nautilus-view-standard-main.c:228
#25 0x4076c2c9 in nautilus_view_standard_main (
    executable_name=0x8049df2 "nautilus-rpm-view", version=0x804a046 "1.1.5", 
    gettext_package_name=0x0, gettext_locale_directory=0x0, argc=3, 
    argv=0xbffff824, 
    factory_iid=0x804a000 "OAFIID:nautilus_rpm_view_factory:f027cfe3-f1d9-4ee9-bcd4-ba922403f42a", 
    view_iid=0x8049fc0 "OAFIID:nautilus_rpm_view:d19b086b-b50e-4a73-ade3-7ac942ff05e6", 
    create_function=0x80491c0 <nautilus_view_create_from_get_type_function>, 
    post_initialize_callback=0, user_data=0x804935c)
    at nautilus-view-standard-main.c:311
#26 0x08049bad in main (argc=3, argv=0xbffff824) at main.c:46
#27 0x409d7507 in __libc_start_main (main=0x8049b78 <main>, argc=3, 
    ubp_av=0xbffff824, init=0x8048f38 <_init>, fini=0x8049bf0 <_fini>, 
    rtld_fini=0x4000dc14 <_dl_fini>, stack_end=0xbffff81c)
    at ../sysdeps/generic/libc-start.c:129
#0  0x40a75669 in __wait4 () from /lib/i686/libc.so.6
#0  0x40a75669 in __wait4 () from /lib/i686/libc.so.6
No locals.
#1  0x40af1154 in __DTOR_END__ () from /lib/i686/libc.so.6
No symbol table info available.
#2  0x407e6523 in waitpid (pid=4249, stat_loc=0xbfffeb5c, options=0)
    at wrapsyscall.c:172
	in wrapsyscall.c
stat_loc = (int *) 0xbfffeb5c
options = 0
result = 0
oldtype = 0
#3  0x400e1fa9 in libgnomeui_segv_handle (signum=11) at gnome-ui-init.c:598
	in gnome-ui-init.c
estatus = 1082122399
in_segv = 1
pid = 0
#4  0x407e48d5 in pthread_sighandler (signo=11, ctx=
      {gs = 7, __gsh = 0, fs = 0, __fsh = 0, es = 43, __esh = 0, ds = 43, __dsh = 0, edi = 4294967295, esi = 0, ebp = 3221221144, esp = 3221221120, ebx = 1083932664, edx = 3221221200, ecx = 0, eax = 0, trapno = 14, err = 4, eip = 1083882364, cs = 35, __csh = 0, eflags = 2163218, esp_at_signal = 3221221120, ss = 43, __ssh = 0, fpstate = 0xbfffec80, oldmask = 2147483648, cr2 = 12}) at signals.c:97
	in signals.c
signo = 0
__value = 0xfffffe00 <Address 0xfffffe00 out of bounds>
#5  <signal handler called>
No locals.
#6  0x409abb7c in Fileno () from /usr/lib/librpmio-4.0.3.so
No symbol table info available.
#7  0x408db8d7 in readPackageHeaders () from /usr/lib/librpm-4.0.3.so
No symbol table info available.


I have attached my code in a tar file.
rpmview/
rpmview/Makefile
rpmview/main.c
rpmview/nautilus-rpm-view-ui.xml
rpmview/Nautilus_View_rpm.server
rpmview/nautilus-rpm-view.c
rpmview/nautilus-rpm-view.h
rpmview/traceback

Thanks.

-------------------------[ burra colorado edu ]-------------------------

Attachment: rpmview.tar
Description: Unix tar archive



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]