Ticket #1797 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

parrot --gc-threshold coredumps when given no threshold

Reported by: dukeleto Owned by:
Priority: normal Milestone:
Component: none Version: 2.8.0
Severity: medium Keywords:
Cc: Language:
Patch status: Platform:

Description

If no GC threshold is given, we get a coredump:

Core was generated by `./parrot --gc-threshold'.
Program terminated with signal 11, Segmentation fault.
#0  is_all_digits (argc=2, argv=0xbf97d694) at src/main.c:184
184	    for (; *s; ++s)
(gdb) bt
#0  is_all_digits (argc=2, argv=0xbf97d694) at src/main.c:184
#1  parseflags_minimal (argc=2, argv=0xbf97d694) at src/main.c:408
#2  main (argc=2, argv=0xbf97d694) at src/main.c:141
(gdb) 

This seems to be because is_all_digits doesn't like being passed a null string.

Change History

Changed 4 years ago by dukeleto

  • version changed from 2.7.0 to 2.8.0

Changed 4 years ago by chromatic

  • status changed from new to closed
  • resolution set to fixed

Fixed in r49246. See also TT #1150.

Note: See TracTickets for help on using tickets.