You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rivet-dev@tcl.apache.org by Rani Ahmed <ra...@gmail.com> on 2018/12/15 09:05:23 UTC

I am getting repeatedly in Rivet: [core:notice] [pid 13958] AH00052: child pid NNNN exit signal Segmentation fault (11)

Hello. I am having a serious issue. This is the log:
[Sat Dec 15 02:09:28.054892 2018] [mpm_prefork:notice] [pid 13958] AH00163:
Apache/2.4.25 (Debian) Rivet configured -- resuming normal operations
[Sat Dec 15 02:09:28.054972 2018] [core:notice] [pid 13958] AH00094:
Command line: '/usr/sbin/apache2'
[Sat Dec 15 02:11:06.144342 2018] [core:notice] [pid 13958] AH00052: child
pid 13960 exit signal Segmentation fault (11)
[Sat Dec 15 02:11:07.150274 2018] [core:notice] [pid 13958] AH00052: child
pid 13965 exit signal Segmentation fault (11)
[Sat Dec 15 02:12:57.258651 2018] [core:notice] [pid 13958] AH00052: child
pid 13967 exit signal Segmentation fault (11)
[Sat Dec 15 02:15:00.380790 2018] [core:notice] [pid 13958] AH00052: child
pid 13966 exit signal Segmentation fault (11)

After debugging my website code and trying to find where the problem is, I
found that tdbc::mysql package makes Rivet crash.
My website depends heavily on tdbc::mysql.

This is my website Rivet information like php_info() page.
http://superlinux.net/info.rvt
I made the website as a little demo on the potentials of Rivet and how
would anyone make use of Tcl instead of PHP.

Please try this simple code in an rvt file  just reproduce the issue:

<?
#This line works just fine
puts [package require Rivet]

#This line makes the whole page crash with a segmentation fault.
puts [package require tdbc::mysql]
?>

Thanks.

Re: I am getting repeatedly in Rivet: [core:notice] [pid 13958] AH00052: child pid NNNN exit signal Segmentation fault (11)

Posted by Georgios Petasis <pe...@apache.org>.
Maybe you are on an OS that uses mariadb (like fedora), or a newer 
version of mysql than the ones tdbc supports?

tdbc::mysql is buggy, if it cannot find the client library it will cause 
a segmentation fault (which is totally unacceptable for something 
shipping with tcl core...).

If this is the case, you are out of luck.
I have submitted many tickets, but I don't know who is responsible for 
fixing this. These bugs are open for 2+ years now.

I.e.:

http://core.tcl.tk/tdbcmysql/tktview?name=040c635cb3
http://core.tcl.tk/tdbcmysql/tktview?name=44cc436b4e
http://core.tcl.tk/tdbcmysql/tktview?name=e449b3ccb5

If you run plain tclsh from command prompt (the same one used by rivet), 
can you do "package require tdbc::mysql"?
Is it working? If tclsh segfaults, then the problem is not in rivet...

George


Στις 15/12/2018 11:05, ο Rani Ahmed έγραψε:
> Hello. I am having a serious issue. This is the log:
> [Sat Dec 15 02:09:28.054892 2018] [mpm_prefork:notice] [pid 13958] 
> AH00163: Apache/2.4.25 (Debian) Rivet configured -- resuming normal 
> operations
> [Sat Dec 15 02:09:28.054972 2018] [core:notice] [pid 13958] AH00094: 
> Command line: '/usr/sbin/apache2'
> [Sat Dec 15 02:11:06.144342 2018] [core:notice] [pid 13958] AH00052: 
> child pid 13960 exit signal Segmentation fault (11)
> [Sat Dec 15 02:11:07.150274 2018] [core:notice] [pid 13958] AH00052: 
> child pid 13965 exit signal Segmentation fault (11)
> [Sat Dec 15 02:12:57.258651 2018] [core:notice] [pid 13958] AH00052: 
> child pid 13967 exit signal Segmentation fault (11)
> [Sat Dec 15 02:15:00.380790 2018] [core:notice] [pid 13958] AH00052: 
> child pid 13966 exit signal Segmentation fault (11)
>
> After debugging my website code and trying to find where the problem 
> is, I found that tdbc::mysql package makes Rivet crash.
> My website depends heavily on tdbc::mysql.
>
> This is my website Rivet information like php_info() page.
> http://superlinux.net/info.rvt
> I made the website as a little demo on the potentials of Rivet and how 
> would anyone make use of Tcl instead of PHP.
>
> Please try this simple code in an rvt file  just reproduce the issue:
>
> <?
> #This line works just fine
> puts [package require Rivet]
>
> #This line makes the whole page crash with a segmentation fault.
> puts [package require tdbc::mysql]
> ?>
>
> Thanks.



---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org


Re: I am getting repeatedly in Rivet: [core:notice] [pid 13958] AH00052: child pid NNNN exit signal Segmentation fault (11)

Posted by Massimo MANGHI <ma...@unipr.it>.
Sorry for the stupid question, the version was in the info. I have to 
reformulate it since I read it's version 3.2, which is the version 
number I gave to the development in trunk. Are you running a module 
built from the latest commit available?

My preliminary tests on 3 different installations worked just fine (I 
tweaked the script in order to have better reading)

<?
#This line works just fine
puts [::rivet::xml "Rivet: -> [package require Rivet]" pre]

#This line makes the whole page crash with a segmentation fault.
puts [::rivet::xml "tdbc::mysql -> [package require tdbc::mysql]" pre]
?>

------

Rivet: -> 3.1
tdbc::mysql -> 1.1.0

Rivet: -> 3.2
tdbc::mysql -> 1.0.6

Rivet: -> 2.3
tdbc::mysql -> 1.0.6


  -- Massimo

On 12/15/18 10:14 AM, Massimo Manghi wrote:
> Hi Rani
> 
> On 12/15/18 10:05 AM, Rani Ahmed wrote:
>> Hello. I am having a serious issue. This is the log:
>> [Sat Dec 15 02:09:28.054892 2018] [mpm_prefork:notice] [pid 13958] 
>> AH00163: Apache/2.4.25 (Debian) Rivet configured -- resuming normal 
>> operations
> which version of Rivet are you running?
> 
>   -- Massimo
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
> For additional commands, e-mail: rivet-dev-help@tcl.apache.org
> 

Re: I am getting repeatedly in Rivet: [core:notice] [pid 13958] AH00052: child pid NNNN exit signal Segmentation fault (11)

Posted by Massimo Manghi <mx...@apache.org>.
Hi Rani

On 12/15/18 10:05 AM, Rani Ahmed wrote:
> Hello. I am having a serious issue. This is the log:
> [Sat Dec 15 02:09:28.054892 2018] [mpm_prefork:notice] [pid 13958] 
> AH00163: Apache/2.4.25 (Debian) Rivet configured -- resuming normal 
> operations
which version of Rivet are you running?

  -- Massimo

---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org