ports/70341: pan2 crashes when built with libgnuregex

Conrad J. Sabatier conrads at cox.net
Sun Aug 15 02:00:37 UTC 2004


The following reply was made to PR ports/70341; it has been noted by GNATS.

From: "Conrad J. Sabatier" <conrads at cox.net>
To: Joe Marcus Clarke <marcus at FreeBSD.org>
Cc: pan at rebelbase.com, freebsd-gnats-submit at FreeBSD.org
Subject: Re: ports/70341: pan2 crashes when built with libgnuregex
Date: Sat, 14 Aug 2004 20:51:26 -0500 (CDT)

 OK, finally got that full trace.  I just did another full upgrade of
 the world, kernel and ports, all with debugging enabled.
 
 dolphin:conrads:/usr/home/conrads$ gdb `which pan`
 GNU gdb 6.1.1 [FreeBSD]
 Copyright 2004 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and
 you are
 welcome to change it and/or distribute copies of it under certain
 conditions.
 Type "show copying" to see the conditions.
 There is absolutely no warranty for GDB.  Type "show warranty" for
 details.
 This GDB was configured as "amd64-marcel-freebsd"...
 (gdb) run
 Starting program: /usr/X11R6/bin/pan
 
 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 5 (LWP 100116)]
 0x0000000202f39d18 in re_search_2 (bufp=0x7fffffbea230, string1=0x0,
 size1=0,
     string2=0xc4f880 "Steas Post Full Mix Explosive Car Tunning 
 [10/010   - \"Explosive Car Tunning 4 - CD2 192KBPS.vol64+16.PAR2\"
 yEnc (15/17)", size2=121,
     startpos=0, range=121, regs=0x0, stop=121)
     at /usr/src/gnu/lib/libregex/regex.c:5036
 5036                      range--;
 (gdb) bt full
 #0  0x0000000202f39d18 in re_search_2 (bufp=0x7fffffbea230, string1=0x0,
     size1=0,
     string2=0xc4f880 "Steas Post Full Mix Explosive Car Tunning 
 [10/010   - \"Explosive Car Tunning 4 - CD2 192KBPS.vol64+16.PAR2\"
 yEnc (15/17)", size2=121,
     startpos=0, range=121, regs=0x0, stop=121)
     at /usr/src/gnu/lib/libregex/regex.c:5036
         d = 0xc4f881 "teas Post Full Mix Explosive Car Tunning  [10/010
   - \"Explosive Car Tunning 4 - CD2 192KBPS.vol64+16.PAR2\" yEnc
 (15/17)"
         lim = 0
         irange = 121
         val = 11494144
         fastmap = 0x2 <Error reading address 0x2: Bad address>
         translate = 0xaf6300 ""
         total_size = 121
         endpos = 121
 #1  0x0000000202f39f03 in re_search (bufp=0x7fffffbea201, string=0x0,
     size=12908673, startpos=121, range=1, regs=0x0)
     at /usr/src/gnu/lib/libregex/regex.c:4923
 No locals.
 #2  0x0000000202f3a2e2 in regexec (preg=0x68c768,
     string=0xc4f880 "Steas Post Full Mix Explosive Car Tunning  [10/010
   - \"Explosive Car Tunning 4 - CD2 192KBPS.vol64+16.PAR2\" yEnc
 (15/17)", nmatch=0,
     pmatch=0x0, eflags=0) at /usr/src/gnu/lib/libregex/regex.c:7790
         ret = 6866792
 ---Type <return> to continue, or q <return> to quit---
         regs = {num_regs = 0, start = 0x0, end = 0x68c768}
         private_preg = {buffer = 0xc6e9c0 "\002\001.\004\016",
 allocated = 64,
   used = 39, syntax = 242428,
   fastmap = 0x2 <Error reading address 0x2: Bad address>,
   translate = 0xaf6300 "", re_nsub = 0, can_be_null = 0, regs_allocated
 = 2,
   fastmap_accurate = 1, no_sub = 0, not_bol = 0, not_eol = 0,
   newline_anchor = 0}
         len = 121
         want_reg_info = 0 '\0'
 #3  0x000000000046c14d in filter_phrase_test_articles
 (filter=0x7fffffbea201,
     articles=0xc50000, article_qty=851, does_match=0xc52000)
     at filter-phrase.c:173
         buf =
 "`»È\000\000\000\000\000¨»È\000\000\000\000\000\bãÐ\002\002\000\000\000\
 000´i\000\001\000\000\000\bãÐ\002\002\000\000\0003ä¿\002\002", '\0'
 <repeats 11 times>,
 "\bãÐ\002\002\000\000\000\000´i\000\000\000\000\000\000\000\000\000\001"
 , '\0' <repeats 11 times>,
 "µñ¿\002\002\000\000\000\bãÐ\002\002\000\000\000\000´i\000\001\000\000\0
 00\bãÐ\002\002\000\000\0003ä¿\002\002", '\0' <repeats 11 times>,
 "\bãÐ\002\002\000\000\000\000´i\000\000\000\000\000\000\000\000\000\001"
 , '\0' <repeats 11 times>, "µñ¿\002\002\000\000\000\000ùÄ", '\0'
 <repeats 13 times>, "\001\000\000\000\000\000\000\000Ð d", '\0'
 <repeats 13 times>...
         a = (const Article *) 0x0
         text = 0xc4f880 "Steas Post Full Mix Explosive Car Tunning 
 [10/010   - \"Explosive Car Tunning 4 - CD2 192KBPS.vol64+16.PAR2\"
 yEnc (15/17)"
         text_len = 0
 ---Type <return> to continue, or q <return> to quit---
         i = 0
         phrase = (FilterPhrase *) 0x68c600
 #4  0x0000000000469ce3 in filter_test_articles (filter=0x68c600,
 articles=0x0,
     qty=851, passfail=0xc52000) at filter.c:116
         __PRETTY_FUNCTION__ = "filter_test_articles"
 #5  0x0000000000469ce3 in filter_test_articles (filter=0xaafd00,
 articles=0x0,
     qty=851, passfail=0xc52000) at filter.c:116
         __PRETTY_FUNCTION__ = "filter_test_articles"
 #6  0x0000000000469e71 in filter_remove_failures (filter=0x0,
     articles=0xad54b0) at filter.c:209
         i = 0
         tmp = (GPtrArray *) 0x65e780
         passfail = (gboolean *) 0xc52000
         __PRETTY_FUNCTION__ = "filter_remove_failures"
 #7  0x0000000000467101 in rule_apply (rule=0xb4f400, articles=0x65e780)
     at rule.c:287
         filter = (Filter *) 0xaafd00
         tmp = (GPtrArray *) 0xad54b0
         deleted = 1
         __PRETTY_FUNCTION__ = "rule_apply"
 #8  0x0000000000464c40 in rule_manager_process_incoming_articles (
     articles=0x65e780) at rule-manager.c:123
         r = (Rule *) 0x7fffffbea201
         i = 2
 ---Type <return> to continue, or q <return> to quit---
         __PRETTY_FUNCTION__ = "rule_manager_process_incoming_articles"
 #9  0x0000000000457784 in task_headers_run_download (task=0xb26100,
     sock=0xa6cd00) at task-headers.c:321
         steps = 8863072
         articles = (GPtrArray *) 0x65e780
         low_in_group = 2401495
         high_in_group = 2403866
         low_to_fetch = 2402774
         high_to_fetch = 2403866
         high_reached = 2403866
         total_in_group = 2338
         progress_fmt = 0x4ff20c "New %lu of %lu"
         reffed = 1
         state_set = 0
         val = 11494144
         state = TASK_OK
         __PRETTY_FUNCTION__ = "task_headers_run_download"
 #10 0x000000000044bc63 in queue_run_thread (gp_data=0x7fffffbea201,
     user_data=0x0) at queue.c:941
         data = (QueueRunStruct *) 0xb011a0
         task = (Task *) 0xb26100
         sock = (PanSocket *) 0xa6cd00
 #11 0x00000002026997fa in g_thread_pool_thread_proxy
 (data=0x7fffffbea201)
     at gthreadpool.c:113
 ---Type <return> to continue, or q <return> to quit---
         task = 0xb011a0
         goto_global_pool = 0
         len = 11538848
         pool = (GRealThreadPool *) 0x684980
         watcher = 0
 #12 0x0000000202697464 in g_thread_create_proxy (data=0x7fffffbea201)
     at gthread.c:556
         thread = (GRealThread *) 0x684b40
         __PRETTY_FUNCTION__ = "g_thread_create_proxy"
 #13 0x0000000202bf4aa9 in thread_start (curthread=0x7fffffbea201,
     start_routine=0, arg=0x7fffffbea201)
     at /usr/src/lib/libpthread/thread/thr_create.c:342
 No locals.
 #14 0x00000002030870d4 in makectx_wrapper (ucp=0x69f010, func=0x73,
     args=0xaf6300) at /usr/src/lib/libc/amd64/gen/makecontext.c:100
 No locals.
 #15 0x0000000000000000 in ?? ()
 No symbol table info available.
 #16 0x000000000069b400 in ?? ()
 No symbol table info available.
 #17 0x00000002026973e0 in g_thread_fail () at gthread.c:538
         g_once_cond = (GCond *) 0x6540a0
         zero_thread = {data = "\000\000\000\000\000\000\000",
   dummy_double = 0, dummy_pointer = 0x0, dummy_long = 0}
 ---Type <return> to continue, or q <return> to quit---
         g__g_thread_lock = {runtime_mutex = 0x0, static_mutex = {
     pad = "\000îh\000\000\000\000", dummy_double =
 3.3975273929184166e-317,
     dummy_pointer = 0x68ee00, dummy_long = 6876672}}
         g_thread_free_indeces = (GSList *) 0x0
         g_thread_all_threads = (GSList *) 0x65d920
         g_once_mutex = (GMutex *) 0x654090
         g_thread_specific_private = (GPrivate *) 0x654130
         g_thread_functions_for_glib_use = {
   mutex_new = 0x2026973c0 <g_thread_fail>, mutex_lock = 0,
 mutex_trylock = 0,
   mutex_unlock = 0, mutex_free = 0, cond_new = 0x2026973c0
 <g_thread_fail>,
   cond_signal = 0, cond_broadcast = 0, cond_wait = 0, cond_timed_wait =
 0,
   cond_free = 0, private_new = 0x2026973c0 <g_thread_fail>, private_get
 = 0,
   private_set = 0, thread_create = 0x2026973c0 <g_thread_fail>,
   thread_yield = 0, thread_join = 0, thread_exit = 0,
 thread_set_priority = 0,
   thread_self = 0, thread_equal = 0}
         g_thread_use_default_impl = 1
         g_threads_got_initialized = 0
 #18 0x0000000000684b40 in ?? ()
 No symbol table info available.
 #19 0x0000000000000000 in ?? ()
 No symbol table info available.
 #20 0x0000000000000000 in ?? ()
 No symbol table info available.
 #21 0x0000000000000000 in ?? ()
 ---Type <return> to continue, or q <return> to quit---
 No symbol table info available.
 Error accessing memory address 0x7fffffbeb000: Bad address.
 (gdb)
 -- 
 Conrad J. Sabatier <conrads at cox.net> -- "In Unix veritas"



More information about the freebsd-ports-bugs mailing list