SliTaz SliTaz Forum

You are not logged in.

#1 2022-04-03 21:29:33

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

ncurses broken?

Hello,

I installed the lynx text browser but when I launch it it returns a message:

[c]lynx[3409]: segfault at 15 ip b7708635 sp bfff96f0 error 4 in libncurses.so.6.2[b76fe000+14000]

Segmentation fault[/c]

That seems to me to be a problem with ncurses.

I re-cooked ncurses, libtic and even libtinfo, libform, libmenu and libpanel.

I also tried ncurses 6.3, lynx 2.9.0dev.9 (that runs fine in another distro). Always the segfault...

Yet, retawq that has the same deps as lynx runs without any problem.

Any ideas from where can come this issue?

Offline

#2 2022-04-04 15:29:12

HGT
Administrator
From: Germany
Registered: 2016-03-25
Posts: 170

Re: ncurses broken?

More curious:

Same problem on one SliTaz whereas lynx-2.8.9rel1 works properly

on another SliTaz.

On both systems,

lynx, ncurses, ncurses-common, libtic, libtinfo and zlib are

installed with the same version (but probably from another

compilation).

The SliTaz where lynx works properly is installed on disk and

was updated on 2022-03-25.

The SliTaz where lynx crashes is a live system from 2022-01-21.

A similar problem occurs with other programs that use ncurses,

vbindiff for example.

I too hope that someone finds the reason.

Offline

#3 2022-04-05 13:27:15

bellard
Administrator
Registered: 2011-03-28
Posts: 657

Re: ncurses broken?

Every package that needs ncurses-dev or ncursesw-dev to build has just been recooked (2022-04-05).

Offline

#4 2022-04-05 16:24:47

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: ncurses broken?

@ HGT

Thank you for the interest you brougt at this problem.

Still more curious, but maybe a hint?

I did some tests with several ISOs and no one has the problem... excepted when I boot base???

justX Gtk+ and Core works perfectly.

Something wrong with rootfs4.gz?

@ Pascal Bellard

Thank you very much. I'm going to do tests with the new builds as soon as possible.

Offline

#5 2022-04-05 20:54:03

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: ncurses broken?

I think I made a mistake.

It seems that lynx can run only from a terminal emulator with a X environment and not in a console.

Am I wrong?

Offline

#6 2022-04-06 09:12:34

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: ncurses broken?

It is not clear how to replicate the problem. With this way of defining rolling an iso that in fact always shows 5.0 (even if declared cooking) doesn't help for sure.

I've tried on my own lynx installation and it fails, while on the live one it works...

Lynx recompiled from the sources works also on the first one installed.

If you want me to try it indicate with links which iso should be downloaded to test without further updates.

Non si capisce come replicare il problema. Con questo modo di definire rolling una iso che di fatto riporta sempre e comunque 5.0 (anche se dichiarata cooking) non aiuta di sicuro.

Ho provato su di una mia un'installazione lynx fallisce, mentre sulla live funziona...

Lynx ricompilato dai sorgenti funziona anche su quella di prima installata.

Se volete che ci provi indicate con dei link quali iso vanno scaricate per testare senza ulteriori aggiornamenti.

Offline

#7 2022-04-06 15:17:26

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: ncurses broken?

Live mode:

tazpkg -gi lynx

lynx

Errore di segmentazione

cat /etc/slitaz-version

SliTaz GNU/Linux - 5.0-RC4 20220403

tazpkg -gi slitaz-toolchain

tazpkg -gi ncursesw-dev

tazpkg -gi bash

tazpkg -gi openssl-dev

get source of lynx and compile

https://www.linuxfromscratch.org/blfs/view/git/basicnet/lynx.html

install and then

lynx

LYNX - The Text Web-Browser (p1 of 2)

     __________________________________________________________________

   http://lynx.invisible-island.net/

   Copyright M-) 1997-2017,2018 by Thomas E. Dickey

     __________________________________________________________________

     * (home page)

     * Current development

     * Stable release

     * Resources

                          LYNX - The Text Web-Browser

   Lynx is the text web browser.

   This is the toplevel page for the Lynx software distribution site.

   The current development sources have the latest version of Lynx

   available (development towards 2.9.0).

   The main help page for lynx-current is online; the current User Guide

-- press space for next page --

  Arrow keys: Up and Down to move.  Right to follow a link; Left to go back.

H)elp O)ptions P)rint G)o M)ain screen Q)uit /=search [delete]=history list

Offline

#8 2022-04-06 22:17:03

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: ncurses broken?

Grazie mille gibor!

Mi hai dato la soluzione: SliTaz usa [c]ncurses[/c]; LFS invece usa [c]ncursesw[/c][c].

lynx compilato con la dependenza (?) ncursesw-dev e l'opzione [/c][c]--with-screen=ncursesw[/c] funziona buonissimo. Aggiungo la ricetta modificata al post.

Per rispondere alla tua questione a proposito del(la?) ISO slitaz-rolling.iso è la sapore 4-in-1 della settimana. Puoi avviare [c]base[/c] (console solamente, rootfs4.gz) o [c]justX[/c] (rootfs4.gz è rootfs3.gz) o [c]Gtk+[/c] (rootfs4.gz, rootfs3.gz è rootfs2.gz) o [c]Core[/c] (rootfs4.gz, rootfs3.gz, rootfs2.gz è rootfs1.gz).

Ancora grazie. Bisognavo davvero un leggero web browser per la console.

E come non sono sicuro che il mio italiano è buono, preferisco aggiungere la traduzione in inglese wink

Thank you very much gibor!

You gave mi the solutio: Slitaz uses [c]ncurses[/c]; LFS uses [c]ncursesw[/c][c].

lynx compiled with ncursesw-dev as build dependence and the option [/c][c]--with-screen=ncursesw[/c] works fine. I join the modified receipt at this post.

To answer to your question concerning the ISO slitaz-rolling.iso is the flavor 4-in-1 of the week. You can boot [c]base[/c] (console only, rootfs4.gz) or [c]justX[/c] (rootfs4.gz and rootfs3.gz) or [c]Gtk+[/c] (rootfs4.gz, rootfs3.gz and rootfs2.gz) or [c]Core[/c] (rootfs4.gz, rootfs3.gz, rootfs2.gz and rootfs1.gz).

Thank you again. I really needed of a light weight web broser in console mode.

Hmm, maybe my english is not better than my italian...

Offline

#9 2022-04-07 06:20:30

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: ncurses broken?

Di niente, meglio così che hai trovato la soluzione.

Il tuo Italiano è comprensibilissimo, a differenza del mio Francese scolastico, o peggio ancora del mio Inglese maccaronico (Toto dixit).

Alla prossima ;-)

Not at all, better that way you found the solution.

Your Italian is very comprehensible, unlike my school French, or even worse, my macaronic English (Toto dixit).

See you next time ;-)

Offline

#10 2022-04-07 07:31:15

bellard
Administrator
Registered: 2011-03-28
Posts: 657

Re: ncurses broken?

Pushed https://hg.slitaz.org/wok/rev/617f7ee416b1

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.016 seconds, 7 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]