Skip to main content.
home | support | download

Back to List Archive

Re: Segmentation fault while indexing with"StoreDescription"

From: Bill Schell <friedfish(at)not-real.optonline.net>
Date: Wed Apr 21 2004 - 15:45:39 GMT
Hmm.. this problem sounds suspiciously like the malloc problem I had
a two weeks back.   It's worth applying the patch and trying again,
anyway.   See message below (or look in the list archives from April 7th).

On Wed, Apr 07, 2004 at 01:50:37PM -0700, Bill Schell wrote:

>> I finally got back to this problem after being pulled off on something else
>> for a couple weeks.
>> 
>> There is a bug on line 253 of src/file.c (in swish-e-2.4.2).
>> That line reads:
>> buffer[bytes_read+1] = '\0';  /* hopfully doesn't read more than filelen bytes;) */
>> 
>> it should read:
>> buffer[bytes_read] = '\0';  /* hopefully doesn't read more than filelen bytes;) */
>  
>

Yet another reason to get rid of the old built-in parsers!

Thanks for that catch.



Dietmar Rabich wrote:

>Hi Bill,
>
>  
>
>>Would it be possible to index under gdb and they try and get a
>>backtrace?  If we are lucky that might show the problem.
>>    
>>
>
>Yes, it is possible. No problem. (But not for the mail list.)
>
>Two parts. First the message from gdb:
>
>Program received signal SIGSEGV, Segmentation fault.
>0x40106676 in chunk_free (ar_ptr=0x401ba500, p=0x8a19138) at malloc.c:3243
>3243    malloc.c: No such file or directory.
>        in malloc.c
>
>Second the backtrace:
>
>#0  0x40112676 in chunk_free (ar_ptr=0x401c6500, p=0x8a276f8) at
>malloc.c:3243
>#1  0x40112424 in __libc_free (mem=0x8a27700) at malloc.c:3155
>#2  0x4002e8ca in efree (ptr=0x8a27700) at mem.c:102
>#3  0x4002eb68 in Mem_ZoneReset (head=0x80d1938) at mem.c:702
>#4  0x0805799a in do_index_file (sw=0x80cda48, fprop=0x80f8cb8) at
>index.c:1043
>#5  0x08051015 in printfile (sw=0x80cda48,
>   
>filename=0x80f9818
>"../../Dokumente/Software/Online/unibet_c/Html/ULDOC_REVISION_HTML/ULDOC_REVISION.html")
>at fs.c:601
>#6  0x080510ba in printfiles (sw=0x80cda48, e=0x80e3138) at fs.c:642
>#7  0x08050c32 in indexadir (sw=0x80cda48, dir=0x80f38e0
>"../../Dokumente/Software/Online/unibet_c/Html/ULDOC_REVISION_HTML")
>    at fs.c:445
>#8  0x080511b0 in printdirs (sw=0x80cda48, e=0x80f3d28) at fs.c:680
>#9  0x08050c43 in indexadir (sw=0x80cda48, dir=0x80f3958
>"../../Dokumente/Software/Online/unibet_c/Html") at fs.c:446
>#10 0x080511b0 in printdirs (sw=0x80cda48, e=0x80f46e0) at fs.c:680
>#11 0x08050c43 in indexadir (sw=0x80cda48, dir=0x80f3550
>"../../Dokumente/Software/Online/unibet_c") at fs.c:446
>#12 0x080511b0 in printdirs (sw=0x80cda48, e=0x80f9da8) at fs.c:680
>#13 0x08050c43 in indexadir (sw=0x80cda48, dir=0x80dbaa0
>"../../Dokumente/Software/Online") at fs.c:446
>#14 0x080511b0 in printdirs (sw=0x80cda48, e=0x80e1e88) at fs.c:680
>#15 0x08050c43 in indexadir (sw=0x80cda48, dir=0x80e2b00
>"../../Dokumente/Software") at fs.c:446
>#16 0x080511b0 in printdirs (sw=0x80cda48, e=0x80e1a40) at fs.c:680
>#17 0x08050c43 in indexadir (sw=0x80cda48, dir=0x80e1a70 "../../Dokumente")
>at fs.c:446
>#18 0x08051349 in fs_indexpath (sw=0x80cda48, path=0x80e1a70
>"../../Dokumente") at fs.c:733
>#19 0x0805d525 in indexpath (sw=0x80cda48, path=0x80e1a70 "../../Dokumente")
>at file.c:217
>#20 0x0804d413 in cmd_index (sw=0x80cda48, params=0x80dba10) at swish.c:1351
>#21 0x0804b962 in main (argc=3, argv=0xbffec774) at swish.c:209
>
>I hope that this is the right information.
>
>Thank you for your help!
>
>cu Dietmar.
>
>  
>




*********************************************************************
Due to deletion of content types excluded from this list by policy,
this multipart message was reduced to a single part, and from there
to a plain text message.
*********************************************************************
Received on Wed Apr 21 08:45:40 2004