From: Pascal J.B. <pj...@in...> - 2004-12-12 04:03:28
|
Pascal J.Bourguignon writes: > > I have been working for two weeks with 64-bit integers (ie. bignums), > and suddenly, nothing works any more: I only get: > *** - Lisp stack overflow. RESET Any advice on how to debug lisp.run with gdb? I tried to compile with CC="gcc -g" and I get a /local/languages/clisp-debug/lib/clisp/base/lisp.run: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped but in gdb I don't get any symbol and the backtrace of the C stack doesn't show any function name but the bottom: #24836 0x4009f857 in round_and_return () from /lib/libc.so.6 Anyway, massaging the backtrace given by gdb and the symbol table dumped with nm I get this bottom of stack (with a couple of periods): 24557 080596C5 in eval_fsubr + 181 24558 080594B7 in eval1 + 455 24559 080591B2 in eval + 386 24560 08056107 in eval_5env + 119 24561 08056139 in eval_noenv + 41 24562 08067B2D in C_eval + 29 24563 0805E9DC in interpret_bytecode_ + 3916 24564 0805D5BB in funcall_closure + 427 24565 0805EC67 in interpret_bytecode_ + 4567 24566 0805D5BB in funcall_closure + 427 24567 080604CC in interpret_bytecode_ + 10812 24568 0805D5BB in funcall_closure + 427 24569 0805E932 in interpret_bytecode_ + 3746 24570 0805D5BB in funcall_closure + 427 24571 0805C02E in apply_subr + 2254 24572 08061E9B in interpret_bytecode_ + 17419 24573 0805C3AC in apply_closure + 860 24574 08061EE8 in interpret_bytecode_ + 17496 24575 0805C3AC in apply_closure + 860 24576 08061E9B in interpret_bytecode_ + 17419 24577 0805C3AC in apply_closure + 860 24578 08061EE8 in interpret_bytecode_ + 17496 24579 0805C3AC in apply_closure + 860 24580 08061EE8 in interpret_bytecode_ + 17496 24581 0805D5BB in funcall_closure + 427 24582 080CFC73 in end_error + 419 24583 080CFDFE in fehler + 62 24584 0805F966 in interpret_bytecode_ + 7894 24585 0805D5BB in funcall_closure + 427 24586 0805E89E in interpret_bytecode_ + 3598 24587 0805D5BB in funcall_closure + 427 24588 080639C0 in compile_eval_form + 48 24589 080640DC in C_let + 316 24590 080596C5 in eval_fsubr + 181 24591 080594B7 in eval1 + 455 24592 080591B2 in eval + 386 24593 08056107 in eval_5env + 119 24594 08056139 in eval_noenv + 41 24595 08067B2D in C_eval + 29 24596 0805E9DC in interpret_bytecode_ + 3916 24597 0805D5BB in funcall_closure + 427 24598 0805EC67 in interpret_bytecode_ + 4567 24599 0805D5BB in funcall_closure + 427 24600 080604CC in interpret_bytecode_ + 10812 24601 0805D5BB in funcall_closure + 427 24602 0805E932 in interpret_bytecode_ + 3746 24603 0805D5BB in funcall_closure + 427 24604 0805C02E in apply_subr + 2254 24605 08061E9B in interpret_bytecode_ + 17419 24606 0805C3AC in apply_closure + 860 24607 08061EE8 in interpret_bytecode_ + 17496 24608 0805C3AC in apply_closure + 860 24609 08061E9B in interpret_bytecode_ + 17419 24610 0805C3AC in apply_closure + 860 24611 08061EE8 in interpret_bytecode_ + 17496 24612 0805C3AC in apply_closure + 860 24613 08061EE8 in interpret_bytecode_ + 17496 24614 0805D5BB in funcall_closure + 427 24615 080CFC73 in end_error + 419 24616 080CFDFE in fehler + 62 24617 0805F966 in interpret_bytecode_ + 7894 24618 0805D5BB in funcall_closure + 427 24619 0805E89E in interpret_bytecode_ + 3598 24620 0805D5BB in funcall_closure + 427 24621 080639C0 in compile_eval_form + 48 24622 080640DC in C_let + 316 24623 080596C5 in eval_fsubr + 181 24624 080594B7 in eval1 + 455 24625 080591B2 in eval + 386 24626 08056107 in eval_5env + 119 24627 08056139 in eval_noenv + 41 24628 08067B2D in C_eval + 29 24629 0805E9DC in interpret_bytecode_ + 3916 24630 0805D5BB in funcall_closure + 427 24631 0805EC67 in interpret_bytecode_ + 4567 24632 0805D5BB in funcall_closure + 427 24633 080604CC in interpret_bytecode_ + 10812 24634 0805D5BB in funcall_closure + 427 24635 0805E932 in interpret_bytecode_ + 3746 24636 0805D5BB in funcall_closure + 427 24637 0805C02E in apply_subr + 2254 24638 08061E9B in interpret_bytecode_ + 17419 24639 0805C3AC in apply_closure + 860 24640 08061EE8 in interpret_bytecode_ + 17496 24641 0805C3AC in apply_closure + 860 24642 08061E9B in interpret_bytecode_ + 17419 24643 0805C3AC in apply_closure + 860 24644 08061EE8 in interpret_bytecode_ + 17496 24645 0805C3AC in apply_closure + 860 24646 08061EE8 in interpret_bytecode_ + 17496 24647 0805D5BB in funcall_closure + 427 24648 080CFC73 in end_error + 419 24649 080CFDFE in fehler + 62 24650 0805F966 in interpret_bytecode_ + 7894 24651 0805D5BB in funcall_closure + 427 24652 0805E89E in interpret_bytecode_ + 3598 24653 0805D5BB in funcall_closure + 427 24654 080639C0 in compile_eval_form + 48 24655 080640DC in C_let + 316 24656 080596C5 in eval_fsubr + 181 24657 080594B7 in eval1 + 455 24658 080591B2 in eval + 386 24659 08056107 in eval_5env + 119 24660 08056139 in eval_noenv + 41 24661 08067B2D in C_eval + 29 24662 0805E9DC in interpret_bytecode_ + 3916 24663 0805D5BB in funcall_closure + 427 24664 0805EC67 in interpret_bytecode_ + 4567 24665 0805D5BB in funcall_closure + 427 24666 080604CC in interpret_bytecode_ + 10812 24667 0805D5BB in funcall_closure + 427 24668 0805E932 in interpret_bytecode_ + 3746 24669 0805D5BB in funcall_closure + 427 24670 0805C02E in apply_subr + 2254 24671 08061E9B in interpret_bytecode_ + 17419 24672 0805C3AC in apply_closure + 860 24673 08061EE8 in interpret_bytecode_ + 17496 24674 0805C3AC in apply_closure + 860 24675 08061E9B in interpret_bytecode_ + 17419 24676 0805C3AC in apply_closure + 860 24677 08061EE8 in interpret_bytecode_ + 17496 24678 0805C3AC in apply_closure + 860 24679 08061EE8 in interpret_bytecode_ + 17496 24680 0805D5BB in funcall_closure + 427 24681 080CFC73 in end_error + 419 24682 080CFDFE in fehler + 62 24683 0805F966 in interpret_bytecode_ + 7894 24684 0805D5BB in funcall_closure + 427 24685 0805E89E in interpret_bytecode_ + 3598 24686 0805D5BB in funcall_closure + 427 24687 080639C0 in compile_eval_form + 48 24688 080640DC in C_let + 316 24689 080596C5 in eval_fsubr + 181 24690 080594B7 in eval1 + 455 24691 080591B2 in eval + 386 24692 08056107 in eval_5env + 119 24693 08056139 in eval_noenv + 41 24694 08067B2D in C_eval + 29 24695 0805E9DC in interpret_bytecode_ + 3916 24696 0805D5BB in funcall_closure + 427 24697 0805EC67 in interpret_bytecode_ + 4567 24698 0805D5BB in funcall_closure + 427 24699 080604CC in interpret_bytecode_ + 10812 24700 0805D5BB in funcall_closure + 427 24701 0805E932 in interpret_bytecode_ + 3746 24702 0805D5BB in funcall_closure + 427 24703 0805C02E in apply_subr + 2254 24704 08061E9B in interpret_bytecode_ + 17419 24705 0805C3AC in apply_closure + 860 24706 08061EE8 in interpret_bytecode_ + 17496 24707 0805C3AC in apply_closure + 860 24708 08061E9B in interpret_bytecode_ + 17419 24709 0805C3AC in apply_closure + 860 24710 08061EE8 in interpret_bytecode_ + 17496 24711 0805C3AC in apply_closure + 860 24712 08061EE8 in interpret_bytecode_ + 17496 24713 0805D5BB in funcall_closure + 427 24714 080CFC73 in end_error + 419 24715 080CFDFE in fehler + 62 24716 0805F966 in interpret_bytecode_ + 7894 24717 0805D5BB in funcall_closure + 427 24718 0805E89E in interpret_bytecode_ + 3598 24719 0805D5BB in funcall_closure + 427 24720 080639C0 in compile_eval_form + 48 24721 080640DC in C_let + 316 24722 080596C5 in eval_fsubr + 181 24723 080594B7 in eval1 + 455 24724 080591B2 in eval + 386 24725 08056107 in eval_5env + 119 24726 08056139 in eval_noenv + 41 24727 08067B2D in C_eval + 29 24728 0805E9DC in interpret_bytecode_ + 3916 24729 0805D5BB in funcall_closure + 427 24730 0805EC67 in interpret_bytecode_ + 4567 24731 0805D5BB in funcall_closure + 427 24732 080604CC in interpret_bytecode_ + 10812 24733 0805D5BB in funcall_closure + 427 24734 0805E932 in interpret_bytecode_ + 3746 24735 0805D5BB in funcall_closure + 427 24736 0805C02E in apply_subr + 2254 24737 08061E9B in interpret_bytecode_ + 17419 24738 0805C3AC in apply_closure + 860 24739 08061EE8 in interpret_bytecode_ + 17496 24740 0805C3AC in apply_closure + 860 24741 08061E9B in interpret_bytecode_ + 17419 24742 0805C3AC in apply_closure + 860 24743 08061EE8 in interpret_bytecode_ + 17496 24744 0805C3AC in apply_closure + 860 24745 08061EE8 in interpret_bytecode_ + 17496 24746 0805D5BB in funcall_closure + 427 24747 080CFC73 in end_error + 419 24748 080CFDFE in fehler + 62 24749 0805F966 in interpret_bytecode_ + 7894 24750 0805D5BB in funcall_closure + 427 24751 0805E89E in interpret_bytecode_ + 3598 24752 0805D5BB in funcall_closure + 427 24753 080639C0 in compile_eval_form + 48 24754 080640DC in C_let + 316 24755 080596C5 in eval_fsubr + 181 24756 080594B7 in eval1 + 455 24757 080591B2 in eval + 386 24758 08056107 in eval_5env + 119 24759 08056139 in eval_noenv + 41 24760 08067B2D in C_eval + 29 24761 0805E9DC in interpret_bytecode_ + 3916 24762 0805D5BB in funcall_closure + 427 24763 0805EC67 in interpret_bytecode_ + 4567 24764 0805D5BB in funcall_closure + 427 24765 080604CC in interpret_bytecode_ + 10812 24766 0805D5BB in funcall_closure + 427 24767 0805E932 in interpret_bytecode_ + 3746 24768 0805D5BB in funcall_closure + 427 24769 0805C02E in apply_subr + 2254 24770 08061E9B in interpret_bytecode_ + 17419 24771 0805C3AC in apply_closure + 860 24772 08061EE8 in interpret_bytecode_ + 17496 24773 0805C3AC in apply_closure + 860 24774 08061E9B in interpret_bytecode_ + 17419 24775 0805C3AC in apply_closure + 860 24776 08061EE8 in interpret_bytecode_ + 17496 24777 0805C3AC in apply_closure + 860 24778 08061EE8 in interpret_bytecode_ + 17496 24779 0805D5BB in funcall_closure + 427 24780 080CFC73 in end_error + 419 24781 080CFDFE in fehler + 62 24782 0805F966 in interpret_bytecode_ + 7894 24783 0805D5BB in funcall_closure + 427 24784 0805E89E in interpret_bytecode_ + 3598 24785 0805D5BB in funcall_closure + 427 24786 080639C0 in compile_eval_form + 48 24787 080640DC in C_let + 316 24788 080596C5 in eval_fsubr + 181 24789 080594B7 in eval1 + 455 24790 080591B2 in eval + 386 24791 08056107 in eval_5env + 119 24792 08056139 in eval_noenv + 41 24793 08067B2D in C_eval + 29 24794 0805E9DC in interpret_bytecode_ + 3916 24795 0805D5BB in funcall_closure + 427 24796 0805EC67 in interpret_bytecode_ + 4567 24797 0805D5BB in funcall_closure + 427 24798 080604CC in interpret_bytecode_ + 10812 24799 0805D5BB in funcall_closure + 427 24800 0805E932 in interpret_bytecode_ + 3746 24801 0805D5BB in funcall_closure + 427 24802 0805C02E in apply_subr + 2254 24803 08061E9B in interpret_bytecode_ + 17419 24804 0805C3AC in apply_closure + 860 24805 08061EE8 in interpret_bytecode_ + 17496 24806 0805C3AC in apply_closure + 860 24807 08061E9B in interpret_bytecode_ + 17419 24808 0805C3AC in apply_closure + 860 24809 08061EE8 in interpret_bytecode_ + 17496 24810 0805C3AC in apply_closure + 860 24811 08061EE8 in interpret_bytecode_ + 17496 24812 0805D5BB in funcall_closure + 427 24813 080CFC73 in end_error + 419 24814 080CFDFE in fehler + 62 24815 0805F966 in interpret_bytecode_ + 7894 24816 0805D5BB in funcall_closure + 427 24817 080D150B in C_invoke_debugger + 155 24818 0805D1AD in funcall_subr + 605 24819 080CFABA in signal_and_debug + 170 24820 080CFC95 in end_error + 453 24821 080CFDFE in fehler + 62 24822 0808DC61 in fehler_value_stream + 257 24823 08079D53 in var_stream + 115 24824 080CCA58 in read_form + 72 24825 080CD35A in C_read_eval_print + 10 24826 0805D1AD in funcall_subr + 605 24827 0805E97C in interpret_bytecode_ + 3820 24828 0805D5BB in funcall_closure + 427 24829 080672D3 in C_driver + 115 24830 0805E9DC in interpret_bytecode_ + 3916 24831 0805D5BB in funcall_closure + 427 24832 0805EC67 in interpret_bytecode_ + 4567 24833 0805D5BB in funcall_closure + 427 24834 080CD5DB in driver + 75 24835 0805336C in main + 3948 #24836 0x4009f857 in round_and_return () from /lib/libc.so.6 -- __Pascal Bourguignon__ http://www.informatimago.com/ The world will now reboot; don't bother saving your artefacts. |