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