Discussion:
Apache 2.4.39 on FreeBSD 12.0 crashing
(too old to reply)
The Doctor
2019-04-02 17:07:26 UTC
Permalink
Hello. I am trying to debug a crashing behaviour without a core file.

Any pointers would be appreciated, provided they are not flippant.
--
Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca
Yahweh, Queen & country!Never Satan President Republic!Beware AntiChrist rising!
https://www.empire.kred/ROOTNK?t=94a1f39b Look at Psalms 14 and 53 on Atheism
Alberta on 16 April 2019, do not vote UCP, FCP nor NDP!
Paul Rubin
2019-04-02 17:22:42 UTC
Permalink
Post by The Doctor
Hello. I am trying to debug a crashing behaviour without a core file.
Use ulimit to enable saving core dumps, and if you can reproduce the
behaviour, run apache -X under gdb to see what is going on. The -X
limits apache to a single process so there's only one thing to debug.
Judicious single stepping and analysis can then usually find the
problem.
The Doctor
2019-04-02 21:38:32 UTC
Permalink
Post by Paul Rubin
Post by The Doctor
Hello. I am trying to debug a crashing behaviour without a core file.
Use ulimit to enable saving core dumps, and if you can reproduce the
behaviour, run apache -X under gdb to see what is going on. The -X
limits apache to a single process so there's only one thing to debug.
Judicious single stepping and analysis can then usually find the
problem.
In tcsh? Well I did run gdb and it is blaming the libapr.so .
--
Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca
Yahweh, Queen & country!Never Satan President Republic!Beware AntiChrist rising!
https://www.empire.kred/ROOTNK?t=94a1f39b Look at Psalms 14 and 53 on Atheism
Alberta on 16 April 2019, do not vote UCP, FCP nor NDP!
Paul Rubin
2019-04-02 22:21:21 UTC
Permalink
Post by The Doctor
Post by Paul Rubin
run apache -X under gdb
In tcsh? Well I did run gdb and it is blaming the libapr.so .
Start gdb and use "r -X" to the gdb prompt to start apache.

libapr.so is the apache portable runtime which I don't think I ever had
to mess with. But anyway I'd recompile it from source with -g and then
use gdb to figure out what is going wrong. Apache shouldn't crash so it
sounds like some kind of build error, wrong library version or
something.
The Doctor
2019-04-02 23:30:48 UTC
Permalink
Post by Paul Rubin
Post by The Doctor
Post by Paul Rubin
run apache -X under gdb
In tcsh? Well I did run gdb and it is blaming the libapr.so .
Start gdb and use "r -X" to the gdb prompt to start apache.
libapr.so is the apache portable runtime which I don't think I ever had
to mess with. But anyway I'd recompile it from source with -g and then
use gdb to figure out what is going wrong. Apache shouldn't crash so it
sounds like some kind of build error, wrong library version or
something.
Just rebuilt all the dependenices given ldd and that seems
to have done the trick.
--
Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca
Yahweh, Queen & country!Never Satan President Republic!Beware AntiChrist rising!
https://www.empire.kred/ROOTNK?t=94a1f39b Look at Psalms 14 and 53 on Atheism
Alberta on 16 April 2019, do not vote UCP, FCP nor NDP!
Paul Rubin
2019-04-02 23:37:19 UTC
Permalink
Post by The Doctor
Just rebuilt all the dependenices given ldd and that seems
to have done the trick.
Cool, congrats ;)

Loading...