[pkg-lynx-maint] Bug#1015756: lynx: segfault when setting 'default colors' to 'OFF'

Cédric Hannotier cedric.hannotier at ulb.be
Wed Jul 20 16:50:48 BST 2022


Package: lynx
Version: 2.9.0dev.10-1
Severity: normal

Dear Maintainer,

Seems that toggling off the "default colors" in the option menu
crashes lynx (segfault).

Steps:
 - $ lynx
 - Press o
 - navigate to "Default colors (!)"
 - switch from "ON_" (default) to "OFF"
 - navigate to "Accept Changes" and press enter

Disabling it using the command-line option
(lynx -default_colors) seems to work.
However, toggling it ON, then OFF makes it segfault.

I have attached a backtrace.

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.18.0-2-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages lynx depends on:
ii  libbsd0       0.11.6-1
ii  libbz2-1.0    1.0.8-5
ii  libc6         2.33-7
ii  libgnutls30   3.7.6-2
ii  libidn2-0     2.3.3-1
ii  libncursesw6  6.3+20220423-2
ii  libtinfo6     6.3+20220423-2
ii  lynx-common   2.9.0dev.10-1
ii  zlib1g        1:1.2.11.dfsg-4

Versions of packages lynx recommends:
ii  mime-support  3.66

lynx suggests no packages.

-- no debconf information

-- 

Cédric Hannotier
-------------- next part --------------
#0  wnoutrefresh (win=win at entry=0x5555558f0d00) at ../../ncurses/base/lib_refresh.c:175
        j = <optimized out>
        last_src = 0
        nline = 0x7ffff7bf5cf0
        oline = 0x5555558f0e20
        limit_x = 0
        src_row = 0
        src_col = -32752
        begx = 0
        begy = <optimized out>
        dst_row = 0
        dst_col = -32752
        sp = <optimized out>
#1  0x00007ffff7f2bed7 in wrefresh (win=0x5555558f0d00) at ../../ncurses/base/lib_refresh.c:63
        code = <optimized out>
        sp = 0x55555584ebf0
#2  0x00005555555ed615 in LYrefresh () at ./src/LYCurses.c:2950
No locals.
#3  0x00005555555f096d in statusline (text=<optimized out>) at ./src/LYUtils.c:1587
        buffer = "Getting file://localhost/usr/share/doc/lynx/lynx_help/about_lynx.html.gz\000\361\262\367\377\177\000\000(\000\000\000\060\000\000\000\030P\252\367\377\177", '\000' <repeats 11 times>, "\361\332\\\363\033F\353", '\000' <repeats 16 times>, "\300\334\377\377\377\177\000\000H\000\000\000\000\000\000\000\002\241}UUU\000\000\340%\277\367\377\177\000\000\020\336\377\377\377\177\000\000\310?\367\377\177\000\000\370\240}UUU\000\000\377\377\377\377\377\177\000\000h\r\000\000\000\000\000\000\000\000\000\000"...
        temp = <optimized out>
        max_length = <optimized out>
        len = <optimized out>
        i = <optimized out>
        j = <optimized out>
        at_lineno = 50
        k = <optimized out>
        p = <optimized out>
        text_buff = "Getting file://localhost/usr/share/doc/lynx/lynx_help/about_lynx.html.gz\000\034\277\367\377\177\000\000\000\000\000\000\000\000\000\000\065N\363\367\377\177\000\000\070\333\377\377\377\177\000\000\000\361\332\\\363\033F\353\063\000\000\000\000\000\000\000vxiUUU\000\000localhost\000\000\000\000\000\000\000 U\253UUU\000\000`\334\377\377\377\177\000\000`\222pUUU\000\000\213\361\262\367\377\177\000\000\060\000\000\000\060\000\000\000X\334\377\377\377\177\000\000\220\333\377\377\377\177\000\000\000"...
#4  0x00005555555f2fd5 in statusline (text=<optimized out>) at ./src/LYUtils.c:1412
        buffer = <optimized out>
        temp = 0x0
        max_length = <optimized out>
        len = <optimized out>
        i = <optimized out>
        j = <optimized out>
        at_lineno = <optimized out>
        k = <optimized out>
        p = <optimized out>
        text_buff = <optimized out>
        has_CJK = <optimized out>
        y = <optimized out>
        x = <optimized out>
        a = <optimized out>
#5  0x00005555555c7d0b in user_message (message=<optimized out>, argument=argument at entry=0x555555ab9360 "file://localhost/usr/share/doc/lynx/lynx_help/about_lynx.html.gz") at ./src/GridText.c:8750
        temp = 0x5555557e8640 "Getting file://localhost/usr/share/doc/lynx/lynx_help/about_lynx.html.gz"
#6  0x00005555555d8249 in getfile (doc=doc at entry=0x55555574b400 <newdoc>, target=target at entry=0x7fffffffe05c) at ./src/LYGetFile.c:798
        url_type = <optimized out>
        pound = <optimized out>
        cp = <optimized out>
        temp = 0x0
        WWWDoc = {address = 0x555555ab9360 "file://localhost/usr/share/doc/lynx/lynx_help/about_lynx.html.gz", post_data = 0x0, post_content_type = 0x0, bookmark = 0x0, isHEAD = 0 '\000', safe = 0 '\000'}
        Try_Redirected_URL = <optimized out>
#7  0x00005555555e3dae in mainloop () at ./src/LYMainLoop.c:5869
        c = 270
        real_c = 10
        old_c = 0
        pending_form_c = -1
        cmd = 71
        real_cmd = 71
        getresult = <optimized out>
        arrowup = 0
        show_help = 0
        user_input_buffer = 0x555555ab8610
        cshelpfile = 0x0
        first_file = 0 '\000'
        popped_doc = 1 '\001'
        refresh_screen = 0 '\000'
        force_load = 0 '\000'
        try_internal = 0 '\000'
        crawl_ok = 0 '\000'
        vi_keys_flag = <optimized out>
        emacs_keys_flag = <optimized out>
        trace_mode_flag = 0 '\000'
        forced_HTML_mode = 0 '\000'
        cfile = "\210\231yUUU\000\000CJ_U\000\000\000\000\260y\253UUU\000\000\000\216\245\367\377\177\000\000\000\000\000\000\000\000\000\000?~UUU\000\000P\342\377\377\377\177\000\000\200\242~UUU\000\000\340\210yUUU\000\000\222ê\367\377\177\000\000P\342\377\377\377\177", '\000' <repeats 18 times>, "\240\211yUUU\000\000 \000\000\000\000\000\000\000\004\000\000\000\000\000\000"
        cfp = <optimized out>
        cp = 0x5555557feb6d "istinfo/lynx-dev/"
        ch = 0
        recall = NORECALL
        URLTotal = 0
        URLNum = 0
        FirstURLRecall = 1 '\001'
        temp = 0x0
        ForcePush = 0 '\000'
        override_LYresubmit_posts = 0 '\000'
        newdoc_link_is_absolute = 0 '\000'
        curlink_is_editable = <optimized out>
        use_last_tfpos = <optimized out>
        len = <optimized out>
        i = <optimized out>
        follow_col = -1
        key_count = 1
        last_key = 10
        tmpNewline = -1
        tmpDocInfo = <optimized out>
        initialize = <optimized out>
        try_again = <optimized out>
        new_cmd = <optimized out>
#8  0x00005555555af5ba in main (argc=<optimized out>, argv=<optimized out>) at ./src/LYMain.c:2247
        i = 1
        status = 0
        temp = 0x0
        ccp = <optimized out>
        cp = <optimized out>
        fp = <optimized out>
        dir_info = {st_dev = 36, st_ino = 1, st_nlink = 38, st_mode = 17407, st_uid = 0, st_gid = 0, __pad0 = 0, st_rdev = 0, st_size = 1660, st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1658312946, tv_nsec = 859536211}, st_mtim = {tv_sec = 1658328727, tv_nsec = 373463537}, st_ctim = {tv_sec = 1658328727, tv_nsec = 373463537}, __glibc_reserved = {0, 0, 0}}
        filename = "/home/channoti/.lynxsig\000\350\000\000\000\000\000\000\000\017\000\000\000\000\000\000\000\n\000\000\000\000\000\000\000)\000\000\000:\000\000\000\003\000\000\000\000\000\000\000\017\000\000\000\063", '\000' <repeats 27 times>, "[\000\000\000n\000\000\000|\000\000\000w\000\000\000\240[\277\367\377\177\000\000\r\000\000\000\000\000\000\000\350\000\000\000\000\000\000\000\342f\353\367\377\177\000\000\320\344\377\377\377\177\000\000\222ê\367\377\177\000\000\227\344\377\377\377\177\000\000\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\000\334zUUU\000\000\060\000\000\000\000\000\000\000 "...
        LYGetStdinArgs = <optimized out>


More information about the pkg-lynx-maint mailing list