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 372786 - Assertion failed: (*buf), function _FP_fgets, file fptools.c, line 455.
Assertion failed: (*buf), function _FP_fgets, file fptools.c, line 455.
Status: RESOLVED DUPLICATE of bug 370195
Product: Pan
Classification: Other
Component: general
pre-1.0 betas
Other All
: Normal critical
: ---
Assigned To: Charles Kerr
Pan QA Team
Depends on:
Blocks:
 
 
Reported: 2006-11-09 02:58 UTC by David Kelly
Modified: 2006-11-09 03:17 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description David Kelly 2006-11-09 02:58:43 UTC
Steps to reproduce:
1.  Did a "portupgrade -auy" in FreeBSD 6.2-PRERELEASE while pan 0.118 was running. A lot of KDE and GTK stuff was updated.
2.  System crashed with pan still downloading about an hour after I walked away. Have no idea what the system crash was all about.
3.  Pan now instantly core dumps on attempt to restart.
4.  Thinking libraries or something changed in the portupgrade (am not using pan from the FreeBSD port) I returned to the 0.118 sources, "make clean ; ./configure ; make install". Same result. Stack trace below:


Stack trace:

Thread 1 (LWP 100136)

  • #0 kill
    from /lib/libc.so.6
  • #1 raise
    from /lib/libpthread.so.2
  • #2 abort
    from /lib/libc.so.6
  • #3 __assert
    from /lib/libc.so.6
  • #4 _FP_fgets
    at fptools.c line 455
  • #5 ScanData
    at uuscan.c line 652
  • #6 ScanPart
    at uuscan.c line 3154
  • #7 UULoadFileWithPartNo
    at uulib.c line 732
  • #8 pan::TaskArticle::on_finished
    at basic_string.h line 618
  • #9 pan::TaskArticle::update_work
    at task-article.cc line 171
  • #10 TaskArticle
    at task-article.cc line 129
  • #11 (anonymous namespace)::end_element
    at quark.h line 86
  • #12 g_markup_parse_context_parse
    from /usr/local/lib/libglib-2.0.so.0
  • #13 pan::NZB::tasks_from_nzb_string
    at nzb.cc line 172
  • #14 pan::DataImpl::load_tasks
    at basic_string.h line 536
  • #15 Queue
    at queue.cc line 46
  • #16 main
    at string-view.h line 147

Other information:
This appears to have cured the crashing:

% rm /home/dkelly/.pan2/article-cache/part31of201.gKxmchulsD2MgqJM7FPW@powerpost2000AA.local.msg
Comment 1 David Kelly 2006-11-09 03:02:45 UTC
Murphy's Law just bit. rm'ing the file mentioned above allowed pan to restart and resume for long enough to click the Submit button. New core dump, same error message, much different backtrace:

Thread 6 (Thread 0x8293000 (LWP 100129))

  • #0 pthread_testcancel
    from /lib/libpthread.so.2
  • #1 sigaction
    from /lib/libpthread.so.2
  • #2 pthread_kill
    from /lib/libpthread.so.2
  • #3 raise
    from /lib/libpthread.so.2
  • #4 abort
    from /lib/libc.so.6
  • #5 __assert
    from /lib/libc.so.6
  • #6 _FP_fgets
    at fptools.c line 455
  • #7 ScanData
    at uuscan.c line 652
  • #8 ScanPart
    at uuscan.c line 3154
  • #9 UULoadFileWithPartNo
    at uulib.c line 732
  • #10 pan::TaskArticle::on_finished
    at basic_string.h line 618
  • #11 pan::TaskArticle::update_work
    at task-article.cc line 171
  • #12 pan::TaskArticle::on_nntp_done
    at task-article.cc line 270
  • #13 pan::NNTP::fire_done_func
    at nntp.cc line 107
  • #14 pan::NNTP::on_socket_response
    at nntp.cc line 252
  • #15 pan::GIOChannelSocket::do_read
    at string-view.h line 149
  • #16 pan::GIOChannelSocket::gio_func
    at socket-impl-gio.cc line 500
  • #17 g_vasprintf
    from /usr/local/lib/libglib-2.0.so.0
  • #18 g_main_context_dispatch
    from /usr/local/lib/libglib-2.0.so.0
  • #19 g_main_context_acquire
    from /usr/local/lib/libglib-2.0.so.0
  • #20 g_main_loop_run
    from /usr/local/lib/libglib-2.0.so.0
  • #21 gtk_main
    from /usr/local/lib/libgtk-x11-2.0.so.0
  • #22 (anonymous namespace)::run_pan_in_window
    at pan.cc line 154
  • #23 main
    at pan.cc line 294

Thread 5 (Thread 0x8538400 (LWP 100140))

  • #0 pthread_testcancel
    from /lib/libpthread.so.2
  • #1 pthread_mutexattr_init
    from /lib/libpthread.so.2
  • #2 ??

Thread 4 (Thread 0x8538600 (sleeping))

  • #0 pthread_mutexattr_init
    from /lib/libpthread.so.2
  • #1 pthread_mutexattr_init
    from /lib/libpthread.so.2
  • #2 _pthread_cond_wait
    from /lib/libpthread.so.2
  • #3 pthread_cond_wait
    from /lib/libpthread.so.2
  • #4 g_async_queue_push_sorted
    from /usr/local/lib/libglib-2.0.so.0
  • #5 g_thread_pool_free
    from /usr/local/lib/libglib-2.0.so.0
  • #6 g_static_private_free
    from /usr/local/lib/libglib-2.0.so.0
  • #7 pthread_create
    from /lib/libpthread.so.2
  • #8 _ctx_start
    from /lib/libc.so.6

Thread 3 (Thread 0x8538800 (sleeping))

  • #0 pthread_mutexattr_init
    from /lib/libpthread.so.2
  • #1 pthread_mutexattr_init
    from /lib/libpthread.so.2
  • #2 _pthread_cond_wait
    from /lib/libpthread.so.2
  • #3 pthread_cond_wait
    from /lib/libpthread.so.2
  • #4 g_async_queue_push_sorted
    from /usr/local/lib/libglib-2.0.so.0
  • #5 g_thread_pool_free
    from /usr/local/lib/libglib-2.0.so.0
  • #6 g_static_private_free
    from /usr/local/lib/libglib-2.0.so.0
  • #7 pthread_create
    from /lib/libpthread.so.2
  • #8 _ctx_start
    from /lib/libc.so.6

Thread 2 (Thread 0x8538a00 (sleeping))

  • #0 pthread_mutexattr_init
    from /lib/libpthread.so.2
  • #1 pthread_mutexattr_init
    from /lib/libpthread.so.2
  • #2 _pthread_cond_wait
    from /lib/libpthread.so.2
  • #3 pthread_cond_wait
    from /lib/libpthread.so.2
  • #4 g_async_queue_push_sorted
    from /usr/local/lib/libglib-2.0.so.0
  • #5 g_thread_pool_free
    from /usr/local/lib/libglib-2.0.so.0
  • #6 g_static_private_free
    from /usr/local/lib/libglib-2.0.so.0
  • #7 pthread_create
    from /lib/libpthread.so.2
  • #8 _ctx_start
    from /lib/libc.so.6

Thread 1 (Thread 0x8538c00 (sleeping))

  • #0 pthread_mutexattr_init
    from /lib/libpthread.so.2
  • #1 pthread_mutexattr_init
    from /lib/libpthread.so.2
  • #2 _pthread_cond_wait
    from /lib/libpthread.so.2
  • #3 pthread_cond_wait
    from /lib/libpthread.so.2
  • #4 g_async_queue_push_sorted
    from /usr/local/lib/libglib-2.0.so.0
  • #5 g_thread_pool_free
    from /usr/local/lib/libglib-2.0.so.0
  • #6 g_static_private_free
    from /usr/local/lib/libglib-2.0.so.0
  • #7 pthread_create
    from /lib/libpthread.so.2
  • #8 _ctx_start
    from /lib/libc.so.6
  • #0 pthread_testcancel
    from /lib/libpthread.so.2

Comment 2 Charles Kerr 2006-11-09 03:17:46 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


*** This bug has been marked as a duplicate of 370195 ***