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 114361 - sync'ing with memofile conduit crashes gpilotd
sync'ing with memofile conduit crashes gpilotd
Status: RESOLVED FIXED
Product: gnome-pilot
Classification: Other
Component: conduit: memo_file
unspecified
Other other
: High critical
: ---
Assigned To: gnome-pilot Maintainers
gnome-pilot Maintainers
: 114794 114987 115319 116616 122572 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-06-03 20:14 UTC by James Strandboge
Modified: 2006-03-14 21:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch against gnome-pilot-2.0.10 distribution, to fix memo-file conduit bug (16.20 KB, patch)
2003-08-28 13:57 UTC, matt
needs-work Details | Review
patch to memo_file_conduit 2.0.10, to allow memo-file to run before local records exist. partial reverse of 2.0.9--2.0.10 patch. (1.29 KB, patch)
2003-08-28 14:32 UTC, matt
none Details | Review

Description James Strandboge 2003-06-03 20:14:50 UTC
Package: gnome-pilot
Severity: critical
Version: 2.0.9
Synopsis: sync'ing with memofile conduit crashes gpilotd
Bugzilla-Product: gnome-pilot
Bugzilla-Component: conduit: memo_file
BugBuddy-GnomeVersion: 2.0 (2.2.0.1)

Description:
Description of Problem:
sync'ing with memofile conduit crashes gpilotd

Steps to reproduce the problem:
1.   start the hotsync applet
2.   press hotsync on palm

Actual Results:
gpilotd crashes during memofile conduit sync

Expected Results:
memofile conduit syncs

How often does this happen?
every time

Additional Information:
evolution 1.3.92
gnome-pilot 2.0.9
gnome-pilot-conduits 2.0.9
palm m500 (visor) usb



Debugging Information:

Backtrace was generated from '/usr/bin/gpilotd'

(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...[New
Thread 1024 (LWP 1304)]

(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...0x409e9a59 in wait4 () from
/lib/libc.so.6

Thread 1 (Thread 1024 (LWP 1304))

  • #0 wait4
    from /lib/libc.so.6
  • #1 __check_rhosts_file
    from /lib/libc.so.6
  • #2 waitpid
    from /lib/libpthread.so.0
  • #3 libgnomeui_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #4 pthread_sighandler
    from /lib/libpthread.so.0
  • #5 sigaction
    from /lib/libc.so.6
  • #6 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #7 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #8 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #9 gtk_signal_emit
    from /usr/lib/libgtk-x11-2.0.so.0
  • #10 gnome_pilot_conduit_standard_abs_match_record
    from /usr/lib/libgpilotdconduit.so.2
  • #11 standard_abs_sync_record
    from /usr/lib/libgpilotdconduit.so.2
  • #12 SlowSync
    from /usr/lib/libgpilotdconduit.so.2
  • #13 gnome_pilot_conduit_standard_abs_new
    from /usr/lib/libgpilotdconduit.so.2
  • #14 gnome_pilot_conduit_backup_restore
    from /usr/lib/libgpilotdconduit.so.2
  • #15 g_cclosure_new_swap
    from /usr/lib/libgobject-2.0.so.0
  • #16 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #17 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #18 g_signal_emitv
    from /usr/lib/libgobject-2.0.so.0
  • #19 gnome_pilot_conduit_standard_synchronize
    from /usr/lib/libgpilotdconduit.so.2
  • #20 main
  • #21 main
  • #22 main
  • #23 gpilot_sync_default
  • #24 device_equal_by_io
  • #25 device_equal_by_io
  • #26 device_equal_by_io
  • #27 network_device_err
  • #28 g_vsnprintf
    from /usr/lib/libglib-2.0.so.0
  • #29 g_get_current_time
    from /usr/lib/libglib-2.0.so.0
  • #30 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #31 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #32 g_main_context_iteration
    from /usr/lib/libglib-2.0.so.0
  • #33 remove_pid_file
  • #34 main
  • #35 __libc_start_main
    from /lib/libc.so.6
  • #0 wait4
    from /lib/libc.so.6




------- Bug moved to this database by unknown@bugzilla.gnome.org 2003-06-03 16:14 -------

Reassigning to the default owner of the component, gnome-pilot-maint@bugzilla.gnome.org.

Comment 1 James Strandboge 2003-06-03 20:33:46 UTC
here is the end of an strace:

read(18, "\253\1\0\0 \2\0\f", 8)        = 8
write(2, "memo-file-conduit-Message: MemoF"...,
50memo-file-conduit-Message: MemoFile Conduit v 0.9
) = 50
write(2, "memo-file-conduit-Message: PreSy"...,
35memo-file-conduit-Message: PreSync
) = 35
brk(0x815d000)                          = 0x815d000
select(19, NULL, [18], NULL, {10, 0})   = 1 (out [18], left {10, 0})
write(18, "\0019\0\0\0\n", 6)           = 6
nanosleep({0, 16000}, NULL)             = 0
select(19, NULL, [18], NULL, {10, 0})   = 1 (out [18], left {10, 0})
write(18, "\33\1 \6\3\0\0\0\377\377", 10) = 10
nanosleep({0, 20000}, NULL)             = 0
select(19, [18], NULL, NULL, {10, 0})   = 1 (in [18], left {10, 0})
read(18, "\0019\0\0\1$", 6)             = 6
select(19, [18], NULL, NULL, {10, 0})   = 1 (in [18], left {10, 0})
read(18, "\233\1\0\0\240\0\1\34\1\32\0\17Unfiled\0\0\0\0\0\0\0\0"...,
292) = 292
write(2, "memo-file-conduit-Message: load_"...,
40memo-file-conduit-Message: load_records
) = 40
open("/home/james/Memos", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY)
= 20
fstat64(20, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl64(20, F_SETFD, FD_CLOEXEC)        = 0
write(2, "memo-file-conduit-Message: load_"...,
43memo-file-conduit-Message: load_categories
) = 43
open("/home/james/Memos/.categories", O_RDONLY) = -1 ENOENT (No such
file or directory)
write(2, "memo-file-conduit-Message: no ca"...,
53memo-file-conduit-Message: no categories, no records
) = 53
close(20)                               = 0
write(2, "gpilotd-Message: Performing Slow"..., 49gpilotd-Message:
Performing Slow Synchronization
) = 49
select(19, NULL, [18], NULL, {10, 0})   = 1 (out [18], left {10, 0})
write(18, "\1:\0\0\0\f", 6)             = 6
nanosleep({0, 16000}, NULL)             = 0
select(19, NULL, [18], NULL, {10, 0})   = 1 (out [18], left {10, 0})
write(18, " \1!\10\3\0\0\0\0\0\377\377", 12) = 12
nanosleep({0, 22000}, NULL)             = 0
select(19, [18], NULL, NULL, {10, 0})   = 1 (in [18], left {10, 0})
read(18, "\1:\0\0\0\331", 6)            = 6
select(19, [18], NULL, NULL, {10, 0})   = 1 (in [18], left {10, 0})
read(18, "\240\1\0\0 \323\0o`\35\0\0\0\311\0\2Board meeting\n\nn"...,
217) = 217
--- SIGSEGV (Segmentation fault) ---
write(3, "\33\0\2\0\0\0\0\0 N\2\0\0\0\0\0+E\1\0", 20) = 20
read(3, "\1\2b\0\0\0\0\0q\222#\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
32) = 32
fork()                                  = 1940
wait4(1940, [WIFEXITED(s) && WEXITSTATUS(s) == 0], 0, NULL) = 1940
--- SIGCHLD (Child exited) ---
sigreturn()                             = ? (mask now [SEGV RTMIN])
_exit(1)                                = ?
Comment 2 Elijah Newren 2003-06-10 05:51:10 UTC
*** Bug 114794 has been marked as a duplicate of this bug. ***
Comment 3 Elijah Newren 2003-06-10 05:52:12 UTC
Other than bug 114794, which I just marked as a duplicate of this bug,
this appears to be a unique stack trace, according to the
simple-dup-finder.  I'm adding the bugsquad keyword and marking as new.
Comment 4 Elijah Newren 2003-06-12 05:11:47 UTC
*** Bug 114987 has been marked as a duplicate of this bug. ***
Comment 5 Elijah Newren 2003-06-30 14:51:41 UTC
Looks like I forgot to mark priority->high as per bugsquad guidelines
with new stack trace crasher bugs.  I'm doing that now.
Comment 6 Chris Davidson 2003-07-03 16:36:28 UTC
*** Bug 116616 has been marked as a duplicate of this bug. ***
Comment 7 matt 2003-08-28 13:57:12 UTC
Created attachment 19582 [details] [review]
patch against gnome-pilot-2.0.10 distribution, to fix memo-file conduit bug
Comment 8 matt 2003-08-28 14:27:38 UTC
The patch I've just submitted fixes the reported memo-file bug.
It should be applied to the stock gnome-pilots-2.0.10 
distribution.

The problem actually lay in gpilotd code, that doesn't seem
to be used by the other gnome-pilot-conduits conduit code,
AFAICS.

The gnome-pilot-conduit-standard-abs.c code hadn't been
updated to use the newer gtk marshallers, so when the
gtk code called the marshal (when the gtk signal fired)
the marshaller would grab nonsense of the stack and call
a bogus handler.

The fix affects gpilotd/gnome-pilot-conduit-standard-abs.c
and gpilotd/gpmarshal.[c,h,list]

Changes were made to memo_file_conduit.c in v.2.0.10, to try to
prevent the memo-file bug from crashing gpilotd.  At least some
of these changes were unnecessary, and had the side effect
of making it impossible to run memo-file-conduit unless the
memo-file categories already existed locally.  I'm attaching
a patch by Nathan Owens, against the gnome-pilots-conduits-2.0.10
distributed memo_file_conduit.c that reverses these changes.

I believe both these patches should go into 2.0.11
Comment 9 matt 2003-08-28 14:32:14 UTC
Created attachment 19586 [details] [review]
patch to memo_file_conduit 2.0.10, to allow memo-file to run before local records exist. partial reverse of 2.0.9--2.0.10 patch.
Comment 10 Alastair Tse 2003-09-23 13:57:50 UTC
this patch solves the memo-file sync problems for me against
gnome-pilot*-2.0.10.
Comment 11 JP Rosevear 2004-08-04 17:43:26 UTC
I put in the gnome-pilot one and modified the conduit one to leave in error
checking for load_records but still work on a brand new setup.
Comment 12 JP Rosevear 2005-03-27 05:03:24 UTC
*** Bug 122572 has been marked as a duplicate of this bug. ***
Comment 13 Matt Davey 2006-03-14 21:38:50 UTC
*** Bug 115319 has been marked as a duplicate of this bug. ***