# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #112376]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=112376 >


<felher> Hey folks: I have a segfault on my machine when doing 'echo
-e "~Date.new\n" | nom' with latest nom. Is that known? (the same
happens if i type it directly into the repl, fwiw)
<[Coke]> nom: ~Date.new
<p6eval> rakudo 3bd91f: OUTPUT«Cannot unbox a type object as a native int [...]
* moritz doesn't get a segfault either
* felher gets a segfault in the nom repl if he types "~Date.new\n^D"
<felher> strange :)
<gfldex> no segfault here on cygwin
<jnthn> Can one of you that segfautls possibly gdb/bt it?
<moritz> oh right, I get one at REPL exit too
<jnthn> REPL...exit?!
<moritz> aye
<moritz> in nqp_op_info_table
<moritz> jnthn: https://gist.github.com/2351524
<[Coke]> some non sixian return value?
<moritz> I wonder if Date.new() should the same as Date.today()
<moritz> or if it should die with "Which date do you want?"

*bikeshedding*

<moritz> always the next Christmas :-)
<brrt> +1 for next christmas
<flussence> next christmas, unless the VM's version is >= 6.0, in
which case return last christmas :)
<masak> "Last Christmas, I gave you Perl 6..."
<jnthn> "...and the very next day, you segfaulted it..."
<[Coke]> mmhehehe.
<fsergot> :D
<[Coke]> nice little Wham! reference.
<masak> confirm segfault on Rakudo HEAD with '~Date.new' on REPL
followed by Ctrl+D.
* masak submits rakudobug
<moritz> masak: HEAD~1
<moritz> masak: b8fdbeaa avoids the segfault, but it's no real fix
<masak> moritz: ok, that goes in the ticket as well.
<masak> moritz: do you know a way to cause the segfault after that
commit went in?
<moritz> masak: no :/
<moritz> except by reverting it
<masak> moritz: any guess at the underlying cause?
<moritz> "programming error"
<masak> I'd be thankful if someone could extract Date from src/core of
HEAD~1, reproduce the error, and golf it down to something minimal.
<masak> my bet is it involves native attributes somehow.
<masak> this is your chance to catch a segfault!

Reply via email to