[elinks-users] Re: Elinks <local-file>

Jean-Yves Levesque jyves at nortelnetworks.com
Wed Oct 15 12:48:36 PDT 2003


Sorry to follow up on my post but I found a work around:

in module src/mime/backend/mimetypes.c

replace in init_mimetypes_map:


        unsigned char *path;

        if (!get_opt_bool_tree(mimetypes_tree, "enable"))
                return NULL;

by

        unsigned char *path;

        if ( mimetypes_tree == NULL )
                init_mimetypes() ;

        if (!get_opt_bool_tree(mimetypes_tree, "enable"))
                return NULL;


and add :

static void init_mimetypes(void) ;

before:

static void
done_mimetypes_entry(struct mimetypes_entry *entry)

works for me.



* Jean-Yves Levesque <jyves at nortelnetworks.com>:
> * Jonas Fonseca <fonseca at diku.dk>:
>> Jean-Yves Levesque <jyves at nortelnetworks.com> wrote Wed, Oct 15, 2003:
>>> * Lars Bjørndal <lars.bjorndal at broadpark.no>:
>>> > zas at norz.org writes:
>>> >
>>> >> I can't reproduce it.
>>> >> Does it occur with _any_ local file ?
>>> >
>>> > Yes, and it occures also by any user (root, other users on the system).
>>> >
>>> 
>>> 	It happens to me also using pre7.
>>> 
>>> 	elinks x.html 
>>> 
>>>         ELinks crashed...
>>
>> Please help to find the bug by giving more info.
>>
>> A file/page that always triggers the bug.
>
>   See below
>
>> Your settings of the mimetypes options.
>
>   I removed the .elinks directory just to be sure.
>
>> Any specific OS/system info.
>
>   see below.
>
>> What configure flags did you use to build elinks.
>
>   see below.
>
> 1. First the crash
>
> ELinks crashed. That shouldn't happen. Please report this incident to
> developers. Preferrably please include information about what probably
> triggered this and the listout below. Note that it does NOT supercede the gdb
> output, which is way more useful for developers. If you would like to help to
> debug the problem you just uncovered, please keep the core you just got and
> send the developers output of 'bt' command entered inside of gdb (which you run
> as gdb elinks core). Thanks a lot for your cooperation!
>
> ELinks 0.5pre7
> Features: Debug, SSL (OpenSSL), IPv6, Bookmarks, Cookies, Global History,
>           gzip, Forms memory
>
> ./src/elinks[0x808ed60]
> ./src/elinks[0x808ef30]
> /lib/i686/libc.so.6[0x4021f358]
> ./src/elinks(get_opt_+0x14)[0x80ab174]
> ./src/elinks[0x80950a3]
> ./src/elinks[0x8095322]
> ./src/elinks(get_content_type_backends+0x37)[0x8093a87]
> ./src/elinks(get_content_type+0x8e)[0x80936ae]
> ./src/elinks(ses_chktype+0x19)[0x8084139]
> ./src/elinks[0x80877d4]
> ./src/elinks(end_load+0x4f)[0x808803f]
> ./src/elinks[0x807f8de]
> ./src/elinks[0x807f953]
> ./src/elinks(abort_connection+0x1a)[0x808040a]
> ./src/elinks[0x809869f]
> ./src/elinks[0x808030a]
> ./src/elinks(check_queue+0x19f)[0x808070f]
> ./src/elinks(do_check_bottom_halves+0x84)[0x808c674]
> ./src/elinks(select_loop+0x45c)[0x808d19c]
> ./src/elinks(main+0x2d)[0x805432d]
> Aborted
>
> 2. gdb
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x080aaff8 in get_opt_rec (tree=0x0, name_=0x80d626b "enable") at options.c:122
> 122             foreach (option, *((struct list_head *) tree->ptr)) {
>
> 3. configure options:
>
>    I tried many combinations, including the usual : ./configure
>
> 4. System:
>
>    Mandrake 9.0, kernel 2.4.19, glibc 2.2.5
>
> 5. Sample file:
>
>    x.html
>
>   please note the lines strating with <li> have been split to
>   fit within 80 characters.
>
> --- cut here ---
><head><title>Yahoo News</title></head>
><body>
><table width=100%>
><tr><td bgcolor=magenta>
><a href=http://news.yahoo.com/news?tmpl=index&cid=738><font color=yellow>
>     Yahoo! News - Technology</font></a>
>      (<lastBuildDate>Wed, 15 Oct 2003 16:45:42 GMT</lastBuildDate>)
>     </td></tr><tr><td bgcolor=lightgrey><ul>
>
><li><a href=http://story.news.yahoo.com/news?tmpl=story2&u=/nm/
> 20031015/tc_nm/tech_biometrics_dc>
>     Forgot Your Computer Password Again? Press Here (Reuters)</a><br>
><li><a href=http://story.news.yahoo.com/news?tmpl=story2&u=/nm/
> 20031015/tc_nm/internet_speed_dc>
>     New Internet Speed Record Set by Euro - U.S. Labs (Reuters)</a><br>
><li><a href=http://story.news.yahoo.com/news?tmpl=story2&u=/nm/
> 20031015/tc_nm/tech_equipment_global_dc>
>     Global Chip Equipment Sales Up 5.7 Percent in August (Reuters)</a><br>
><li><a href=http://story.news.yahoo.com/news?tmpl=story2&u=/nm/
> 20031015/tc_nm/tech_china_intel_dc>
>     Intel Sees China PC Market Overtaking U.S. by 2010 (Reuters)</a><br>
></ul></td></tr>
></table>
><p>
><hr>
> --- cut here ---
>
>
>
>


-- 
Jean-Yves Levesque - Nortel Networks (jyves at nortelnetworks.com)
P.O. Box 3511, Station C Ottawa, Canada  K1Y 4H7
-
Ideas expressed belong to the owner and not to the company




More information about the elinks-users mailing list