On Aug 30, Ingo Jürgensmann <i...@2017.bluespice.org> wrote:

> When commenting this out, ifcico is working as expected. As this is not an 
> easy to find error, I’d like to recommend to change the default config 
> accordingly. 
It segfaults in the parser, but I know nothing about flex so I cannot 
fix it.
I suppose that something changed in flex long ago and broke this ancient 
code.

Program received signal SIGSEGV, Segmentation fault.
0x000055555555de4f in yylex () at lex.yy.c:813
813                     *yy_cp = (yy_hold_char);
(gdb) where
#0  0x000055555555de4f in yylex () at lex.yy.c:813
#1  0x000055555555d40a in yyparse () at y.tab.c:1218
#2  0x00005555555605f2 in flagexp (expr=0x5555555b34e0 "time Any0000-2359", 
    nl=0x5555555a3360 <nodebuf>) at flagexp.y:128
#3  0x0000555555561a47 in get_modem_string (ms=0x5555555b34c0, 
    nlent=0x5555555a3360 <nodebuf>) at modemstr.c:11
#4  0x0000555555573844 in rdoptions (nlent=0x5555555a3360 <nodebuf>)
    at rdoptions.c:44
#5  0x00005555555618c8 in answer (stype=0x0) at answer.c:39
#6  0x000055555555c289 in main (argc=3, argv=0x7fffffffdf98, 
    envp=0x7fffffffdfb8) at ifcico.c:258

(gdb) frame 2

(gdb) p *nl
$5 = {addr = {name = 0x0, point = 0, node = 0, net = 0, zone = 0, 
    domain = 0x0}, hub = 0, type = 0 '\000', pflag = 4 '\004', 
  name = 0x5555555905ce "Unknown", location = 0x5555555905d6 "Nowhere", 
  sysop = 0x5555555905de "Sysop", phone = 0x0, speed = 2400, flags = 0, 
  uflags = {0x0 <repeats 16 times>}}

(gdb) p expr
$7 = 0x5555555b34e0 "time Any0000-2359"

-- 
ciao,
Marco

Attachment: signature.asc
Description: PGP signature

Reply via email to