Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

history_get_time #4267

Open
p6rt opened this issue May 26, 2015 · 2 comments
Open

history_get_time #4267

p6rt opened this issue May 26, 2015 · 2 comments
Labels
SEGV Segmentation fault, bus error, etc.

Comments

@p6rt
Copy link

p6rt commented May 26, 2015

Migrated from rt.perl.org#125254 (status was 'new')

Searchable as RT125254$

@p6rt
Copy link
Author

p6rt commented May 26, 2015

From @drforr

The segfault obviously occurs in history_get_time(), but it can't be
invoked consistently. There are other function calls in the 02-base.t
file that segfault, but those are mostly commented out. If someone wants
me to golf this down, let me know, but you should be able to just run
'lives-ok { $r.history_get_time() }'.

I'm attaching the full .pm and .t files, as they're far too large, along
with the backtrace from perl6-gdb-m.
It's likely because I'm not calling a function that sets up
history_get_time(), but apparently this bug needs to be tracked down.

--cut here--
Reading symbols from
/home/jgoff/.rakudobrew/moar-nom/install/bin/moar...(no debugging
symbols found)...done.
Starting program​: /home/jgoff/.rakudobrew/moar-nom/install/bin/moar
--execname=/home/jgoff/.rakudobrew/bin/../moar-nom/install/bin/perl6-gdb-m
--libpath=/home/jgoff/.rakudobrew/moar-nom/install/share/nqp/lib
--libpath=/home/jgoff/.rakudobrew/moar-nom/install/share/perl6/lib
--libpath=/home/jgoff/.rakudobrew/moar-nom/install/share/perl6/runtime
/home/jgoff/.rakudobrew/moar-nom/install/share/perl6/runtime/perl6.moarvm
-Ilib t/02-base.t
[Thread debugging using libthread_db enabled]
Using host libthread_db library
"/lib/x86_64-linux-gnu/libthread_db.so.1".
1..15
  ok 1 - add-history lives
  ok 2 - using-history lives
  ok 3 - history-get-history-state lives
  ok 4 - history-set-history-state lives
  ok 5 - add-history-time lives
  ok 6 -
  ok 7 - free-history-entry lives
  ok 8 - replace-history-entry lives
  ok 9 -
  ok 1 - history-is-stifled lives
  ok 2 - stifle-history lives
  ok 3 - unstifle-history lives
  1..3
  ok 10 - Stifling
  ok 11 - where-history lives
  ok 12 - current-history lives
  ok 13 - history-get lives

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff46ee878 in history_get_time ()
  from /lib/x86_64-linux-gnu/libreadline.so.6
(gdb) bt
#​0 0x00007ffff46ee878 in history_get_time ()
  from /lib/x86_64-linux-gnu/libreadline.so.6
#​1 0x00007ffff79d0054 in dcCall_x64_sysv ()
  from /home/jgoff/.rakudobrew/moar-nom/install/lib/libmoar.so
#​2 0x0000000000603700 in ?? ()
#​3 0x00007fffffffd300 in ?? ()
#​4 0x00007ffff79cff8f in dc_callvm_call_x64 ()
  from /home/jgoff/.rakudobrew/moar-nom/install/lib/libmoar.so
Backtrace stopped​: previous frame inner to this frame (corrupt stack?)
(gdb)

--cut here--

@p6rt
Copy link
Author

p6rt commented May 26, 2015

From @drforr

Readline.pm

@p6rt p6rt added the SEGV Segmentation fault, bus error, etc. label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SEGV Segmentation fault, bus error, etc.
Projects
None yet
Development

No branches or pull requests

1 participant