Re: [April technique] aide au débogage : logged-gcc

2023-03-11 Thread Laurent Lyaudet
Bonjour Basile :)

ça a l'air sympa de pouvoir garder une trace de toutes les
compilations sans erreur.
Je n'ai pas le temps de vous aider, mais merci d'avoir fait la
promotion de votre outil :)

Amicalement,
Laurent Lyaudet

Le ven. 10 mars 2023 à 19:57, Basile Starynkevitch
 a écrit :
>
> Bonsoir,
>
>
> Il est naturel, quand on est fan de logiciel libre et de Debian (ou
> similaire), de compiler du logiciel libre (notamment en C ou C++) à
> partir de son code source, en utilisant (probablement) GCC (voir
> https://gcc.gnu.org/ ...)
>
> Il est alors utile de pouvoir conserver la trace de toutes les
> compilations par GCC.
>
> Aussi ai-je plus ou moins codé, en
> https://github.com/bstarynk/misc-basile/blob/master/logged-gcc.cc un
> utilitaire qui stocke dans une base sqlite les commandes de compilation
> avec leur détail. Ça se compile avec le script
> https://github.com/bstarynk/misc-basile/blob/master/compile-logged-gcc.sh
>
>
> L'utilisation serait de mettre un lien symbolique $HOME/bin/gcc ->
> $HOME/bin/logged-gcc et de même pour $HOME/bin/g++ et d'avoir $HOME/bin/
> dans son $PATH avant /usr/bin/
>
>
> Ensuite il faut initialiser la base SQLite (une seule fois) avec
> $HOME/bin/logged-gcc --sqlite=logged-gcc-db.sqlite
>
>
> Mais il me reste des bogues? Il y a-t-il une bonne âme pour m'aider?
>
>
> (les commentaires sont en anglais)
>
>
> librement
>
> --
> Basile Starynkevitch  
> (only mine opinions / les opinions sont miennes uniquement)
> 92340 Bourg-la-Reine, France
> web page: starynkevitch.net/Basile/ & refpersys.org
>
> --
> Pour connaître la configuration de la liste, gérer votre abonnement à la 
> liste technique et vos informations personnelles :
> https://listes.april.org/wws/info/technique



Re: Unknown Systemd version

2018-04-04 Thread Laurent Lyaudet
2018-04-03 22:14 GMT+02:00 Abdullah Ramazanoglu <ar...@yahoo.com>:
> On Tue, 3 Apr 2018 14:24:54 -0500 David Wright said:
>
>> On Tue 03 Apr 2018 at 19:58:23 (+0200), Laurent Lyaudet wrote:
>>
>>> I don't understand why I have apache2-bin installed but apache is
>>> not there???
>>
>> $ aptitude why apache2-bin
>
> Or, if you have not installed aptitude,
>
> $ apt-cache --installed rdepends apache2-bin
>
> Regards
> --
> Abdullah Ramazanoglu
>
>
Thanks David and Abdullah.
It's good to know that gnome-user-share requires apache2-bin.
I've seen that file sharing on the network is off by default anyway.

Best regards,
   Laurent Lyaudet



Re: Unknown Systemd version

2018-04-03 Thread Laurent Lyaudet
>No, this was an upload to stretch-updates, and it has been announced on
>the list dedicated for such updates:
>
>https://lists.debian.org/debian-stable-announce/2018/03/msg1.html
>
>Cheers,
>   Sven

Thanks Sven.
I didn't knew about this list.
It's good to know that the debian page of a package may not be up to
date and that some updates are announced on another list.
I see two things to enhance :
 - have automatic updates of debian pages of packages according to
current version
 - have a webpage that lists both security updates and SUA (I checked
that the debian-stable-announce doesn't list security updates)

2018-04-02 20:58 GMT+02:00 David Wright <deb...@lionunicorn.co.uk>:
> It might be more pleasant to look at /var/log/apt/history.log rather
> than /var/log/dpkg.log which looks more like debug output than a log.
>
> (Both logs should have been rotated since the above, so .1
> will have been appended to the previous month's filenames.)
>
> Cheers,
> David.
>

Thanks David. The /var/log/apt/history.log is indeed more clearer.

Today I have this:
  Start-Date: 2018-04-03  19:29:28
  Commandline: /usr/bin/unattended-upgrade
  Upgrade: apache2-bin:amd64 (2.4.25-3+deb9u3, 2.4.25-3+deb9u4)
  End-Date: 2018-04-03  19:29:35
but I did not install apache.
I tried this:
  root@Laurent-Portable:/home/laurent# service apache2 stop
  Failed to stop apache2.service: Unit apache2.service not loaded.
  root@Laurent-Portable:/home/laurent# service apache2 start
  Failed to start apache2.service: Unit apache2.service not found.

I don't understand why I have apache2-bin installed but apache is not there???

Thanks, best regards,
   Laurent Lyaudet



Unknown Systemd version

2018-04-02 Thread Laurent Lyaudet
 unpacked systemd:amd64 232-25+deb9u3
2018-03-29 21:54:07 status unpacked systemd:amd64 232-25+deb9u3
2018-03-29 21:54:07 status unpacked systemd:amd64 232-25+deb9u3
2018-03-29 21:54:07 status half-configured systemd:amd64 232-25+deb9u3
2018-03-29 21:54:08 status installed systemd:amd64 232-25+deb9u3
2018-03-29 21:54:08 startup archives unpack
2018-03-29 21:54:08 upgrade systemd-sysv:amd64 232-25+deb9u2 232-25+deb9u3
2018-03-29 21:54:08 status half-configured systemd-sysv:amd64 232-25+deb9u2
2018-03-29 21:54:08 status unpacked systemd-sysv:amd64 232-25+deb9u2
2018-03-29 21:54:08 status half-installed systemd-sysv:amd64 232-25+deb9u2
2018-03-29 21:54:09 status half-installed systemd-sysv:amd64 232-25+deb9u2
2018-03-29 21:54:09 status unpacked systemd-sysv:amd64 232-25+deb9u3
2018-03-29 21:54:09 status unpacked systemd-sysv:amd64 232-25+deb9u3
2018-03-29 21:54:09 startup packages configure
2018-03-29 21:54:09 configure libnss-myhostname:amd64 232-25+deb9u3 
2018-03-29 21:54:09 status unpacked libnss-myhostname:amd64 232-25+deb9u3
2018-03-29 21:54:09 status half-configured libnss-myhostname:amd64
232-25+deb9u3
2018-03-29 21:54:09 status installed libnss-myhostname:amd64 232-25+deb9u3
2018-03-29 21:54:09 configure systemd-sysv:amd64 232-25+deb9u3 
2018-03-29 21:54:09 status unpacked systemd-sysv:amd64 232-25+deb9u3
2018-03-29 21:54:09 status half-configured systemd-sysv:amd64 232-25+deb9u3
2018-03-29 21:54:09 status installed systemd-sysv:amd64 232-25+deb9u3
2018-03-29 21:54:09 trigproc libc-bin:amd64 2.24-11+deb9u3 
2018-03-29 21:54:09 status half-configured libc-bin:amd64 2.24-11+deb9u3
2018-03-29 21:54:10 status installed libc-bin:amd64 2.24-11+deb9u3
2018-03-29 21:54:10 configure udev:amd64 232-25+deb9u3 
2018-03-29 21:54:10 status unpacked udev:amd64 232-25+deb9u3
2018-03-29 21:54:10 status unpacked udev:amd64 232-25+deb9u3
2018-03-29 21:54:10 status unpacked udev:amd64 232-25+deb9u3
2018-03-29 21:54:10 status unpacked udev:amd64 232-25+deb9u3
2018-03-29 21:54:10 status unpacked udev:amd64 232-25+deb9u3
2018-03-29 21:54:10 status unpacked udev:amd64 232-25+deb9u3
2018-03-29 21:54:10 status half-configured udev:amd64 232-25+deb9u3
2018-03-29 21:54:11 status installed udev:amd64 232-25+deb9u3
2018-03-29 21:54:11 status triggers-pending initramfs-tools:all 0.130
2018-03-29 21:54:11 trigproc man-db:amd64 2.7.6.1-2 
2018-03-29 21:54:11 status half-configured man-db:amd64 2.7.6.1-2
2018-03-29 21:54:12 status installed man-db:amd64 2.7.6.1-2
2018-03-29 21:54:12 trigproc dbus:amd64 1.10.26-0+deb9u1 
2018-03-29 21:54:12 status half-configured dbus:amd64 1.10.26-0+deb9u1
2018-03-29 21:54:12 status installed dbus:amd64 1.10.26-0+deb9u1
2018-03-29 21:54:12 configure libpam-systemd:amd64 232-25+deb9u3 
2018-03-29 21:54:12 status unpacked libpam-systemd:amd64 232-25+deb9u3
2018-03-29 21:54:12 status half-configured libpam-systemd:amd64
232-25+deb9u3
2018-03-29 21:54:13 status installed libpam-systemd:amd64 232-25+deb9u3
2018-03-29 21:54:13 trigproc initramfs-tools:all 0.130 
2018-03-29 21:54:13 status half-configured initramfs-tools:all 0.130
2018-03-29 21:54:24 status installed initramfs-tools:all 0.130

I checked that there was no security update for Systemd.
Moreover, if I look at one package in particular, let's say libsystemd0,
the update log says it is now deb9u3 version but the debian package page
says it is still deb9u2.
https://packages.debian.org/search?keywords=libsystemd0=names=stretch=all

Today I reinstalled Debian from scratch on my laptop using my net install
CD.
It installed again libsystemd deb9u3, etc.
2018-04-02 15:19:10 upgrade libsystemd0:amd64 232-25+deb9u1 232-25+deb9u3

What is this update that is referenced nowhere ? hacking ?

Thanks, best regards,
   Laurent Lyaudet


Re: Re: Reproducible bug

2017-11-18 Thread Laurent Lyaudet
Hello,

It seems my previous email below did not made it to the debian-user ml.
Maybe it is because of the attachments.
I have lost a few hours today googling for the errors without finding
interesting ressource.
In particular, I searched for the error :
  (EE) Failed to load module "nv" (module does not exist, 0)
It should be debian related and not gnome related. Am I right ?
I tried several grep commands like :
  grep -rw 'nv' /etc
but I can't find any config file asking for loading nv driver.
I searched also in /usr/lib/X11, /usr/lib/xorg and
/usr/lib/xserver-xorg-video-intel
I am totally lost and I haven't found any methodology to find the
information I seek.
To my humble knowledge, configuration should be in /etc and there
should be some configuration file asking for loading nv module ?

Best regards,
   Laurent Lyaudet


2017-11-15 20:59 GMT+01:00 Laurent Lyaudet <laurent.lyau...@gmail.com>:
> Hello,
>
> Thanks for the hints for where to search.
> I found a related file with less than 5 minutes old modification :
> .local/share/xorg/Xorg.0.log
> I attached it under the name Xorg.log
>
> I also tried the command with journalctl (journalctl -u
> session-${XDG_SESSION_ID}.scope)
> The result is in the file extractJournalCtl.txt.
> (I've seen "Avoid sending large attachments." here :
> https://www.debian.org/MailingLists/ .
> I hope 100ko attachment is not too large for a ml.
> ~/.cache/gdm/session.log was inexistant
> )
>
> What I saw in the files is the error
> (EE) Failed to load module "nv" (module does not exist, 0)
> and also gnome-shell errors and a lot of warnings.
> I will google for these errors and warnings.
>
>>Someone mentioned network timeouts. Does this button/menu/whatever
>>do anything involving the network which could be stalled while
>>DHCP is doing its dirty work.
> I don't think so but I may be wrong.
> For me it just permits to choose an application to launch or search
> something on your computer or maybe using also online ressources.
> I don't see the network involved when you click. It could be involved
> after when you enter something in the search input but maybe there is
> some search init involving network before you enter anything.
> Moreover, if I hit super/windows/apple key it works instantly and
> after that it works normally.
>
> I will continue to track down this bug on gnome ml as David suggested.
> I'll send an email to debian-user when I will have a solution.
>
> Thanks for the help, best regards,
>Laurent Lyaudet



Re: Re: Reproducible bug

2017-11-12 Thread Laurent Lyaudet
Hello,

Well, find behavior and hidden files was not the intended topic of this
thread ;)
I do already know about Ctrl+H, ls -a, etc.
And indeed my find command is incorrect since I forgot the dot or some
wildcard at the beginning.
After correction, I can say there is no .xsession-errors file on my system.
The only matches were
/usr/share/xsessions
/etc/X11/Xsession.d/40x11-common_xsessionrc

So yes, it may be strange if usually there is plenty of X session errors.

After googling, I looked at /var/log/messages with a lot of, well, messages
that I didn't found interesting and related to my problem.
I also looked at /var/log/gdm3/ but it was empty.

Regarding the boot errors, I have plenty of them as with any laptop I've
seen running with Linux since laptops tend to have weird hardware.
However, despite the same boot errors since I installed Debian on this
laptop, the bug I'm talking in this thread was not present until a few
weeks ago.

I also forgot to say that soon after the bug started I found that hitting
the super/windows/apple key works despite the click not working.
And I already know some people out there will say "problem solved, he can
put up with the bug".

Best regards,
   Laurent Lyaudet


2017-11-12 17:32 GMT+01:00 Laurent Lyaudet <laurent.lyau...@gmail.com>:

> Hello,
>
> Thanks for your feedback.
>
> Laurent Lyaudet wrote:
>
> >> >> My install is up-to-date with latest security updates (that's the
> >> >> first thing I do anytime I start my laptop).
> deloptes wrote:
> > There is a rule: "never touch a running system" which means if something
> > works let it work. through your process you are exposed to bugs without a
> > way back. this is just an advise to review the process
>
> I think this is a very bad advice.
> You should always be uptodate with security updates since there is plenty of 
> people ready to exploit already corrected security issues.
>
> The people that correct these security issues do this hard work for a reason.
>
> Never let your system stay insecure or say people to do so, unless you want 
> them to be screwed by perverts behind a computer.
>
> > I don't use Gnome, because gtk with the concept behind caused a lot of
> > trouble long time ago and could not convince me that it will ever get
> > better so I can't help much. But ... there should be logging facility and
> > you need perhaps to enable something somewhere to see where it is coming
> > from or what is happening when the problem appears.
>
> > I usually look first in ~/.xsession-errors
>
> > someone else perhaps could help on where and how to debug gtk/gnome
>
> Thanks for this indication. I found no such file with :
>
> find / -name 'xsession*'
>
> I will google for gnome error logging.
>
>
> Best regards,
>
>Laurent Lyaudet
>
>
>
> 2017-11-10 21:47 GMT+01:00 Laurent Lyaudet <laurent.lyau...@gmail.com>:
>
>> Hi,
>>
>> Thanks for the response.
>> I did not install any gnome extension or tweaking tools for gnome.
>> So I'm afraid the cause is somewhere else.
>> Note that if it's a malware, I'm glad you cannot reproduce the bug ;)
>>
>> Best regards,
>>Laurent Lyaudet
>>
>>
>>
>>
>> 2017-11-10 21:22 GMT+01:00 RRRoy BBBean <rrroybbb...@gmail.com>:
>>
>>> On Fri, 2017-11-10 at 20:26 +0100, Laurent Lyaudet wrote:
>>> > Hello Roberto,
>>> > As you suggested, I took my laptop at work and tested with the wifi
>>> > there.
>>> > I reproduced the bug also there.
>>> > I don't know if I can reproduce it with any wifi network but at least
>>> > it is
>>> > not particular to my home network only.
>>> >
>>> I tried this on my computer. I cannot reproduce the error.
>>>
>>> Last year I was working a lot with Gnome3 on Fedora24. I was installing
>>> and trying out lots of cool Gnome Shell Extension. After a few days, I
>>> noticed that various Gnome-related things started acting crazy or not
>>> working at all. I deinstalled most of these additional extensions, and
>>> now (on both Fedora and Debian) I stick with the default Gnome Shell
>>> Extensions plus a small number of additional extensions that I can't
>>> live without.
>>>
>>> Let me suggest that if you have installed additional Gnome Shell
>>> Extensions on top of the defaults, you remove them and see if the
>>> problem goes away. You will probably need to restart your laptop to be
>>> sure you get a clean load of Gnome.
>>>
>>>
>>
>


Re: Re: Reproducible bug

2017-11-12 Thread Laurent Lyaudet
Hello,

Thanks for your feedback.

Laurent Lyaudet wrote:

>> >> My install is up-to-date with latest security updates (that's the
>> >> first thing I do anytime I start my laptop).
deloptes wrote:
> There is a rule: "never touch a running system" which means if something
> works let it work. through your process you are exposed to bugs without a
> way back. this is just an advise to review the process

I think this is a very bad advice.
You should always be uptodate with security updates since there is
plenty of people ready to exploit already corrected security issues.

The people that correct these security issues do this hard work for a reason.

Never let your system stay insecure or say people to do so, unless you
want them to be screwed by perverts behind a computer.

> I don't use Gnome, because gtk with the concept behind caused a lot of
> trouble long time ago and could not convince me that it will ever get
> better so I can't help much. But ... there should be logging facility and
> you need perhaps to enable something somewhere to see where it is coming
> from or what is happening when the problem appears.

> I usually look first in ~/.xsession-errors

> someone else perhaps could help on where and how to debug gtk/gnome

Thanks for this indication. I found no such file with :

find / -name 'xsession*'

I will google for gnome error logging.


Best regards,

   Laurent Lyaudet



2017-11-10 21:47 GMT+01:00 Laurent Lyaudet <laurent.lyau...@gmail.com>:

> Hi,
>
> Thanks for the response.
> I did not install any gnome extension or tweaking tools for gnome.
> So I'm afraid the cause is somewhere else.
> Note that if it's a malware, I'm glad you cannot reproduce the bug ;)
>
> Best regards,
>Laurent Lyaudet
>
>
>
>
> 2017-11-10 21:22 GMT+01:00 RRRoy BBBean <rrroybbb...@gmail.com>:
>
>> On Fri, 2017-11-10 at 20:26 +0100, Laurent Lyaudet wrote:
>> > Hello Roberto,
>> > As you suggested, I took my laptop at work and tested with the wifi
>> > there.
>> > I reproduced the bug also there.
>> > I don't know if I can reproduce it with any wifi network but at least
>> > it is
>> > not particular to my home network only.
>> >
>> I tried this on my computer. I cannot reproduce the error.
>>
>> Last year I was working a lot with Gnome3 on Fedora24. I was installing
>> and trying out lots of cool Gnome Shell Extension. After a few days, I
>> noticed that various Gnome-related things started acting crazy or not
>> working at all. I deinstalled most of these additional extensions, and
>> now (on both Fedora and Debian) I stick with the default Gnome Shell
>> Extensions plus a small number of additional extensions that I can't
>> live without.
>>
>> Let me suggest that if you have installed additional Gnome Shell
>> Extensions on top of the defaults, you remove them and see if the
>> problem goes away. You will probably need to restart your laptop to be
>> sure you get a clean load of Gnome.
>>
>>
>


Online list of messages to debian-user is down ?

2017-11-11 Thread Laurent Lyaudet
Hello,

When I go to :
  https://lists.debian.org/debian-user/2017/11/threads.html
there is this message at the end of the webpage :
  "The last update was on 23:20 GMT Thu Nov 09. There are 348 messages.
Page 1 of 1."
It used to be refreshed every 20 minutes but it doesn't seem to work
anymore.
I tried Ctrl+F5 in Firefox and tried another laptop but it changed nothing.

Best regards,
   Laurent Lyaudet


Re: Re: Reproducible bug

2017-11-10 Thread Laurent Lyaudet
2017-11-09 20:03 GMT+01:00 Laurent Lyaudet <laurent.lyau...@gmail.com>:

> >On Wed, Nov 08, 2017 at 08:19:11PM +0100, Laurent Lyaudet wrote:
> >>Hello,
> >>
> >>I found a reproducible bug in latest stable Debian on my laptop.
> >>My install is up-to-date with latest security updates (that's the first
> >>thing I do anytime I start my laptop).
> >>I'm using Gnome.
> >>Steps to reproduce on my laptop:
> >> - activate the wifi with upper right screen controls
> >> - repeatedly click on "Activities" in the upper left corner to show the
> >>quick launch bar and click below to hide it. After a few seconds after 
> >> the
> >>network connection is set, the click on Activities no longer works. 
> >> After
> >>one minute, it starts working again.
> >>
> >>Note that if I don't activate the wifi, then I can repeatedly click on
> >>"Activities" without triggering the bug.
> >
> >This sounds like some sort of network-related time out.  Do you have
> >LDAP authentication, Kerberos, Samba, NFS automounts, etc.?  Does it
>   >the network's DHCP server or an override configuration you are using?
>
> Hello Roberto,
>
> Thanks for the response.
>
> I have nothing of LDAP authentication, Kerberos, Samba, NFS, etc.
>
> I'm using my laptop only at home with the box of my ISP.
>
> I changed nothing with the box for years.
> When I fresh installed Debian Stretch, the only thing I did was choosing the 
> wifi of my box with gnome interface and entering the password for it.
>
> Hence I assume it is using DHCP.
>
> I have no override configuration or anything complicated.
>
> Basically, I just use Firefox with my laptop. Sometimes I code C or PHP stuff 
> or compile latex file but that's it.
>
> I will take my laptop at work, tomorrow, and try to connect to the wifi 
> network there if you think it might help finding the cause.
>
> Thanks, best regards,
>
>Laurent
>
>
Hello Roberto,

As you suggested, I took my laptop at work and tested with the wifi there.
I reproduced the bug also there.
I don't know if I can reproduce it with any wifi network but at least it is
not particular to my home network only.

Let me know what I can do next to find the cause of the bug.

Thanks, best regards,
Laurent


Re: Reproducible bug

2017-11-09 Thread Laurent Lyaudet
>On Wed, Nov 08, 2017 at 08:19:11PM +0100, Laurent Lyaudet wrote:
>>Hello,
>>
>>I found a reproducible bug in latest stable Debian on my laptop.
>>My install is up-to-date with latest security updates (that's the first
>>thing I do anytime I start my laptop).
>>I'm using Gnome.
>>Steps to reproduce on my laptop:
>> - activate the wifi with upper right screen controls
>> - repeatedly click on "Activities" in the upper left corner to show the
>>quick launch bar and click below to hide it. After a few seconds after the
>>network connection is set, the click on Activities no longer works. After
>>one minute, it starts working again.
>>
>>Note that if I don't activate the wifi, then I can repeatedly click on
>>"Activities" without triggering the bug.
>
>This sounds like some sort of network-related time out.  Do you have
>LDAP authentication, Kerberos, Samba, NFS automounts, etc.?  Does it
the network's DHCP server or an override configuration you are using?

Hello Roberto,

Thanks for the response.

I have nothing of LDAP authentication, Kerberos, Samba, NFS, etc.

I'm using my laptop only at home with the box of my ISP.

I changed nothing with the box for years.
When I fresh installed Debian Stretch, the only thing I did was
choosing the wifi of my box with gnome interface and entering the
password for it.

Hence I assume it is using DHCP.

I have no override configuration or anything complicated.

Basically, I just use Firefox with my laptop. Sometimes I code C or
PHP stuff or compile latex file but that's it.

I will take my laptop at work, tomorrow, and try to connect to the
wifi network there if you think it might help finding the cause.

Thanks, best regards,

   Laurent


Reproducible bug

2017-11-08 Thread Laurent Lyaudet
Hello,

I found a reproducible bug in latest stable Debian on my laptop.
My install is up-to-date with latest security updates (that's the first
thing I do anytime I start my laptop).
I'm using Gnome.

Steps to reproduce on my laptop:
 - activate the wifi with upper right screen controls
 - repeatedly click on "Activities" in the upper left corner to show the
quick launch bar and click below to hide it. After a few seconds after the
network connection is set, the click on Activities no longer works. After
one minute, it starts working again.

Note that if I don't activate the wifi, then I can repeatedly click on
"Activities" without triggering the bug.

When I first installed the latest stable Debian on my laptop, I did not
encounter this bug.
I suppose it is a bug with Gnome but I'm not sure, that's why I'm here.
I wonder why it started happening a few weeks ago.
I think there was the update to X and I also had a crash of Firefox at its
startup because of some recently opened webpage.
Hence I don't know if it's a regression or a malware that causes this. (Yes
I'm a bit paranoïd but unfortunately, when I was using Ubuntu, before I
switched back to Debian, I have been hacked and lost some files :( .)

Thank you for the help, best regards,
   Laurent Lyaudet