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 111790 - assertion `pan_file_exists (filename_tmp)' failed
assertion `pan_file_exists (filename_tmp)' failed
Status: RESOLVED FIXED
Product: Pan
Classification: Other
Component: general
pre-0.14.1 betas
Other Linux
: High normal
: 0.14.1
Assigned To: Charles Kerr
Pan QA Team
Depends on:
Blocks:
 
 
Reported: 2003-04-28 21:16 UTC by dave
Modified: 2006-06-18 05:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Log file from Pan (6.41 KB, text/plain)
2003-04-28 21:17 UTC, dave
Details
Pan Log file (6.62 KB, text/plain)
2003-05-19 14:53 UTC, dave
Details
partial backtrace. note concurrent calls to save_groups_to_file(). (3.22 KB, text/plain)
2003-07-28 22:30 UTC, Christophe Lambin
Details

Description dave 2003-04-28 21:16:16 UTC
I get this message in the log file at random and have
done for a while now.

Using CVS from today it just happened again.

Log snippet will be attached.

Dave
Comment 1 dave 2003-04-28 21:17:01 UTC
Created attachment 16087 [details]
Log file from Pan
Comment 2 dave 2003-05-19 14:53:04 UTC
Another one from CVS of 15th May
Comment 3 dave 2003-05-19 14:53:47 UTC
Created attachment 16631 [details]
Pan Log file
Comment 4 Charles Kerr 2003-07-21 16:32:10 UTC
This assertion is only in one place:
pan_file_swap_datafile (filename_tmp, filename)
that tries to move the tmp file to the real one.

This is called from all over, in file-grouplist.c,
newsrc-port.c,  filter-xml.c, identity-xml.c, and rule-xml.c,
so it'll take some looking through to find the problem.

If this is still happening for you, Dave, it might be easier
for you to run Pan in gdb, set a breakpoint for log_error_breakpoint,
and wait for the error to show up again, and attach a backtrace.
Would this be possible?
Comment 5 dave 2003-07-22 07:30:01 UTC
Yes, it's still happening (but not as frequently as before I think).

I'll get you a backtrace.

Dave
Comment 6 Christophe Lambin 2003-07-28 22:30:50 UTC
Created attachment 18697 [details]
partial backtrace. note concurrent calls to save_groups_to_file().
Comment 7 Christophe Lambin 2003-07-28 22:34:27 UTC
Add'l info: the above backtrace was generated by getting new headers 
for all subscribed groups.
Comment 8 Charles Kerr 2003-07-29 04:49:19 UTC
Chris: I wonder how important it is, actually, to
invoke server_save_grouplist_if_dirty() from task_headers.
The only thing it does here is update the article counts.
Comment 9 Christophe Lambin 2003-07-29 22:01:30 UTC
I think you're right.  Note that task-headers unrefs the articles just
after that call, which also calls server_save_grouplist_if_dirty (but
protected by a mutex, preventing the problem).

Fixed in CVS:
http://cvs.gnome.org/bonsai/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=pan/pan&command=DIFF_FRAMESET&file=task-headers.c&rev1=1.148&rev2=1.149&root=/cvs/gnome