Summary: | ASTERISK-11156: How do I troublesheeo this crash | ||
Reporter: | Private Name (falves11) | Labels: | |
Date Opened: | 2008-01-05 00:38:25.000-0600 | Date Closed: | 2011-06-07 14:00:37 |
Priority: | Critical | Regression? | No |
Status: | Closed/Complete | Components: | Resources/res_odbc |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) blowup1.txt ( 1) blowup2.txt ( 2) blowup3.txt ( 3) valgrind.txt | |
Description: | Loaded symbols for /usr/lib64/libXdmcp.so.6 Core was generated by `asterisk -vvvvvvvvvvvvvvvvvgc'. Program terminated with signal 11, Segmentation fault. #0 0x0000000000000000 in ?? () (gdb) bt full #0 0x0000000000000000 in ?? () No symbol table info available. #1 0x0000000000000000 in ?? () No symbol table info available. (gdb) ****** ADDITIONAL INFORMATION ****** As soon as I start my sipp simulator, 3 minutes later it crashes. I compiled it with all the debuggin options and I get thousands of lines of this: res_odbc.c line 451 (ast_odbc_request_obj): Deadlock? waited 75 sec for mutex '&(&class->odbc_obj)->lock'? res_odbc.c line 451 (ast_odbc_request_obj): '&(&class->odbc_obj)->lock' was locked here. I am using Freetds and unixODBC, how do I troubleshoot this? | ||
Comments: | By: Tilghman Lesher (tilghman) 2008-01-05 00:41:44.000-0600 1) NEVER compile with all debugging options unless either a) you know what you're doing, or b) you are directed by a developer to do so. 2) Please recompile with ONLY the flags DONT_OPTIMIZE and DEBUG_THREADS. When the problem occurs, please run the command "core show locks" and upload the output AS A FILE to the file upload area of this issue. By: Private Name (falves11) 2008-01-05 00:53:34.000-0600 The messages about locking did not appear, but I got this. Core was generated by `asterisk -vvvvvvvvvvvvvvvvvvvvvvgc'. Program terminated with signal 11, Segmentation fault. #0 0x00000028988435d6 in ?? () (gdb) bt full #0 0x00000028988435d6 in ?? () No symbol table info available. #1 0x0000000100000000 in ?? () No symbol table info available. #2 0x0000002ab4e64c00 in ?? () No symbol table info available. #3 0x0000000041535970 in ?? () No symbol table info available. #4 0x0000000094644400 in ?? () No symbol table info available. ASTERISK-1 0x0000000041735b10 in ?? () No symbol table info available. ASTERISK-2 0x00000000528310a3 in ?? () No symbol table info available. ASTERISK-3 0x0000002ab41d33a0 in ?? () No symbol table info available. ASTERISK-4 0x0000002ab4e64c00 in ?? () No symbol table info available. ASTERISK-5 0x000000000000000e in ?? () No symbol table info available. ASTERISK-6 0x0000000041735b78 in ?? () No symbol table info available. ASTERISK-7 0x0000000041735cc0 in ?? () No symbol table info available. ASTERISK-8 0x0000002a9a830170 in tds7_send_login () from /usr/local/lib/libtdsodbc.so No symbol table info available. Previous frame inner to this frame (corrupt stack?) By: Tilghman Lesher (tilghman) 2008-01-05 01:32:48.000-0600 Please upgrade to the latest SVN trunk. I cannot do anything with any of these backtraces. They are useless for debugging. "core show locks" is what I need to see. By: Tilghman Lesher (tilghman) 2008-01-05 01:47:18.000-0600 You could also try running under valgrind, by following the instructions in doc/valgrind.txt. By: Private Name (falves11) 2008-01-05 01:51:38.000-0600 The latest trunk fro svn does not compile in my machine, 64 Bit Rhel 5. The previous version did compile fine (94662). Please see latest file uploaded. I do this ./configure make menuselect (debug threads and don't optimize) make (here fails) make install By: Tilghman Lesher (tilghman) 2008-01-05 01:58:31.000-0600 Please install the libportaudio-dev package on your machine. By: Private Name (falves11) 2008-01-05 02:07:39.000-0600 Ininstalled portaudio, and compiles just fine, but Asterisk still does not. Please look at the latest file. The error is different. By: Tilghman Lesher (tilghman) 2008-01-05 02:14:20.000-0600 You have a very odd system that is letting you pass configure checks for packages that you do not have. What system/distribution are you running? In this case, you need to install the package libiksemel-dev. By: Private Name (falves11) 2008-01-05 02:41:54.000-0600 I installed and compiled the latest version 94665, but it does not load. The previous version 94662 was loading fine. Asterisk SVN-trunk-r96645, Copyright (C) 1999 - 2007 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= NOTE: This is a development version of Asterisk, and should not be used in production installations. == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found asterisk: symbol lookup error: /usr/lib/asterisk/modules/res_odbc.so: undefined symbol: SQLAllocHandle By: Private Name (falves11) 2008-01-05 12:39:29.000-0600 The latest version, 96645, compiles fine, and blows up after one minute when I start the sipp simulator. This the GDB trace, and I don't know where the problem is. I need help using valgrind, if it is applicable. I compiled it without optimizations and "debug threads" Core was generated by `asterisk -vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvgc'. Program terminated with signal 11, Segmentation fault. #0 0x0000000000000000 in ?? () (gdb) bt full #0 0x0000000000000000 in ?? () No symbol table info available. #1 0x0000000000000000 in ?? () No symbol table info available. (gdb) By: Private Name (falves11) 2008-01-05 13:13:52.000-0600 I finally used valgrind correctly and caught the issue. Please look at the files blowup3.txt and valgrind.txt By: Tilghman Lesher (tilghman) 2008-02-12 18:15:36.000-0600 Once again, this is an issue in FreeTDS. |