Mailing list archives : pcb-rnd

ID:5836
From:rn...@igor2.repo.hu
Date:Sat, 3 Sep 2022 09:34:03 +0200 (CEST)
Subject:Re: [pcb-rnd] sch-rnd bug: can't open file from gui (was: new:
in-reply-to:5834 from Doug Knabe <dk...@airmail.net>
replies: 5839 from Doug Knabe <dk...@airmail.net>
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
 
--722076672-45546322-1662190443=:25839
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8BIT
 
Hello Doug,
 
On Fri, 2 Sep 2022, Doug Knabe wrote:
 
> $ gdb sch-rnd
> GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git
> <snip>
> Reading symbols from sch-rnd...
> (gdb) r
> Starting program: /usr/local/bin/sch-rnd
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> Gtk-Message: 12:57:35.866: Failed to load module "canberra-gtk-module"
> [New Thread 0x7fffec845700 (LWP 124806)]
> [New Thread 0x7fffe4044700 (LWP 124807)]
> [New Thread 0x7fffe7fff700 (LWP 124808)]
> [New Thread 0x7fffe77fe700 (LWP 124809)]
>
> Thread 1 "sch-rnd" received signal SIGSEGV, Segmentation fault.
> __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:65
> 65    ../sysdeps/x86_64/multiarch/strlen-avx2.S: No such file or directory.
> (gdb) frame 4
> #4  0x000055555559aaa3 in status_st_sch2dlg () at ../plugins/gui/status.c:114
> 114        rnd_append_printf(&status.buf, "grid=%ld%s line=%s%s kbd=%s",
> (gdb) print grid
> $1 = 140737352474848
> (gdb) print gridsuff
> $2 = 0x5 <error: Cannot access memory at address 0x5>
> (gdb) print cnt
> $3 = 0x55555565a085 "C,"
> (gdb) print refr
> $4 = 0x55555565a08b "_|"
> (gdb) print kbd
> $5 = "(last: f o)", '\000' <repeats 93 times>,
> "\370\322\317\367\377\177\000\000?nUUU\000\000\060mlUUU\000"
 
Thank you!
 
This shows gridsuff is wrong. This is exactly the bug I fixed a few days 
ago. I've looked at the code again but can't see a way the new code would 
fail the way your gdb shows.
 
Are you sure you are running svn HEAD? Did you run svn up before 
compiling? Please run this in sch-rnd trunk/src/plugins/gui:
 
svn info status.c
 
TIA,
 
Igor2
 
--722076672-45546322-1662190443=:25839--
 

Reply subtree:
5836 Re: [pcb-rnd] sch-rnd bug: can't open file from gui (was: new: from rn...@igor2.repo.hu
  5839 Re: [pcb-rnd] sch-rnd bug: can't open file from gui (was: new: from Doug Knabe <dk...@airmail.net>
    5840 Re: [pcb-rnd] sch-rnd bug: can't open file from gui (was: new: from rn...@igor2.repo.hu
    5841 Re: [pcb-rnd] sch-rnd bug: can't open file from gui (was: new: from Doug Knabe <dk...@airmail.net>
      5842 Re: [pcb-rnd] sch-rnd bug: can't open file from gui (was: new: from rn...@igor2.repo.hu