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

FreeBSD core dump #646

Closed
ghost opened this issue Sep 1, 2014 · 10 comments
Closed

FreeBSD core dump #646

ghost opened this issue Sep 1, 2014 · 10 comments

Comments

@ghost
Copy link

ghost commented Sep 1, 2014

znc 1.5 is whining about malloc missing on freebsd 10 as seen in this core dump http://pastebin.com/jTxJQTpt

@kylef
Copy link
Member

kylef commented Sep 1, 2014

The error is stating that the file /etc/malloc.conf is not found.

13542 znc      NAMI  "/etc/malloc.conf"
 13542 znc      RET   readlink -1 errno 2 No such file or directory

I'm not sure how FreeBSD's malloc works, but this seems to be a configuration issue with your operating system and not a problem in ZNC. Please refer to the man page for malloc.conf

@psychon
Copy link
Member

psychon commented Sep 3, 2014

Also, that's not a core dump and there are no write() calls in there (why do you think it is whining about malloc?).

If you want to report a crash, grab gdb and get a backtrace (gdb znc, run, bt, bt full)

@psychon psychon closed this as completed Sep 3, 2014
@DarthGandalf
Copy link
Member

@ghost
Copy link
Author

ghost commented Sep 9, 2014

it's whining about malloc because on freebsd /etc/malloc.conf does not exist and that's a kdump the freebsd equivalent to gdb I can see the errors without the need of gdb.

@psychon
Copy link
Member

psychon commented Sep 9, 2014

If you have an error message then it would be nice to tell us about that error message. Believe it or not, error messages could actually contain useful information.

Also, no. kdump is not the freebsd equivalent to gdb. The freebsd equivalent to gdb is gdb. The freebsd equivalent to strace is kdump.

@ghost
Copy link
Author

ghost commented Sep 17, 2014

[root@kurobachan /usr/local/bin]# gdb ./znc
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols found)...
(gdb) handle SIGPIPE nostop
Signal Stop Print Pass to program Description
SIGPIPE No Yes Yes Broken pipe
(gdb) run -D
Starting program: /usr/local/bin/znc -D
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...Error while reading shared library symbols:
Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/local/lib/gcc5/libstdc++.so.6](no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[New LWP 100130](no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[New Thread 2a403080 (LWP 100130/znc)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 2a403080 (LWP 100130/znc)]
0x00000000 in ?? ()
(gdb)

@DarthGandalf
Copy link
Member

Did I point you at http://wiki.znc.in/Debugging already? Please read it. You didn't provide neither debug symbols to gdb, nor stack trace to us.

@ghost
Copy link
Author

ghost commented Sep 17, 2014

[root@kurobachan /usr/local/bin]# gdb ./znc
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/local/bin/znc]

(gdb) handle SIGPIPE nostop
Signal Stop Print Pass to program Description
SIGPIPE No Yes Yes Broken pipe
(gdb) run -D
Starting program: /usr/local/bin/znc -D
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...Error while reading shared library symbols:
Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/local/lib/libstdc++.so.6](no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[New LWP 100079](no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[New Thread 2a403080 (LWP 100079/znc)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 2a403080 (LWP 100079/znc)]
0x00000000 in ?? ()
(gdb) bt full
#0 0x00000000 in ?? ()
No symbol table info available.
#1 0x29c01038 in ?? () from /usr/local/lib/libstdc++.so.6
No symbol table info available.
#2 0x29cd0220 in ?? () from /usr/local/lib/libstdc++.so.6
No symbol table info available.
#3 0x00000000 in ?? ()
No symbol table info available.
(gdb)

@DarthGandalf
Copy link
Member

It's still compiled without debug symbols...

@Jimmycaojp
Copy link

GNU gdb 6.1.1 [FreeBSD] is too old, you can install new version gdb V8.1 to solve this problem

pkg install gdb

and add /usr/local/bin/gdb to your PATH environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants