Grommish

Untitled

Sep 25th, 2020
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.17 KB | None | 0 0
  1. grommish@norwits:~/openwrt$ ./scripts/remote-gdb 192.168.1.1:9000 build_dir/target-mips64_octeon3_64_musl/suricata-6.0.0-beta1/src/suricata
  2. Using target mips64_octeon3_64 (musl, )
  3. GNU gdb (GDB) 8.3.1
  4. Copyright (C) 2019 Free Software Foundation, Inc.
  5. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  6. This is free software: you are free to change and redistribute it.
  7. There is NO WARRANTY, to the extent permitted by law.
  8. Type "show copying" and "show warranty" for details.
  9. This GDB was configured as "--host=x86_64-pc-linux-gnu --target=mips64-openwrt-linux-musl".
  10. Type "show configuration" for configuration details.
  11. For bug reporting instructions, please see:
  12. <http://www.gnu.org/software/gdb/bugs/>.
  13. Find the GDB manual and other documentation resources online at:
  14. <http://www.gnu.org/software/gdb/documentation/>.
  15.  
  16. For help, type "help".
  17. Type "apropos word" to search for commands related to "word"...
  18. "/home/grommish/openwrt/build_dir/target-mips64_octeon3_64_musl/suricata-6.0.0-beta1/src/suricata": not in executable format: file format not recognized
  19. Reading symbols from /home/grommish/openwrt/scripts/../staging_dir/target-mips64_octeon3_64_musl/root-octeon/usr/bin/suricata...
  20. warning: Unsupported auto-load script at offset 0 in section .debug_gdb_scripts
  21. of file /home/grommish/openwrt/staging_dir/target-mips64_octeon3_64_musl/root-octeon/usr/bin/suricata.
  22. Use `info auto-load python-scripts [REGEXP]' to list them.
  23. 0x000000fff7f58c00 in _dlstart () from /home/grommish/openwrt/scripts/../staging_dir/target-mips64_octeon3_64_musl/root-octeon/lib/ld-musl-mips64-sf.so.1
  24. (gdb) bt
  25. #0 0x000000fff7f58c00 in _dlstart ()
  26. from /home/grommish/openwrt/scripts/../staging_dir/target-mips64_octeon3_64_musl/root-octeon/lib/ld-musl-mips64-sf.so.1
  27. #1 0x0000000000000000 in ?? ()
  28. Backtrace stopped: frame did not save the PC
  29. (gdb) set args -v -c /etc/suricata/suricata.yaml -i eth0
  30. (gdb) run
  31. The program being debugged has been started already.
  32. Start it from the beginning? (y or n) y
  33. Starting program: /home/grommish/openwrt/staging_dir/target-mips64_octeon3_64_musl/root-octeon/usr/bin/suricata -v -c /etc/suricata/suricata.yaml -i eth0
  34.  
  35. Program received signal SIGILL, Illegal instruction.
  36. 0x0000000120ea19cc in decfloat (f=0xffffffd7a0, c=49, bits=53, emin=-1074, sign=1, pok=1) at src/internal/floatscan.c:67
  37. 67 src/internal/floatscan.c: No such file or directory.
  38. (gdb) bt
  39. #0 0x0000000120ea19cc in decfloat (f=0xffffffd7a0, c=49, bits=53, emin=-1074, sign=1, pok=1) at src/internal/floatscan.c:67
  40. #1 0x0000000120c8c0e4 in strtox (s=0xffffffd978 "100", p=0xffffffd8f0, prec=prec@entry=1) at src/stdlib/strtod.c:11
  41. #2 0x0000000120c8c1ac in strtod (s=<optimized out>, p=<optimized out>) at src/stdlib/strtod.c:24
  42. #3 0x0000000120510890 in ParseSizeString (size=0x12113ed60 "100kb", res=0xffffffdac8) at util-misc.c:113
  43. #4 0x0000000120510d80 in ParseSizeStringU32 (size=0x12113ed60 "100kb", res=0x121107b10 <cfglist+48>) at util-misc.c:190
  44. #5 0x0000000120275060 in HTPConfigParseParameters (cfg_prec=0x121107ae0 <cfglist>, s=0x12113ebe0, tree=0x12112fd80) at app-layer-htp.c:2528
  45. #6 0x0000000120276b34 in HTPConfigure () at app-layer-htp.c:2817
  46. #7 0x0000000120277de4 in RegisterHTPParsers () at app-layer-htp.c:3101
  47. #8 0x0000000120288ef4 in AppLayerParserRegisterProtocolParsers () at app-layer-parser.c:1561
  48. #9 0x000000012022f1cc in AppLayerSetup () at app-layer.c:812
  49. #10 0x00000001204ab720 in PostConfLoadedSetup (suri=0x12111d570 <suricata>) at suricata.c:2494
  50. #11 0x00000001204ac8d0 in SuricataMain (argc=6, argv=0xffffffdd38) at suricata.c:2777
  51. #12 0x00000001202268bc in main (argc=6, argv=0xffffffdd38) at main.c:22
  52. (gdb) x/1fw 0xffffffd7a0
  53. 0xffffffd7a0: 3.57331108e-43
  54. (gdb) x/1dw 0xffffffd7a0
  55. 0xffffffd7a0: 255
  56. (gdb) list 67
  57. file: "src/internal/floatscan.c", line number: 67, symbol: "???"
  58. 62 in src/internal/floatscan.c
  59. file: "src/internal/floatscan.c", line number: 67, symbol: "???"
  60. 62 return neg ? -y : y;
  61. 63 }
  62. 64
  63. 65
  64. 66 static long double decfloat(FILE *f, int c, int bits, int emin, int sign, int pok)
  65. 67 {
  66. 68 uint32_t x[KMAX];
  67. 69 static const uint32_t th[] = { LD_B1B_MAX };
  68. 70 int i, j, k, a, z;
  69. 71 long long lrp=0, dc=0;
  70. (gdb)
Add Comment
Please, Sign In to add comment